|
1 /* |
|
2 * Copyright (c) 2006 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: Im connection host |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPROTOCOLIMDATAHOSTIMP_H |
|
19 #define CPROTOCOLIMDATAHOSTIMP_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <ximpprotocolconnectionhost.h> |
|
23 #include <ximpcontext.h> |
|
24 #include <ximpbase.h> |
|
25 #include <protocolimdatahost.h> |
|
26 #include "imapiobjbase.h" |
|
27 #include "ximpapiobjbase.h" |
|
28 //#include "ximpitemparent.h" |
|
29 #include "ximphost.h" |
|
30 //#include "ximpoperationdefs.h" |
|
31 //#include "ximprequestidbuilder.h" |
|
32 |
|
33 |
|
34 class MXIMPHost; |
|
35 class MImObjectFactory; |
|
36 class CImObjectFactoryImp; |
|
37 |
|
38 class CXIMPPscContext; |
|
39 class MImDataCache; |
|
40 class CImDataCache; |
|
41 class CXIMPContextStateEventImp; |
|
42 class CPeriodic; |
|
43 class MXIMPProtocolConnection; |
|
44 class CProtocolImConversationDataHostImp; |
|
45 class MProtocolImConversationDataHost; |
|
46 class CProtocolImGroupDataHostImp; |
|
47 class CProtocolImInvitationDataHostImp; |
|
48 class CProtocolImSearchDataHostImp; |
|
49 |
|
50 |
|
51 /** |
|
52 * Im connection host. |
|
53 * |
|
54 * @lib ximpprocessor.lib |
|
55 * @since S60 v3.2 |
|
56 */ |
|
57 //class CProtocolImDataHostImp : public CXIMPApiObjBase, |
|
58 // public MProtocolImDataHost |
|
59 NONSHARABLE_CLASS(CProtocolImDataHostImp): public MProtocolImDataHost |
|
60 { |
|
61 public: |
|
62 /** The class ID. */ |
|
63 enum { KClassId = IMIMP_CLSID_CPROTOCOLIMDATAHOSTIMP }; |
|
64 |
|
65 public: |
|
66 |
|
67 static CProtocolImDataHostImp* NewL( MXIMPHost& aHost ); |
|
68 |
|
69 static CProtocolImDataHostImp* NewLC( MXIMPHost& aHost ); |
|
70 |
|
71 virtual ~CProtocolImDataHostImp(); |
|
72 |
|
73 private: |
|
74 |
|
75 CProtocolImDataHostImp( MXIMPHost& aHost ); |
|
76 void ConstructL(); |
|
77 |
|
78 public: // From MXIMPBase |
|
79 |
|
80 /** |
|
81 * Implementation of MXIMPBase interface methods |
|
82 * @see MXIMPBase |
|
83 */ |
|
84 //XIMPIMP_DECLARE_IF_BASE_METHODS |
|
85 |
|
86 |
|
87 public: // MProtocolImDataHost |
|
88 |
|
89 MImObjectFactory& ImObjectFactory(); |
|
90 |
|
91 MProtocolImConversationDataHost& ConversationDataHost(); |
|
92 |
|
93 //MProtocolImGroupDataHost& GroupDataHost(); |
|
94 |
|
95 //MProtocolImInvitationDataHost& InvitationDataHost(); |
|
96 |
|
97 //MProtocolImSearchDataHost& SearchDataHost(); |
|
98 |
|
99 CProtocolImConversationDataHostImp& ConversationDataAccess() ; |
|
100 |
|
101 |
|
102 CImDataCache& ImDataCache(); |
|
103 |
|
104 |
|
105 private: // data |
|
106 |
|
107 //not owned |
|
108 MXIMPHost& iHost; |
|
109 |
|
110 /** |
|
111 * Data cache |
|
112 */ |
|
113 CImDataCache* iImDataCache; |
|
114 |
|
115 /** |
|
116 * Data hosts |
|
117 */ |
|
118 CImObjectFactoryImp* iImObjFactory; |
|
119 CProtocolImConversationDataHostImp* iConvDataHost; |
|
120 CProtocolImGroupDataHostImp* iGroupDataHost; |
|
121 CProtocolImInvitationDataHostImp* iInvitationDataHost; |
|
122 CProtocolImSearchDataHostImp* iSearchDataHost; |
|
123 |
|
124 |
|
125 }; |
|
126 |
|
127 |
|
128 #endif // CPROTOCOLIMDATAHOSTIMP_H |
|
129 |