src/hbservers/hbthemeserver/hbthemeserver_generic_p_p.h
changeset 3 11d3954df52a
parent 2 06ff229162e9
child 5 627c4a0fd0e7
equal deleted inserted replaced
2:06ff229162e9 3:11d3954df52a
    56     ~HbThemeServerPrivate();
    56     ~HbThemeServerPrivate();
    57     bool start();
    57     bool start();
    58     void stop();
    58     void stop();
    59 
    59 
    60     bool insertIconCacheItem(const HbIconKey &key, HbIconCacheItem *item);
    60     bool insertIconCacheItem(const HbIconKey &key, HbIconCacheItem *item);
    61     HbIconCacheItem* iconCacheItem(const HbIconKey &key);
    61     HbIconCacheItem *iconCacheItem(const HbIconKey &key);
    62     void setMaxGpuCacheSize(int size);
    62     void setMaxGpuCacheSize(int size);
    63     void setMaxCpuCacheSize(int size);
    63     void setMaxCpuCacheSize(int size);
    64     void removeIconCacheItem(const HbIconKey &key);
    64     void removeIconCacheItem(const HbIconKey &key);
    65     void clearIconCache();
    65     void clearIconCache();
    66     void handleThemeSelection(const QString &newtheme);
    66     void handleThemeSelection(const QString &newtheme);
    67     void handleContentUpdate(const QStringList &fileNames);
    67     void handleContentUpdate(const QStringList &fileNames);
    68 
    68 
    69     QByteArray handleSharedEffectAddAndFileLookup(int request, const QString &fileName);
    69     QByteArray handleSharedEffectAddAndFileLookup(int request, const QString &fileName);
    70     QByteArray handleSharedWidgetMLLookup(const QString &fileName, const QString &layout, const QString &section);
    70     QByteArray handleSharedWidgetMLLookup(const QString &fileName,
       
    71                                           const QString &layout, const QString &section);
    71     void writeToClients(QByteArray &block);
    72     void writeToClients(QByteArray &block);
    72     void setThemeSelectionClient(QLocalSocket *socket);
    73     void setThemeSelectionClient(QLocalSocket *socket);
    73 
    74 
    74     bool insertCssCacheItem(const QString &key,  HbCacheItem *item);
    75     bool insertCssCacheItem(const QString &key,  HbCacheItem *item);
    75     HbCacheItem* cssCacheItem(const QString &key);
    76     HbCacheItem *cssCacheItem(const QString &key);
    76     void removeCssCacheItem(const QString &key);
    77     void removeCssCacheItem(const QString &key);
    77     void clearCssCache();
    78     void clearCssCache();
    78 
    79 
    79     void doCleanup();
    80     void doCleanup();
    80     int sessionListCount() const;
    81     int sessionListCount() const;
   118 #ifdef QT_DEBUG
   119 #ifdef QT_DEBUG
   119     QLabel statusLabel;
   120     QLabel statusLabel;
   120 #endif
   121 #endif
   121     QLocalServer *server;
   122     QLocalServer *server;
   122     QLocalSocket *iThemeSelectionClient;
   123     QLocalSocket *iThemeSelectionClient;
   123     QList<HbThemeServerSession*> sessionList;
   124     QList<HbThemeServerSession *> sessionList;
   124     HbIconDataCache *iconCache;
   125     HbIconDataCache *iconCache;
   125     HbCache *cssCache;
   126     HbCache *cssCache;
   126 	HbRenderingMode renderMode;
   127 	HbRenderingMode renderMode;
   127 };
   128 };
   128 
   129 
   131     Q_OBJECT
   132     Q_OBJECT
   132 public:
   133 public:
   133     HbThemeServerSession(QLocalSocket *clientConnection, HbThemeServerPrivate *server);
   134     HbThemeServerSession(QLocalSocket *clientConnection, HbThemeServerPrivate *server);
   134     ~HbThemeServerSession();
   135     ~HbThemeServerSession();
   135     QLocalSocket *clientConnection();
   136     QLocalSocket *clientConnection();
   136     void fillOutPutDataStream(QDataStream &outputDataStream, HbSharedIconInfo &data, HbThemeServerRequest request);
   137     void fillOutPutDataStream(QDataStream &outputDataStream, HbSharedIconInfo &data,
       
   138                               HbThemeServerRequest request);
   137     void getDataFromCacheItem(HbIconCacheItem* cacheItem, HbSharedIconInfo &data) const;
   139     void getDataFromCacheItem(HbIconCacheItem* cacheItem, HbSharedIconInfo &data) const;
   138     void freeDataFromCacheItem(HbIconCacheItem* cacheItem);
   140     void freeDataFromCacheItem(HbIconCacheItem* cacheItem);
   139     QByteArray handleStyleSheetLookup(int request, const QString &fileName, HbLayeredStyleLoader::LayerPriority priority);
   141     QByteArray handleStyleSheetLookup(int request, const QString &fileName,
       
   142                                       HbLayeredStyleLoader::LayerPriority priority);
   140     QByteArray handleIconLookup(const HbIconKey &key, HbSharedIconInfo &data, int options);
   143     QByteArray handleIconLookup(const HbIconKey &key, HbSharedIconInfo &data, int options);
   141     bool iconInfoFromSingleIcon(HbIconKey key, HbSharedIconInfo &stitchedData);
   144     bool iconInfoFromSingleIcon(HbIconKey key, HbSharedIconInfo &stitchedData);
   142     bool createCacheItemData(HbIconKey key, int options, HbSharedIconInfo &data);
   145     bool createCacheItemData(HbIconKey key, int options, HbSharedIconInfo &data);
   143     bool createStichedIconInfoOfParts(QVector<HbSharedIconInfo> dataForParts,
   146     bool createStichedIconInfoOfParts(QVector<HbSharedIconInfo> dataForParts,
   144                                       HbMultiIconParams params,
   147                                       HbMultiIconParams params,