equal
deleted
inserted
replaced
70 // |
70 // |
71 // ----------------------------------------------------------------------------- |
71 // ----------------------------------------------------------------------------- |
72 // |
72 // |
73 void CActivityObserverTask::BroadcastReceivedL(const RMessage2& msg) |
73 void CActivityObserverTask::BroadcastReceivedL(const RMessage2& msg) |
74 { |
74 { |
75 if (WaitActivity == mMsg.Function() && |
75 if(EFalse != mMsg.IsNull()) { |
76 LaunchActivity == msg.Function()) { |
76 mGlobalStorage.Pop(this);// |
77 TPckgBuf<TInt> observerdId; |
77 mLocalStorage.Pop(this); |
78 mMsg.ReadL(KRequestAppIdOffset, observerdId); |
78 delete this; |
|
79 } else if (WaitActivity == mMsg.Function() && |
|
80 LaunchActivity == msg.Function()) { |
|
81 TPckgBuf<TInt> observerdId; |
|
82 mMsg.ReadL(KRequestAppIdOffset, observerdId); |
79 |
83 |
80 TPckgBuf<TInt> requestedId; |
84 TPckgBuf<TInt> requestedId; |
81 msg.ReadL(KRequestAppIdOffset, requestedId); |
85 msg.ReadL(KRequestAppIdOffset, requestedId); |
82 if (observerdId() == requestedId()) { |
86 if (observerdId() == requestedId()) { |
83 if (msg.GetDesLength(KRequestActOffset) > mData.MaxLength()) { |
87 if (msg.GetDesLength(KRequestActOffset) > mData.MaxLength()) { |
93 CancelWait == msg.Function() && |
97 CancelWait == msg.Function() && |
94 mMsg.Session() == msg.Session()) { |
98 mMsg.Session() == msg.Session()) { |
95 mGlobalStorage.Pop(this); |
99 mGlobalStorage.Pop(this); |
96 mMsg.Complete(KErrCancel); |
100 mMsg.Complete(KErrCancel); |
97 delete this; |
101 delete this; |
|
102 } else if (NotifyChange == mMsg.Function() && |
|
103 CancelNotify == msg.Function() && |
|
104 mMsg.Session() == msg.Session()) { |
|
105 mGlobalStorage.Pop(this); |
|
106 mMsg.Complete(KErrCancel); |
|
107 delete this; |
|
108 } else if(NotifyChange == mMsg.Function() && |
|
109 (AddActivity == msg.Function() || |
|
110 UpdateActivity == msg.Function() || |
|
111 RemoveActivity == msg.Function() || |
|
112 RemoveApplicationActivities == msg.Function())){ |
|
113 mMsg.Complete(KErrNone); |
|
114 mGlobalStorage.Pop(this); |
|
115 delete this; |
98 } |
116 } |
99 } |
117 } |
100 |
118 |
101 // ----------------------------------------------------------------------------- |
119 // ----------------------------------------------------------------------------- |
102 // |
120 // |