|
51
|
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 |
#ifndef CIMCONVERSATIONIMP_H
|
|
|
19 |
#define CIMCONVERSATIONIMP_H
|
|
|
20 |
|
|
|
21 |
#include <imconversation.h>
|
|
|
22 |
#include "imlogutils.h"
|
|
|
23 |
#include "imapiobjbase.h"
|
|
|
24 |
#include "ximpapiobjbase.h"
|
|
|
25 |
// FORWARD DECLARATIONS
|
|
|
26 |
class MXIMPContextInternal;
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* MImConversation API object implementation.
|
|
|
30 |
*
|
|
|
31 |
* @lib Immanager.dll
|
|
|
32 |
*
|
|
|
33 |
*/
|
|
|
34 |
NONSHARABLE_CLASS( CImConversationImp ): public CXIMPApiObjBase,public MImConversation
|
|
|
35 |
{
|
|
|
36 |
public:
|
|
|
37 |
/** The class ID. */
|
|
|
38 |
enum { KClassId = IMIMP_CLSID_CONVERSATIONIMP };
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
public:
|
|
|
42 |
static CImConversationImp* NewL( MXIMPContextInternal& aContext );
|
|
|
43 |
~CImConversationImp();
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
public:
|
|
|
47 |
CImConversationImp( MXIMPContextInternal& aContext );
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
public: // From MXIMPBase
|
|
|
51 |
|
|
|
52 |
/**
|
|
|
53 |
* Implementation of MXIMPBase interface methods
|
|
|
54 |
* @see MXIMPBase
|
|
|
55 |
*/
|
|
|
56 |
XIMPIMP_DECLARE_IF_BASE_METHODS
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
public: //From MImConversation
|
|
|
60 |
|
|
|
61 |
TXIMPRequestId SendMessageL( const MImConversationInfo& aImMessage);
|
|
|
62 |
//TXIMPRequestId ForwardMessageL( const MImConversationInfo& aImMessage);
|
|
|
63 |
//TXIMPRequestId SendMessageToGroupL( const MImConversationInfo& aImMessage,
|
|
|
64 |
// const TDesC* aGroupId );
|
|
|
65 |
|
|
|
66 |
//TXIMPRequestId BlockUsersL(const MDesCArray* aUserIds );
|
|
|
67 |
|
|
|
68 |
//TXIMPRequestId UnBlockUsersL(const MDesCArray* aUserIds );
|
|
|
69 |
|
|
|
70 |
//TXIMPRequestId GetBlockedUsersListL(void );
|
|
|
71 |
|
|
|
72 |
//TXIMPRequestId GetMessageListL( const MXIMPIdentity& aImMessageId,
|
|
|
73 |
// const TDesC* aGroupId,
|
|
|
74 |
// const TInt aMessageCount,
|
|
|
75 |
// TBool aDeliveryReportWanted);
|
|
|
76 |
|
|
|
77 |
//TXIMPRequestId RejectMessageL( const MXIMPIdentity& aImMessageId);
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
private: //Helpers
|
|
|
81 |
|
|
|
82 |
HBufC8* PackConvInfoLC(const MImConversationInfo& aImMessage );
|
|
|
83 |
private: // data
|
|
|
84 |
|
|
|
85 |
/**
|
|
|
86 |
* Context session proxy for accessing context server.
|
|
|
87 |
* Ref.
|
|
|
88 |
*/
|
|
|
89 |
MXIMPContextInternal& iContext;
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
};
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
#endif // CIMCONVERSATIONIMP_H
|