src/hbservers/hbthemeserver/hbthemeserver_generic_p_p.h
changeset 5 627c4a0fd0e7
parent 3 11d3954df52a
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
    68 
    68 
    69     QByteArray handleSharedEffectAddAndFileLookup(int request, const QString &fileName);
    69     QByteArray handleSharedEffectAddAndFileLookup(int request, const QString &fileName);
    70     QByteArray handleSharedWidgetMLLookup(const QString &fileName,
    70     QByteArray handleSharedWidgetMLLookup(const QString &fileName,
    71                                           const QString &layout, const QString &section);
    71                                           const QString &layout, const QString &section);
    72     void writeToClients(QByteArray &block);
    72     void writeToClients(QByteArray &block);
    73     void setThemeSelectionClient(QLocalSocket *socket);
       
    74 
    73 
    75     bool insertCssCacheItem(const QString &key,  HbCacheItem *item);
    74     bool insertCssCacheItem(const QString &key,  HbCacheItem *item);
    76     HbCacheItem *cssCacheItem(const QString &key);
    75     HbCacheItem *cssCacheItem(const QString &key);
    77     void removeCssCacheItem(const QString &key);
    76     void removeCssCacheItem(const QString &key);
    78     void clearCssCache();
    77     void clearCssCache();
    83     int freeSharedMemory() const;
    82     int freeSharedMemory() const;
    84     int allocatedSharedMemory() const;
    83     int allocatedSharedMemory() const;
    85 
    84 
    86 	HbRenderingMode currentRenderingMode() const;
    85 	HbRenderingMode currentRenderingMode() const;
    87     void setCurrentRenderingMode(HbRenderingMode currentMode);
    86     void setCurrentRenderingMode(HbRenderingMode currentMode);
       
    87 
       
    88     bool resolveThemePath(const QString &themeName, QString &themePath);
    88 
    89 
    89 //Debug Code for Test Purpose
    90 //Debug Code for Test Purpose
    90 #ifdef HB_ICON_CACHE_DEBUG
    91 #ifdef HB_ICON_CACHE_DEBUG
    91     int cacheIconCount() const;
    92     int cacheIconCount() const;
    92     int memorySize(const QString &mem);
    93     int memorySize(const QString &mem);
   118 private:
   119 private:
   119 #ifdef QT_DEBUG
   120 #ifdef QT_DEBUG
   120     QLabel statusLabel;
   121     QLabel statusLabel;
   121 #endif
   122 #endif
   122     QLocalServer *server;
   123     QLocalServer *server;
   123     QLocalSocket *iThemeSelectionClient;
       
   124     QList<HbThemeServerSession *> sessionList;
   124     QList<HbThemeServerSession *> sessionList;
   125     HbIconDataCache *iconCache;
   125     HbIconDataCache *iconCache;
   126     HbCache *cssCache;
   126     HbCache *cssCache;
   127 	HbRenderingMode renderMode;
   127 	HbRenderingMode renderMode;
       
   128 
       
   129     QString iCurrentThemeName;
       
   130     QString iCurrentThemePath;
   128 };
   131 };
   129 
   132 
   130 class HbThemeServerSession : public QObject
   133 class HbThemeServerSession : public QObject
   131 {
   134 {
   132     Q_OBJECT
   135     Q_OBJECT