src/hbservers/hbthemeserver/hbthemeserver_generic_p_p.h
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 3 11d3954df52a
equal deleted inserted replaced
1:f7ac710697a9 2:06ff229162e9
    53     HbThemeServerPrivate();
    53     HbThemeServerPrivate();
    54 #endif
    54 #endif
    55 
    55 
    56     ~HbThemeServerPrivate();
    56     ~HbThemeServerPrivate();
    57     bool start();
    57     bool start();
       
    58     void stop();
    58 
    59 
    59     bool insertIconCacheItem(const HbIconKey &key, HbIconCacheItem *item);
    60     bool insertIconCacheItem(const HbIconKey &key, HbIconCacheItem *item);
    60     HbIconCacheItem* iconCacheItem(const HbIconKey &key);
    61     HbIconCacheItem* iconCacheItem(const HbIconKey &key);
    61     void setMaxGpuCacheSize(int size);
    62     void setMaxGpuCacheSize(int size);
    62     void setMaxCpuCacheSize(int size);
    63     void setMaxCpuCacheSize(int size);
    79     int sessionListCount() const;
    80     int sessionListCount() const;
    80 
    81 
    81     int freeSharedMemory() const;
    82     int freeSharedMemory() const;
    82     int allocatedSharedMemory() const;
    83     int allocatedSharedMemory() const;
    83 
    84 
       
    85 	HbRenderingMode currentRenderingMode() const;
       
    86     void setCurrentRenderingMode(HbRenderingMode currentMode);
       
    87 
    84 //Debug Code for Test Purpose
    88 //Debug Code for Test Purpose
    85 #ifdef HB_ICON_CACHE_DEBUG
    89 #ifdef HB_ICON_CACHE_DEBUG
    86     int cacheIconCount() const;
    90     int cacheIconCount() const;
    87     int memorySize(const QString &mem);
    91     int memorySize(const QString &mem);
    88     int freeVectorMemory();
    92     int freeVectorMemory();
   101     int vectorLruCount();
   105     int vectorLruCount();
   102 #endif
   106 #endif
   103 
   107 
   104 private slots:
   108 private slots:
   105     void newClientConnected();
   109     void newClientConnected();
       
   110     void clienDisconnected();
   106     void removeFromList();
   111     void removeFromList();
       
   112     bool listen();
   107 
   113 
   108 public:
   114 public:
   109     QHash<QString, HbCacheItem*> themePriorityItems;
   115     QHash<QString, HbCacheItem*> themePriorityItems;
   110 
   116 
   111 private:
   117 private:
   115     QLocalServer *server;
   121     QLocalServer *server;
   116     QLocalSocket *iThemeSelectionClient;
   122     QLocalSocket *iThemeSelectionClient;
   117     QList<HbThemeServerSession*> sessionList;
   123     QList<HbThemeServerSession*> sessionList;
   118     HbIconDataCache *iconCache;
   124     HbIconDataCache *iconCache;
   119     HbCache *cssCache;
   125     HbCache *cssCache;
       
   126 	HbRenderingMode renderMode;
   120 };
   127 };
   121 
   128 
   122 class HbThemeServerSession : public QObject
   129 class HbThemeServerSession : public QObject
   123 {
   130 {
   124     Q_OBJECT
   131     Q_OBJECT