equal
deleted
inserted
replaced
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "cvimpstcmdchangeownmessage.h" |
20 #include "cvimpstcmdchangeownmessage.h" |
21 |
21 |
22 #include "vimpstcmd.hrh" |
22 #include "vimpstcmd.hrh" |
23 #include "mvimpstcmdobserver.h" |
23 #include "mvimpstcmdobserver.h" |
24 #include "vimpstdebugprint.h" |
24 |
|
25 #include "uiservicetabtracer.h" |
25 |
26 |
26 #include <e32def.h> |
27 #include <e32def.h> |
27 #include "mvimpstengine.h" |
28 #include "mvimpstengine.h" |
28 #include "mvimpstenginesubservice.h" |
29 #include "mvimpstenginesubservice.h" |
29 #include "mvimpstenginepresencesubservice.h" |
30 #include "mvimpstenginepresencesubservice.h" |
59 // |
60 // |
60 CVIMPSTCmdChangeOwnMessage* CVIMPSTCmdChangeOwnMessage::NewL( |
61 CVIMPSTCmdChangeOwnMessage* CVIMPSTCmdChangeOwnMessage::NewL( |
61 const TInt aCommandId,TStatusAndStatusText aStatus, |
62 const TInt aCommandId,TStatusAndStatusText aStatus, |
62 MVIMPSTEngine& aEngine) |
63 MVIMPSTEngine& aEngine) |
63 { |
64 { |
|
65 TRACER_AUTO; |
64 CVIMPSTCmdChangeOwnMessage* self = new (ELeave ) CVIMPSTCmdChangeOwnMessage( aCommandId ,aStatus, aEngine); |
66 CVIMPSTCmdChangeOwnMessage* self = new (ELeave ) CVIMPSTCmdChangeOwnMessage( aCommandId ,aStatus, aEngine); |
65 self->ConstructL(); //use contsurctL if necessary |
67 self->ConstructL(); //use contsurctL if necessary |
66 return self; |
68 return self; |
67 } |
69 } |
68 // -------------------------------------------------------------------------- |
70 // -------------------------------------------------------------------------- |
78 // CVIMPSTCmdChangeOwnMessage::ExecuteLD |
80 // CVIMPSTCmdChangeOwnMessage::ExecuteLD |
79 // -------------------------------------------------------------------------- |
81 // -------------------------------------------------------------------------- |
80 // |
82 // |
81 void CVIMPSTCmdChangeOwnMessage::ExecuteLD() |
83 void CVIMPSTCmdChangeOwnMessage::ExecuteLD() |
82 { |
84 { |
83 CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnMessage::ExecuteLD"); |
85 |
|
86 TRACER_AUTO; |
84 //push to the cleanupstack |
87 //push to the cleanupstack |
85 CleanupStack::PushL( this ); |
88 CleanupStack::PushL( this ); |
86 |
89 |
87 //Get Presence SubService |
90 //Get Presence SubService |
88 MVIMPSTEngineSubService* subService = |
91 MVIMPSTEngineSubService* subService = |
93 MVIMPSTEnginePresenceSubService& presence = |
96 MVIMPSTEnginePresenceSubService& presence = |
94 MVIMPSTEnginePresenceSubService::Cast (*subService); |
97 MVIMPSTEnginePresenceSubService::Cast (*subService); |
95 presence.PublishOwnPresenceL(iStatus, iStatusText); |
98 presence.PublishOwnPresenceL(iStatus, iStatusText); |
96 } |
99 } |
97 |
100 |
98 CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnMessage:: CommandFinished"); |
101 |
99 |
102 |
100 if(iObserver) |
103 if(iObserver) |
101 { |
104 { |
102 iObserver->CommandFinishedL(*this); |
105 iObserver->CommandFinishedL(*this); |
103 } |
106 } |
104 CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnMessage:: CommandFinished"); |
107 |
105 CleanupStack::PopAndDestroy(); |
108 CleanupStack::PopAndDestroy(); |
106 CHAT_DP_FUNC_DONE("CVIMPSTCmdChangeOwnMessage::ExecuteLD"); |
109 |
107 } |
110 } |
108 |
111 |
109 |
112 |
110 // -------------------------------------------------------------------------- |
113 // -------------------------------------------------------------------------- |
111 // CVIMPSTCmdChangeOwnMessage::AddObserver |
114 // CVIMPSTCmdChangeOwnMessage::AddObserver |