|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of MImConversationImp |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "imconversationimp.h" |
|
20 #include "ximpobjecthelpers.h" |
|
21 #include "imoperationdefs.h" |
|
22 //#include "ximpidentityimp.h" |
|
23 #include "ximpcontextinternal.h" |
|
24 #include "imconversationinfoimp.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS ============================= |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // CImConversationImp::NewL() |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 |
|
33 CImConversationImp* CImConversationImp::NewL( MXIMPContextInternal& aContext ) |
|
34 { |
|
35 XImLogger::Log(_L("CImConversationImp::NewL Started")); |
|
36 CImConversationImp* self = new( ELeave ) CImConversationImp( aContext ); |
|
37 XImLogger::Log(_L("CImConversationImp::NewL Completed")); |
|
38 return self; |
|
39 } |
|
40 |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // Implement supported interface access. |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 XIMPIMP_IF_BASE_GET_INTERFACE_BEGIN( CImConversationImp, |
|
47 MImConversation ) |
|
48 XIMPIMP_IF_BASE_GET_INTERFACE_END() |
|
49 |
|
50 |
|
51 XIMPIMP_IF_BASE_GET_CONST_INTERFACE_BEGIN( CImConversationImp, |
|
52 MImConversation ) |
|
53 XIMPIMP_IF_BASE_GET_INTERFACE_END() |
|
54 |
|
55 |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // CImConversationImp::~CImConversationImp() |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 CImConversationImp::~CImConversationImp() |
|
62 { |
|
63 XImLogger::Log(_L("CImConversationImp::~CImConversationImp Started - Completed")); |
|
64 } |
|
65 // --------------------------------------------------------------------------- |
|
66 // CImConversationImp::CImConversationImp() |
|
67 // --------------------------------------------------------------------------- |
|
68 // |
|
69 CImConversationImp::CImConversationImp(MXIMPContextInternal& aContext ) |
|
70 : iContext( aContext ) |
|
71 { |
|
72 } |
|
73 |
|
74 // --------------------------------------------------------------------------- |
|
75 // CImConversationImp::PackConvInfoLC() |
|
76 // --------------------------------------------------------------------------- |
|
77 // |
|
78 HBufC8* CImConversationImp::PackConvInfoLC(const MImConversationInfo& aImMessage ) |
|
79 { |
|
80 XImLogger::Log(_L("CImConversationImp::PackConvInfoLC Started")); |
|
81 const CImConversationInfoImp* convImp = |
|
82 TXIMPGetImpClassOrPanic< const CImConversationInfoImp >::From( aImMessage ); |
|
83 HBufC8* pack = TXIMPObjectPacker< const CImConversationInfoImp >::PackL( *convImp ); |
|
84 CleanupStack::PushL( pack ); |
|
85 XImLogger::Log(_L("CImConversationImp::PackConvInfoLC Completed")); |
|
86 return pack; |
|
87 } |
|
88 |
|
89 // --------------------------------------------------------------------------- |
|
90 // CImConversationImp::SendMessageL() |
|
91 // --------------------------------------------------------------------------- |
|
92 // |
|
93 TXIMPRequestId CImConversationImp::SendMessageL( const MImConversationInfo& aImMessage) |
|
94 { |
|
95 XImLogger::Log(_L("CImConversationImp::SendMessageL Started")); |
|
96 HBufC8* infoPack = PackConvInfoLC( aImMessage ); |
|
97 TXIMPRequestId reqId = iContext.QueueOperationL( NImOps::ESendImMessage, *infoPack ); |
|
98 CleanupStack::PopAndDestroy( infoPack ); |
|
99 XImLogger::Log(_L("CImConversationImp::SendMessageL Completed")); |
|
100 return reqId; |
|
101 } |
|
102 |
|
103 // --------------------------------------------------------------------------- |
|
104 // CImConversationImp::ForwardMessageL() |
|
105 // --------------------------------------------------------------------------- |
|
106 // |
|
107 |
|
108 //TXIMPRequestId CImConversationImp::ForwardMessageL( const MImConversationInfo& /*aImMessage*/) |
|
109 // { |
|
110 // } |
|
111 |
|
112 // --------------------------------------------------------------------------- |
|
113 // CImConversationImp::SendMessageToGroupL() |
|
114 // --------------------------------------------------------------------------- |
|
115 // |
|
116 //TXIMPRequestId CImConversationImp::SendMessageToGroupL( const MImConversationInfo& /*aImMessage*/, |
|
117 // const TDesC* /*aGroupId*/ ) |
|
118 // { |
|
119 // } |
|
120 |
|
121 // --------------------------------------------------------------------------- |
|
122 // CImConversationImp::BlockUsersL() |
|
123 // --------------------------------------------------------------------------- |
|
124 // |
|
125 //TXIMPRequestId CImConversationImp::BlockUsersL(const MDesCArray* /*aUserIds*/ ) |
|
126 // { |
|
127 // } |
|
128 |
|
129 // --------------------------------------------------------------------------- |
|
130 // CImConversationImp::UnBlockUsersL() |
|
131 // --------------------------------------------------------------------------- |
|
132 // |
|
133 //TXIMPRequestId CImConversationImp::UnBlockUsersL(const MDesCArray* /*aUserIds*/) |
|
134 // { |
|
135 // } |
|
136 |
|
137 // --------------------------------------------------------------------------- |
|
138 // CImConversationImp::GetBlockedUsersListL() |
|
139 // --------------------------------------------------------------------------- |
|
140 // |
|
141 //TXIMPRequestId CImConversationImp::GetBlockedUsersListL(void ) |
|
142 // { |
|
143 // } |
|
144 |
|
145 // --------------------------------------------------------------------------- |
|
146 // CImConversationImp::GetMessageListL() |
|
147 // --------------------------------------------------------------------------- |
|
148 // |
|
149 //TXIMPRequestId CImConversationImp::GetMessageListL( const MXIMPIdentity& /*aImMessageId*/, |
|
150 // const TDesC* /*aGroupId*/, |
|
151 // const TInt /*aMessageCount*/, |
|
152 // TBool /*aDeliveryReportWanted*/) |
|
153 // { |
|
154 // } |
|
155 |
|
156 // --------------------------------------------------------------------------- |
|
157 // CImConversationImp::RejectMessageL() |
|
158 // --------------------------------------------------------------------------- |
|
159 // |
|
160 //TXIMPRequestId CImConversationImp::RejectMessageL( const MXIMPIdentity& /*aImMessageId*/) |
|
161 // { |
|
162 // } |
|
163 |
|
164 // End of file |