1 /* |
|
2 * Copyright (c) 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: s_vimpstengineavatarextention.h |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CVIMPSTENGINEAVATAREXTENTION_H |
|
19 #define __CVIMPSTENGINEAVATAREXTENTION_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "mvimpstengineavatarextention.h" |
|
25 #include "TVIMPSTEnums.h" |
|
26 #include "mvimpstenginesessioncntxtobserver.h" |
|
27 #include "cvimpstengineimagehandler.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CVIMPSTEngineRequestMapper; |
|
32 class MPresenceFeatures; |
|
33 class MXIMPContext; |
|
34 class MXIMPIdentity; |
|
35 |
|
36 |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * This Class implements the Contact Management Extention Feature |
|
41 * @lib vimpstengine.lib |
|
42 * @since S60 5.0 |
|
43 */ |
|
44 NONSHARABLE_CLASS( CVIMPSTEngineAvatarExtention ) : public CBase, |
|
45 public MVIMPSTEngineAvatarExtention, |
|
46 public MVIMPSTEngineSessionCntxtObserver |
|
47 |
|
48 { |
|
49 |
|
50 |
|
51 public: // Two-phased constructors and destructor |
|
52 |
|
53 /** |
|
54 * Two-phased constructor. |
|
55 * @param aFeatures - Presentity Group |
|
56 * @param aRequestMapper: Request Mapper for XIMP Events |
|
57 */ |
|
58 |
|
59 static CVIMPSTEngineAvatarExtention* NewL( |
|
60 TInt aServiceId, |
|
61 MPresenceFeatures& aFeatures, |
|
62 CVIMPSTEngineRequestMapper& aRequestMapper); |
|
63 /** |
|
64 * Two-phased constructor. |
|
65 * @param aFeatures - Presentity Group |
|
66 * @param aRequestMapper: Request Mapper for XIMP Events |
|
67 */ |
|
68 static CVIMPSTEngineAvatarExtention* NewLC( |
|
69 TInt aServiceId, |
|
70 MPresenceFeatures& aFeatures, |
|
71 CVIMPSTEngineRequestMapper& aRequestMapper); |
|
72 |
|
73 /** |
|
74 * C++ Destructor. |
|
75 */ |
|
76 virtual ~CVIMPSTEngineAvatarExtention(); |
|
77 |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * default constructor |
|
83 * @param aFeatures - Presentity Group |
|
84 * @param aRequestMapper: event observer to get the notifications of the events. |
|
85 */ |
|
86 CVIMPSTEngineAvatarExtention( |
|
87 TInt aServiceId, |
|
88 MPresenceFeatures& aFeatures, |
|
89 CVIMPSTEngineRequestMapper& aRequestMapper); |
|
90 |
|
91 |
|
92 |
|
93 public: // See MVIMPSTEngineAvatarExtention |
|
94 |
|
95 /** |
|
96 * See MVIMPSTEngineAvatarExtention |
|
97 */ |
|
98 TInt UpdateAvtarToServerL(const TDesC& aFilename , |
|
99 const TDesC8& aMimetype); |
|
100 |
|
101 |
|
102 private: |
|
103 /** |
|
104 * See MVIMPSTEngineSessionCntxtObserver |
|
105 */ |
|
106 void HandleSessionContextEventL( const MXIMPContext& aContext, |
|
107 const MXIMPBase& aEvent, |
|
108 TXimpOperation aXimpOperation = EVIMPSTXimpOperationNoOperation); |
|
109 |
|
110 public: // From MVIMPSTEngineExtentionFeatures |
|
111 |
|
112 /** |
|
113 * See MVIMPSTEngineExtentionFeatures |
|
114 */ |
|
115 TVIMPSTEnums::FeatureSupport IsSupported() const; |
|
116 |
|
117 |
|
118 /** |
|
119 * See MVIMPSTEngineExtentionFeatures |
|
120 */ |
|
121 TVIMPSTEnums::ExtentionType Type() const; |
|
122 |
|
123 /** |
|
124 * See MVIMPSTEngineExtentionFeatures |
|
125 */ |
|
126 void SetSupported(TVIMPSTEnums::FeatureSupport aSupported) ; |
|
127 |
|
128 |
|
129 private: |
|
130 // serivice id |
|
131 TInt iServiceId; |
|
132 |
|
133 // not own |
|
134 MPresenceFeatures& iFeatures; |
|
135 |
|
136 //doesnt own |
|
137 CVIMPSTEngineRequestMapper& iRequestMapper; |
|
138 |
|
139 //Whether the extention Feature Supported or not |
|
140 TVIMPSTEnums::FeatureSupport iSupported; |
|
141 |
|
142 //Result code from waited request |
|
143 TInt iReqResult; |
|
144 |
|
145 }; |
|
146 |
|
147 #endif //__CVIMPSTENGINEAVATAREXTENTION_H |
|
148 |
|
149 // End of File |
|