diff options
author | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-04-12 13:50:25 +0300 |
---|---|---|
committer | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-04-12 13:52:31 +0300 |
commit | da73676c8a5af66b55523a9cdfbfbea2baa88a2a (patch) | |
tree | 0a3b8933a1817c152116da5fa8a7b5cdd8102e60 /src/corelib/theme/imthemedaemon.h | |
parent | 8832674482d3b9a7fcf77b0cfdcb8e6fe4960b4d (diff) |
Changes: Renamed dui to meegotouch
By: Holger, Daniel, Janne
RevBy: Tomas, Holger
Diffstat (limited to 'src/corelib/theme/imthemedaemon.h')
-rw-r--r-- | src/corelib/theme/imthemedaemon.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/corelib/theme/imthemedaemon.h b/src/corelib/theme/imthemedaemon.h new file mode 100644 index 00000000..a7ee778c --- /dev/null +++ b/src/corelib/theme/imthemedaemon.h @@ -0,0 +1,64 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (directui@nokia.com) +** +** This file is part of libmeegotouch. +** +** If you have questions regarding the use of this file, please contact +** Nokia at directui@nokia.com. +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#ifndef IMTHEMEDAEMON_H +#define IMTHEMEDAEMON_H + +#include <QObject> +#include <QSize> +#include <QColor> +#include "mnamespace.h" + +class IMThemeDaemon : public QObject +{ + Q_OBJECT + +public: + virtual ~IMThemeDaemon() {} + + // directory search list contains list of directories to search for pixmaps for application + virtual void addDirectoryToPixmapSearchList(const QString &directoryName, M::RecursionMode recursive) = 0; + virtual void clearPixmapSearchList() = 0; + + // this method is only for copying pixmaps for user, this is really slow + virtual void pixmapHandleSync(const QString &imageId, const QSize &size) = 0; + // returns valid handle to a pixmap, which is not yet loaded + virtual void pixmapHandle(const QString &imageId, const QSize &size) = 0; + + virtual void releasePixmap(const QString &imageId, const QSize &size) = 0; + + // ask theme daemon to change the theme or get a list of available themes + virtual QString currentTheme() = 0; + + virtual QStringList themeInheritanceChain() = 0; + virtual QStringList themeLibraryNames() = 0; + + virtual bool hasPendingRequests() const = 0; + +signals: + void pixmapChanged(const QString &imageId, const QSize &size, Qt::HANDLE newHandle); + + void pixmapCreated(const QString &imageId, const QSize &size, Qt::HANDLE handle); + + // emitted when theme has been changed + void themeChanged(const QStringList &themeInheritance, const QStringList& libraryNames); + +}; + +#endif |