85
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: caservice_p.h
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CASERVICE_PRIVATE_H
|
|
19 |
#define CASERVICE_PRIVATE_H
|
|
20 |
|
|
21 |
#include <QList>
|
|
22 |
|
|
23 |
class QString;
|
|
24 |
class CaClientProxy;
|
|
25 |
class CaEntry;
|
|
26 |
class CaQuery;
|
|
27 |
class CaService;
|
|
28 |
class CaNotifier;
|
93
|
29 |
class CaClientNotifierProxy;
|
96
|
30 |
class CaHandlerProxy;
|
85
|
31 |
|
|
32 |
class CaServicePrivate
|
|
33 |
{
|
|
34 |
|
|
35 |
public:
|
|
36 |
|
|
37 |
explicit CaServicePrivate(CaService *servicePublic);
|
|
38 |
~CaServicePrivate();
|
|
39 |
|
92
|
40 |
QList< QSharedPointer<CaEntry> > getEntries(const QList<int> &entryIdList) const;
|
|
41 |
QList< QSharedPointer<CaEntry> > getEntries(const CaQuery &query) const;
|
85
|
42 |
QList<int> getEntryIds(const CaQuery &query) const;
|
|
43 |
|
92
|
44 |
QSharedPointer<CaEntry> createEntry(const CaEntry &entry);
|
85
|
45 |
|
|
46 |
bool removeEntries(const QList<int> &entryIdList);
|
|
47 |
|
|
48 |
bool updateEntry(const CaEntry &entry);
|
|
49 |
|
|
50 |
bool touch(const CaEntry &entry);
|
|
51 |
|
|
52 |
bool insertEntriesIntoGroup(int groupId, const QList<int> &entryIdList,
|
87
|
53 |
int beforeEntryId);
|
85
|
54 |
|
|
55 |
bool removeEntriesFromGroup(int groupId, const QList<int> &entryIdList);
|
|
56 |
|
|
57 |
bool appendEntriesToGroup(int groupId, const QList<int> &entryIdList);
|
|
58 |
|
|
59 |
bool prependEntriesToGroup(int groupId, const QList<int> &entryIdList);
|
|
60 |
|
116
|
61 |
int executeCommand(const CaEntry &entry, const QString &command,
|
|
62 |
QObject* receiver = NULL, const char* member = NULL);
|
85
|
63 |
|
87
|
64 |
CaNotifier *createNotifier(const CaNotifierFilter &filter);
|
85
|
65 |
|
|
66 |
bool customSort(int groupId, QList<int> &entryIdList);
|
|
67 |
|
|
68 |
ErrorCode lastError() const;
|
|
69 |
|
|
70 |
private:
|
|
71 |
|
87
|
72 |
CaService *const m_q;
|
85
|
73 |
|
96
|
74 |
// Command handler.
|
|
75 |
QSharedPointer<CaHandlerProxy> mCommandHandler;
|
|
76 |
|
87
|
77 |
CaClientProxy *mProxy;
|
93
|
78 |
|
|
79 |
CaClientNotifierProxy *mNotifierProxy;
|
85
|
80 |
|
|
81 |
mutable ErrorCode mErrorCode;
|
|
82 |
|
|
83 |
};
|
|
84 |
|
|
85 |
#endif //CASERVICE_PRIVATE_H
|