equal
deleted
inserted
replaced
22 #include <QPair> |
22 #include <QPair> |
23 |
23 |
24 #include "canotifier_p.h" |
24 #include "canotifier_p.h" |
25 |
25 |
26 class CaNotifierFilter; |
26 class CaNotifierFilter; |
27 class CaClientNotifierProxy; |
27 class CaObserver; |
28 |
28 |
29 class CaNotifiers |
29 class CaNotifiers |
30 { |
30 { |
31 public: |
31 public: |
32 static int addNotifier(const CaNotifierFilter *notifierFilter, |
32 static int addNotifier(const CaNotifierFilter *notifierFilter, |
33 CaNotifierPrivate::NotifierType notifierType, |
33 CaNotifierPrivate::NotifierType notifierType, |
34 const CaClientNotifierProxy *notifierProxy); |
34 const CaObserver *notifierProxy); |
35 |
35 |
36 static void removeNotifier(const CaNotifierFilter *notifierFilter, |
36 static void removeNotifier(const CaNotifierFilter *notifierFilter, |
37 CaNotifierPrivate::NotifierType notifierType); |
37 CaNotifierPrivate::NotifierType notifierType); |
38 |
38 |
39 static void Notify(int groupId); |
39 static void Notify(int groupId); |
51 const QList<int> &parentIds); |
51 const QList<int> &parentIds); |
52 |
52 |
53 private: |
53 private: |
54 typedef QPair<const CaNotifierFilter *, |
54 typedef QPair<const CaNotifierFilter *, |
55 CaNotifierPrivate::NotifierType> NotifierKey; |
55 CaNotifierPrivate::NotifierType> NotifierKey; |
56 typedef QHash<NotifierKey, const CaClientNotifierProxy *> NotifierHash; |
56 typedef QHash<NotifierKey, const CaObserver *> NotifierHash; |
57 |
57 |
58 private: |
58 private: |
59 static NotifierHash mNotifiers; |
59 static NotifierHash mNotifiers; |
60 |
60 |
61 }; |
61 }; |