36 } |
37 } |
37 |
38 |
38 //---------------------------------------------------------------------------- |
39 //---------------------------------------------------------------------------- |
39 // |
40 // |
40 //---------------------------------------------------------------------------- |
41 //---------------------------------------------------------------------------- |
41 void CaClientNotifierProxy::entryChanged(TInt entryId, |
|
42 TChangeType changeType) const |
|
43 { |
|
44 qDebug() << "CaClientProxy::entryChanged entryId:" |
|
45 << entryId << "changeType:" << changeType; |
|
46 |
|
47 int entryChangedId(entryId); |
|
48 ChangeType entryChangeType(AddChangeType); |
|
49 CaObjectAdapter::convert(changeType, entryChangeType); |
|
50 |
|
51 emit signalEntryChanged(entryChangedId, entryChangeType); |
|
52 } |
|
53 |
|
54 //---------------------------------------------------------------------------- |
|
55 // |
|
56 //---------------------------------------------------------------------------- |
|
57 void CaClientNotifierProxy::entryChanged(const CCaInnerEntry &entry, |
|
58 TChangeType changeType) const |
|
59 { |
|
60 qDebug() << "CaClientProxy::entryChanged changeType:" << changeType; |
|
61 |
|
62 CaEntry *caEntry = new CaEntry(static_cast<EntryRole>(entry.GetRole())); |
|
63 ChangeType entryChangeType(AddChangeType); |
|
64 CaObjectAdapter::convert(entry, *caEntry); |
|
65 CaObjectAdapter::convert(changeType, entryChangeType); |
|
66 |
|
67 emit signalEntryChanged(*caEntry, entryChangeType); |
|
68 } |
|
69 |
|
70 //---------------------------------------------------------------------------- |
|
71 // |
|
72 //---------------------------------------------------------------------------- |
|
73 void CaClientNotifierProxy::entryTouched(TInt id) const |
|
74 { |
|
75 qDebug() << "CaClientProxy::entryTouched id:" << id; |
|
76 emit signalEntryTouched(id); |
|
77 } |
|
78 |
|
79 //---------------------------------------------------------------------------- |
|
80 // |
|
81 //---------------------------------------------------------------------------- |
|
82 void CaClientNotifierProxy::groupContentChanged(TInt groupId) const |
|
83 { |
|
84 qDebug() << "CaClientProxy::groupContentChanged groupId:" << groupId; |
|
85 |
|
86 int groupChangedId(groupId); |
|
87 |
|
88 emit signalGroupContentChanged(groupChangedId); |
|
89 } |
|
90 |
|
91 //---------------------------------------------------------------------------- |
|
92 // |
|
93 //---------------------------------------------------------------------------- |
|
94 int CaClientNotifierProxy::registerNotifier( |
42 int CaClientNotifierProxy::registerNotifier( |
95 const CaNotifierFilter *notifierFilter, |
43 const CaNotifierFilter *notifierFilter, |
96 CaNotifierPrivate::NotifierType notifierType, |
44 CaNotifierPrivate::NotifierType notifierType, |
97 const CaClientNotifierProxy *notifierProxy) |
45 const IDataObserver *observer) |
98 { |
46 { |
99 qDebug() << "CaClientProxy::registerNotifier notifierType:" |
47 qDebug() << "CaClientProxy::registerNotifier notifierType:" |
100 << notifierType; |
48 << notifierType; |
101 |
49 |
102 CCaInnerNotifierFilter::TNotifierType innerNotifierType( |
50 CCaInnerNotifierFilter::TNotifierType innerNotifierType( |
157 if (mSessions[pos].SubsessionsCount() == 0) { |
105 if (mSessions[pos].SubsessionsCount() == 0) { |
158 mSessions[pos].Close(); |
106 mSessions[pos].Close(); |
159 mSessions.Remove(pos); |
107 mSessions.Remove(pos); |
160 } |
108 } |
161 } |
109 } |
|
110 } |
|
111 |
|
112 //---------------------------------------------------------------------------- |
|
113 // |
|
114 //---------------------------------------------------------------------------- |
|
115 void CaClientNotifierProxy::connectSessions() |
|
116 { |
|
117 for (int i = 0; i < mSessions.Count(); i++) { |
|
118 TRAP_IGNORE(mSessions[i].ConnectAllL()); |
|
119 } |
162 } |
120 } |
163 |
121 |
164 //---------------------------------------------------------------------------- |
122 //---------------------------------------------------------------------------- |
165 // |
123 // |
166 //---------------------------------------------------------------------------- |
124 //---------------------------------------------------------------------------- |