equal
deleted
inserted
replaced
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "cvimpstcmdchangeownavtar.h" |
20 #include "cvimpstcmdchangeownavtar.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 "mvimpstenginepresencesubservice.h" |
29 #include "mvimpstenginepresencesubservice.h" |
29 #include "mvimpstenginesubservice.h" |
30 #include "mvimpstenginesubservice.h" |
76 // CVIMPSTCmdChangeOwnAvtar::ExecuteLD |
77 // CVIMPSTCmdChangeOwnAvtar::ExecuteLD |
77 // -------------------------------------------------------------------------- |
78 // -------------------------------------------------------------------------- |
78 // |
79 // |
79 void CVIMPSTCmdChangeOwnAvtar::ExecuteLD() |
80 void CVIMPSTCmdChangeOwnAvtar::ExecuteLD() |
80 { |
81 { |
81 CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnAvtar::ExecuteLD"); |
82 TRACER_AUTO; |
82 //push to the cleanupstack |
83 //push to the cleanupstack |
83 CleanupStack::PushL( this ); |
84 CleanupStack::PushL( this ); |
84 |
85 |
85 //Get Presence SubService |
86 //Get Presence SubService |
86 MVIMPSTEngineSubService* subService = |
87 MVIMPSTEngineSubService* subService = |
87 (iEngine.SubService(TVIMPSTEnums::EPresence)); |
88 (iEngine.SubService(TVIMPSTEnums::EPresence)); |
90 MVIMPSTEnginePresenceSubService& presence = |
91 MVIMPSTEnginePresenceSubService& presence = |
91 MVIMPSTEnginePresenceSubService::Cast (*subService); |
92 MVIMPSTEnginePresenceSubService::Cast (*subService); |
92 presence.PublishOwnPresenceL(iData.iStatus, iData.iStatusText, iData.iFileName , iData.iMimeType, ETrue ); |
93 presence.PublishOwnPresenceL(iData.iStatus, iData.iStatusText, iData.iFileName , iData.iMimeType, ETrue ); |
93 } |
94 } |
94 |
95 |
95 CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnAvtar:: CommandFinished"); |
96 |
96 |
97 |
97 if(iObserver) |
98 if(iObserver) |
98 { |
99 { |
99 iObserver->CommandFinishedL(*this); |
100 iObserver->CommandFinishedL(*this); |
100 } |
101 } |
101 CHAT_DP_FUNC_ENTER("CVIMPSTCmdChangeOwnAvtar:: CommandFinished"); |
102 |
102 CleanupStack::PopAndDestroy(); |
103 CleanupStack::PopAndDestroy(); |
103 CHAT_DP_FUNC_DONE("CVIMPSTCmdChangeOwnAvtar::ExecuteLD"); |
104 |
104 } |
105 } |
105 |
106 |
106 |
107 |
107 // -------------------------------------------------------------------------- |
108 // -------------------------------------------------------------------------- |
108 // CVIMPSTCmdChangeOwnAvtar::AddObserver |
109 // CVIMPSTCmdChangeOwnAvtar::AddObserver |