equal
deleted
inserted
replaced
|
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 #include <caentry.h> |
|
23 |
|
24 class QString; |
|
25 class CaQuery; |
|
26 class CaServicePrivate |
|
27 { |
|
28 |
|
29 public: |
|
30 ~CaServicePrivate() { |
|
31 clearAll(); |
|
32 } |
|
33 |
|
34 QList< QSharedPointer<CaEntry> > mCreatedEntries; |
|
35 QList< QSharedPointer<CaEntry> > mReturnedEntries; |
|
36 int mEntryToRemove; |
|
37 QSharedPointer<CaEntry> mUpdatedEntry; |
|
38 CaQuery* mQueryPassedToGetList; |
|
39 |
|
40 void AddEntriesForUpdate(); |
|
41 void clearAll(); |
|
42 static CaServicePrivate& instance() { |
|
43 static CaServicePrivate caServicePrivate; |
|
44 return caServicePrivate; |
|
45 } |
|
46 |
|
47 private: |
|
48 |
|
49 explicit CaServicePrivate(): mUpdatedEntry (NULL), mQueryPassedToGetList (NULL) |
|
50 { |
|
51 } |
|
52 }; |
|
53 |
|
54 #endif //CASERVICE_PRIVATE_H |