|
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: canotifier.h |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CANOTIFIER_H |
|
19 #define CANOTIFIER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include "cadefs.h" |
|
23 #include "caclient_global.h" |
|
24 #include "caentry.h" |
|
25 |
|
26 CA_CLIENT_TEST_CLASS( TestCaClient ) |
|
27 |
|
28 |
|
29 class CaNotifierPrivate; |
|
30 class CaNotifierFilter; |
|
31 |
|
32 class CACLIENT_EXPORT CaNotifier: public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 |
|
38 explicit CaNotifier(CaNotifierPrivate *const notifierPrivate); |
|
39 |
|
40 virtual ~CaNotifier(); |
|
41 |
|
42 signals: |
|
43 |
|
44 /*! |
|
45 A signal emited when the entry is changed. |
|
46 \param entryId entry id. |
|
47 \param changeType the type of the change. |
|
48 */ |
|
49 void entryChanged(int entryId, ChangeType changeType); |
|
50 |
|
51 /*! |
|
52 A signal emited when the entry is changed. |
|
53 \param entry changed entry. |
|
54 \param changeType the type of the change. |
|
55 */ |
|
56 void entryChanged(const CaEntry &entry, ChangeType changeType); |
|
57 |
|
58 /*! |
|
59 A signal emited when the entry is touched. |
|
60 \param id entry id. |
|
61 */ |
|
62 void entryTouched(int id); |
|
63 |
|
64 /*! |
|
65 A signal emited when group content is changed. |
|
66 \param groupId group id. |
|
67 */ |
|
68 void groupContentChanged(int groupId); |
|
69 |
|
70 protected: |
|
71 |
|
72 virtual void connectNotify(const char * signal); |
|
73 |
|
74 virtual void disconnectNotify(const char * signal); |
|
75 |
|
76 private: |
|
77 |
|
78 CaNotifierPrivate * const m_d; |
|
79 |
|
80 Q_DISABLE_COPY(CaNotifier) |
|
81 |
|
82 friend class CaNotifierPrivate; |
|
83 |
|
84 CA_CLIENT_TEST_FRIEND_CLASS( TestCaClient ) |
|
85 |
|
86 }; |
|
87 |
|
88 |
|
89 #endif // CANOTIFIER_H |