diff -r e492551a0d54 -r 9d806967057c contentstorage/caclient/stub/inc/caclientproxy.h --- a/contentstorage/caclient/stub/inc/caclientproxy.h Tue Mar 23 23:28:12 2010 +0200 +++ b/contentstorage/caclient/stub/inc/caclientproxy.h Tue Mar 23 23:42:03 2010 +0200 @@ -11,7 +11,7 @@ * * Contributors: * - * Description: + * Description: * */ @@ -38,8 +38,7 @@ /** * Insert into group type. */ - enum InsertType - { + enum InsertType { AfterTheLastEntry = -1, BeforeTheFirstEntry = 0 }; @@ -71,8 +70,8 @@ * @param targetEntry entry. * @return error code. */ - ErrorCode addData(const CaEntry& entryToAdd, - CaEntry& targetEntry); + ErrorCode addData(const CaEntry &entryToAdd, + CaEntry &targetEntry); /** * Method for removing entries. @@ -89,7 +88,7 @@ * @return error code. */ ErrorCode insertEntriesIntoGroup(int groupId, - const QList &entryIdList, int beforeEntryId); + const QList &entryIdList, int beforeEntryId); /** * Remove entries from group. @@ -100,8 +99,8 @@ * @return error code. */ ErrorCode removeEntriesFromGroup(int groupId, - const QList &entryIdList, - bool calledDirectly = true); + const QList &entryIdList, + bool calledDirectly = true); /** * Method for fetching entries. @@ -110,7 +109,7 @@ * @param sourceList List of results. * @return error code */ - ErrorCode getData(const QList& entryIdList, QList& sourceList); + ErrorCode getData(const QList& entryIdList, QList& sourceList); /** * Method for fetching entries. @@ -119,7 +118,7 @@ * @param sourceList List of results. * @return error code */ - ErrorCode getData(const CaQuery &query, QList& sourceList); + ErrorCode getData(const CaQuery &query, QList& sourceList); /** * Method for fetching entries. @@ -129,7 +128,7 @@ * @return error code */ ErrorCode getEntryIds(const CaQuery &query, - QList& sourceIdList); + QList& sourceIdList); /** * Method for executing command @@ -138,8 +137,8 @@ * @param command command to execute * @return error code */ - ErrorCode executeCommand(const CaEntry& entry, - const QString& command); + ErrorCode executeCommand(const CaEntry &entry, + const QString &command); /** * Method for touching entry. @@ -147,12 +146,12 @@ * @param entry entry to touch * @return error code */ - ErrorCode touch(const CaEntry& entry); - + ErrorCode touch(const CaEntry &entry); + /** * Method for custom sort. * @param entryIdList list of ids. - * @param groupId Group id. + * @param groupId Group id. * @return error code. */ ErrorCode customSort(const QList &entryIdList, int groupId); @@ -163,23 +162,23 @@ * @param parentIds a list of parent ids. * @return true if the operation is successful. */ - bool GetParentsIds( const QList &entryIds, - QList &parentIds); + bool GetParentsIds(const QList &entryIds, + QList &parentIds); private: bool hsWidgetExists(int uid); void addWidgetEntry(const HsWidgetToken &widgetToken); - - void modifyQueryForSortOrder(QString& queryString, - const CaQuery &query, bool parent) const; - bool setIconInDb(CaEntry* entryClone) const; - bool setEntryInDb(CaEntry* entryClone) const; - bool setAttributesInDb(CaEntry* entryClone) const; + + void modifyQueryForSortOrder(QString &queryString, + const CaQuery &query, bool parent) const; + bool setIconInDb(CaEntry *entryClone) const; + bool setEntryInDb(CaEntry *entryClone) const; + bool setAttributesInDb(CaEntry *entryClone) const; void CreateGetParentsIdsQuery( const QList &entryIds, const QList &parentIds, QString &query); - + private: QString mWidgetRegistryPath; };