src/hbservers/hbthemeserver/hbthemeserver_generic_p_p.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    61     void setMaxGpuCacheSize(int size);
    61     void setMaxGpuCacheSize(int size);
    62     void setMaxCpuCacheSize(int size);
    62     void setMaxCpuCacheSize(int size);
    63     void removeIconCacheItem(const HbIconKey &key);
    63     void removeIconCacheItem(const HbIconKey &key);
    64     void clearIconCache();
    64     void clearIconCache();
    65     void handleThemeSelection(const QString &newtheme);
    65     void handleThemeSelection(const QString &newtheme);
       
    66     void handleContentUpdate(const QStringList &fileNames);
    66 
    67 
    67     QByteArray handleSharedEffectAddAndFileLookup(int request, const QString &fileName);
    68     QByteArray handleSharedEffectAddAndFileLookup(int request, const QString &fileName);
    68     QByteArray handleSharedWidgetMLLookup(const QString &fileName, const QString &layout, const QString &section);
    69     QByteArray handleSharedWidgetMLLookup(const QString &fileName, const QString &layout, const QString &section);
    69     void writeToClients(QByteArray &block);
    70     void writeToClients(QByteArray &block);
    70     void setThemeSelectionClient(QLocalSocket *socket);
    71     void setThemeSelectionClient(QLocalSocket *socket);
    75     void clearCssCache();
    76     void clearCssCache();
    76 
    77 
    77     void doCleanup();
    78     void doCleanup();
    78     int sessionListCount() const;
    79     int sessionListCount() const;
    79 
    80 
       
    81     int freeSharedMemory() const;
       
    82     int allocatedSharedMemory() const;
    80 
    83 
    81 //Debug Code for Test Purpose
    84 //Debug Code for Test Purpose
    82 #ifdef HB_ICON_CACHE_DEBUG
    85 #ifdef HB_ICON_CACHE_DEBUG
    83     int cacheIconCount() const;
    86     int cacheIconCount() const;
    84     int memorySize(const QString &mem);
    87     int memorySize(const QString &mem);
    99 #endif
   102 #endif
   100 
   103 
   101 private slots:
   104 private slots:
   102     void newClientConnected();
   105     void newClientConnected();
   103     void removeFromList();
   106     void removeFromList();
       
   107 
       
   108 public:
       
   109     QHash<QString, HbCacheItem*> themePriorityItems;
   104 
   110 
   105 private:
   111 private:
   106 #ifdef QT_DEBUG
   112 #ifdef QT_DEBUG
   107     QLabel statusLabel;
   113     QLabel statusLabel;
   108 #endif
   114 #endif
   133                                       HbSharedIconInfo &stitchedData);
   139                                       HbSharedIconInfo &stitchedData);
   134     void iconInfoFromMultiParts(HbMultiIconParams params,
   140     void iconInfoFromMultiParts(HbMultiIconParams params,
   135                                 int noOfPieces,
   141                                 int noOfPieces,
   136                                 HbIconKey &stichedKey,
   142                                 HbIconKey &stichedKey,
   137                                 HbSharedIconInfo &stitchedData);
   143                                 HbSharedIconInfo &stitchedData);
       
   144     void clearSessionIconData();
       
   145     void removeSessionIconItem(const HbIconKey &key);
       
   146     void removeSessionCssItem(const QString &key);
   138 
   147 
   139 public slots:
   148 public slots:
   140     void readDataFromClient();
   149     void readDataFromClient();
   141 
   150 
   142 private:
   151 private: