contentstorage/caclient/inc/caservice_p.h
changeset 87 9d806967057c
parent 85 7feec50967db
child 92 782e3408c2ab
equal deleted inserted replaced
86:e492551a0d54 87:9d806967057c
    33 public:
    33 public:
    34 
    34 
    35     explicit CaServicePrivate(CaService *servicePublic);
    35     explicit CaServicePrivate(CaService *servicePublic);
    36     ~CaServicePrivate();
    36     ~CaServicePrivate();
    37 
    37 
    38     QList<CaEntry*> getEntries(const QList<int> &entryIdList) const;
    38     QList<CaEntry *> getEntries(const QList<int> &entryIdList) const;
    39     QList<CaEntry*> getEntries(const CaQuery &query) const;
    39     QList<CaEntry *> getEntries(const CaQuery &query) const;
    40     QList<int> getEntryIds(const CaQuery &query) const;
    40     QList<int> getEntryIds(const CaQuery &query) const;
    41 
    41 
    42     CaEntry *createEntry(const CaEntry &entry);
    42     CaEntry *createEntry(const CaEntry &entry);
    43 
    43 
    44     bool removeEntries(const QList<int> &entryIdList);
    44     bool removeEntries(const QList<int> &entryIdList);
    46     bool updateEntry(const CaEntry &entry);
    46     bool updateEntry(const CaEntry &entry);
    47 
    47 
    48     bool touch(const CaEntry &entry);
    48     bool touch(const CaEntry &entry);
    49 
    49 
    50     bool insertEntriesIntoGroup(int groupId, const QList<int> &entryIdList,
    50     bool insertEntriesIntoGroup(int groupId, const QList<int> &entryIdList,
    51         int beforeEntryId);
    51                                 int beforeEntryId);
    52 
    52 
    53     bool removeEntriesFromGroup(int groupId, const QList<int> &entryIdList);
    53     bool removeEntriesFromGroup(int groupId, const QList<int> &entryIdList);
    54 
    54 
    55     bool appendEntriesToGroup(int groupId, const QList<int> &entryIdList);
    55     bool appendEntriesToGroup(int groupId, const QList<int> &entryIdList);
    56 
    56 
    57     bool prependEntriesToGroup(int groupId, const QList<int> &entryIdList);
    57     bool prependEntriesToGroup(int groupId, const QList<int> &entryIdList);
    58 
    58 
    59     bool executeCommand(const CaEntry &entry, const QString &command);
    59     bool executeCommand(const CaEntry &entry, const QString &command);
    60 
    60 
    61     CaNotifier * createNotifier(const CaNotifierFilter &filter);
    61     CaNotifier *createNotifier(const CaNotifierFilter &filter);
    62 
    62 
    63     bool customSort(int groupId, QList<int> &entryIdList);
    63     bool customSort(int groupId, QList<int> &entryIdList);
    64 
    64 
    65     ErrorCode lastError() const;
    65     ErrorCode lastError() const;
    66 
    66 
    67 private:
    67 private:
    68 
    68 
    69     /**
    69     /**
    70      * Points to the CaService instance that uses this private implementation.
    70      * Points to the CaService instance that uses this private implementation.
    71      */
    71      */
    72     CaService * const m_q;
    72     CaService *const m_q;
    73 
    73 
    74     /**
    74     /**
    75      * Proxy to communicate with Symbian server.
    75      * Proxy to communicate with Symbian server.
    76      */
    76      */
    77     CaClientProxy * mProxy;
    77     CaClientProxy *mProxy;
    78 
    78 
    79     /**
    79     /**
    80      * code of error caused by last operation.
    80      * code of error caused by last operation.
    81      */
    81      */
    82     mutable ErrorCode mErrorCode;
    82     mutable ErrorCode mErrorCode;