contentstorage/caclient/stub/inc/caclientproxy.h
changeset 104 9b022b1f357c
parent 66 32469d7d46ff
equal deleted inserted replaced
103:b99b84bcd2d1 104:9b022b1f357c
    23 
    23 
    24 //FORWARD DECLARATIONS
    24 //FORWARD DECLARATIONS
    25 class CaClientNotifierProxy;
    25 class CaClientNotifierProxy;
    26 class CaEntry;
    26 class CaEntry;
    27 class CaQuery;
    27 class CaQuery;
    28 class HsWidgetToken;
    28 class HsWidgetComponentDescriptor;
    29 
    29 
    30 /**
    30 /**
    31  *  CaClientProxy
    31  *  CaClientProxy
    32  *
    32  *
    33  */
    33  */
   129      */
   129      */
   130     ErrorCode getEntryIds(const CaQuery &query,
   130     ErrorCode getEntryIds(const CaQuery &query,
   131                           QList<int>& sourceIdList);
   131                           QList<int>& sourceIdList);
   132 
   132 
   133     /**
   133     /**
   134      * Method for executing command
       
   135      *
       
   136      * @param entry entry on wchich command will be executed
       
   137      * @param command command to execute
       
   138      * @return error code
       
   139      */
       
   140     ErrorCode executeCommand(const CaEntry &entry,
       
   141                              const QString &command);
       
   142 
       
   143     /**
       
   144      * Method for touching entry.
   134      * Method for touching entry.
   145      *
   135      *
   146      * @param entry entry to touch
   136      * @param entry entry to touch
   147      * @return error code
   137      * @return error code
   148      */
   138      */
   164      */
   154      */
   165     bool GetParentsIds(const QList<int> &entryIds,
   155     bool GetParentsIds(const QList<int> &entryIds,
   166                        QList<int> &parentIds);
   156                        QList<int> &parentIds);
   167 
   157 
   168 private:
   158 private:
   169     bool hsWidgetExists(int uid);
   159     int hsWidgetId(int uid);
   170     void addWidgetEntry(const HsWidgetToken &widgetToken);
   160     void addWidgetEntry(const HsWidgetComponentDescriptor &widgetToken, int widgetId);
   171 
   161 
   172     void modifyQueryForSortOrder(QString &queryString,
   162     void modifyQueryForSortOrder(QString &queryString,
   173                                  const CaQuery &query, bool parent) const;
   163                                  const CaQuery &query, bool parent) const;
   174     bool setIconInDb(CaEntry *entryClone) const;
   164     bool setIconInDb(CaEntry *entryClone) const;
   175     bool setEntryInDb(CaEntry *entryClone) const;
   165     bool setEntryInDb(CaEntry *entryClone) const;