1 /* |
|
2 * Copyright (c) 2007-2008 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: Oss protocol im conversation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef COSSPROTOCOLIMCONVERSATION_H__ |
|
19 #define COSSPROTOCOLIMCONVERSATION_H__ |
|
20 |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <protocolimconversation.h> |
|
24 |
|
25 |
|
26 class MOSSProtocolConnectionManager; |
|
27 |
|
28 |
|
29 /** |
|
30 * COSSProtocolImConversation |
|
31 * |
|
32 * ?more_complete_description |
|
33 * |
|
34 * @lib ?library |
|
35 * @since S60 v4.0 |
|
36 */ |
|
37 class COSSProtocolImConversation : public CBase, |
|
38 public MProtocolImConversation |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 static COSSProtocolImConversation* NewL( MOSSProtocolConnectionManager& aConnManager ); |
|
44 ~COSSProtocolImConversation(); |
|
45 |
|
46 |
|
47 private: |
|
48 |
|
49 COSSProtocolImConversation( MOSSProtocolConnectionManager& aConnManager ); |
|
50 void ConstructL(); |
|
51 |
|
52 public: |
|
53 |
|
54 // MXIMPBase Start |
|
55 |
|
56 TAny* GetInterface( TInt32 aInterfaceId, |
|
57 TIfGetOps aOptions ); |
|
58 |
|
59 const TAny* GetInterface( TInt32 aInterfaceId, |
|
60 TIfGetOps aOptions ) const; |
|
61 |
|
62 |
|
63 TInt32 GetInterfaceId() const; |
|
64 |
|
65 // MXIMPBase End |
|
66 |
|
67 public: // From MProtocolImConversation |
|
68 // Manage Im operations.For comments,see MProtocolImConversation |
|
69 void DoSendMessageL( |
|
70 const MImConversationInfo& aImMessage, |
|
71 TXIMPRequestId aReqId ); |
|
72 void DoForwardMessageL( |
|
73 const MImConversationInfo& aImMessage, |
|
74 TXIMPRequestId aReqId); |
|
75 void DoSendMessageToGroupL( |
|
76 const MImConversationInfo& aImMessage, |
|
77 const TDesC* aGroupId,TXIMPRequestId aReqId ); |
|
78 TXIMPRequestId DoBlockUsersL( |
|
79 const MDesCArray* aUserIds, |
|
80 TXIMPRequestId aReqId); |
|
81 TXIMPRequestId DoUnBlockUsersL( |
|
82 const MDesCArray* aUserIds, |
|
83 TXIMPRequestId aReqId ); |
|
84 void DoGetBlockedListRequestL( |
|
85 const MXIMPIdentity& aImMessageId, |
|
86 TXIMPRequestId aReqId ); |
|
87 void DoGetMessageListL( |
|
88 const MXIMPIdentity& aImMessageId, |
|
89 const TDesC* aGroupId, |
|
90 const TInt aMessageCount, |
|
91 TBool aDeliveryReportWanted, |
|
92 TXIMPRequestId aReqId); |
|
93 void DoRejectMessageL( |
|
94 const MXIMPIdentity& aImMessageId, |
|
95 const TDesC& aMessageID, |
|
96 TXIMPRequestId aReqId ); |
|
97 private: |
|
98 /** |
|
99 * Creates data handler |
|
100 */ |
|
101 void CreateDataHandlerL(); |
|
102 |
|
103 private: // data members |
|
104 /** |
|
105 * Oss Protocol Plugin Connection Manager |
|
106 * Not own. *** Write "Not own" if some other class owns this object. |
|
107 */ |
|
108 MOSSProtocolConnectionManager& iConnMan; |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // COSSPROTOCOLIMCONVERSATION_H__ |
|