|
1 /* |
|
2 * Copyright (c) 2002-2009 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: Declaration of Rights Object Server side MTM |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef RIGHTSOBJECTSERVERMTM_H |
|
20 #define RIGHTSOBJECTSERVERMTM_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <mtclbase.h> |
|
25 #include <mtsr.h> |
|
26 #include <MSVSTORE.H> |
|
27 #include <MSVUIDS.H> |
|
28 #include <MSVIDS.H> |
|
29 |
|
30 |
|
31 |
|
32 // CONSTANTS |
|
33 |
|
34 // MACROS |
|
35 // DATA TYPES |
|
36 |
|
37 // FUNCTION PROTOTYPES |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 // CLASS DECLARATION |
|
42 /** |
|
43 * CRightsObjectServerMtm |
|
44 * |
|
45 * @lib RoMtmSer.lib |
|
46 * @since 2.5 |
|
47 */ |
|
48 |
|
49 |
|
50 // |
|
51 // CRightsObjectServerMtm: The Server-side MTM implementation |
|
52 // |
|
53 class CRightsObjectServerMtm : public CBaseServerMtm |
|
54 { |
|
55 public: |
|
56 |
|
57 |
|
58 |
|
59 // Constructor, initialisation, and destructor |
|
60 |
|
61 /** |
|
62 * Two-phased constructor. |
|
63 */ |
|
64 IMPORT_C static CRightsObjectServerMtm* NewL( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry ); |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 ~CRightsObjectServerMtm(); |
|
70 |
|
71 /************************************* |
|
72 * |
|
73 * from CBaseMtm |
|
74 * |
|
75 **************************************/ |
|
76 // Copy and move |
|
77 |
|
78 /** |
|
79 * CopyToLocalL |
|
80 * @since 2.5 |
|
81 * |
|
82 * Not Supported |
|
83 * |
|
84 */ |
|
85 void CopyToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); |
|
86 |
|
87 /** |
|
88 * CopyFromLocalL |
|
89 * @since 2.5 |
|
90 * |
|
91 * Not Supported |
|
92 * |
|
93 */ |
|
94 void CopyFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); |
|
95 |
|
96 /** |
|
97 * CopyToLocalL |
|
98 * @since 2.5 |
|
99 * |
|
100 * Not Supported |
|
101 * |
|
102 */ |
|
103 void CopyWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); |
|
104 |
|
105 /** |
|
106 * MoveToLocalL |
|
107 * @since 2.5 |
|
108 * |
|
109 * Not Supported |
|
110 * |
|
111 */ |
|
112 void MoveToLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); |
|
113 |
|
114 /** |
|
115 * MoveFromLocalL |
|
116 * @since 2.5 |
|
117 * |
|
118 * Not Supported |
|
119 * |
|
120 */ |
|
121 void MoveFromLocalL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); |
|
122 |
|
123 /** |
|
124 * MoveWithinServiceL |
|
125 * @since 2.5 |
|
126 * |
|
127 * Not Supported |
|
128 * |
|
129 */ |
|
130 void MoveWithinServiceL( const CMsvEntrySelection& aSelection , TMsvId aDestination , TRequestStatus& aStatus ); |
|
131 |
|
132 // Create, change, delete |
|
133 |
|
134 /** |
|
135 * DeleteAllL |
|
136 * @since 2.5 |
|
137 * |
|
138 * Not Supported |
|
139 * |
|
140 */ |
|
141 void DeleteAllL( const CMsvEntrySelection& aSelection , TRequestStatus& aStatus ); |
|
142 |
|
143 /** |
|
144 * CreateL |
|
145 * @since 2.5 |
|
146 * |
|
147 * Not Supported |
|
148 * |
|
149 */ |
|
150 void CreateL( TMsvEntry aNewEntry , TRequestStatus& aStatus ); |
|
151 |
|
152 /** |
|
153 * ChangeL |
|
154 * @since 2.5 |
|
155 * |
|
156 * Not Supported |
|
157 * |
|
158 */ |
|
159 void ChangeL( TMsvEntry aNewEntry , TRequestStatus& aStatus ); |
|
160 |
|
161 // Command and progress |
|
162 |
|
163 /** |
|
164 * StartCommandL |
|
165 * @since 2.5 |
|
166 * |
|
167 * Not Supported |
|
168 * |
|
169 */ |
|
170 void StartCommandL( CMsvEntrySelection& aSelection , TInt aCommand , |
|
171 const TDesC8& aParameter , TRequestStatus& aStatus ); |
|
172 |
|
173 /** |
|
174 * CommandExpected |
|
175 * @since 2.5 |
|
176 * |
|
177 * Not Supported |
|
178 * |
|
179 */ |
|
180 TBool CommandExpected(); |
|
181 |
|
182 |
|
183 /** |
|
184 * Progress |
|
185 * @since 2.5 |
|
186 * |
|
187 * Not Supported |
|
188 * |
|
189 */ |
|
190 const TDesC8& Progress(); |
|
191 |
|
192 // void RunL() |
|
193 // void SetInitialEntry(CMsvServerEntry* aEntry)=0; |
|
194 protected: |
|
195 |
|
196 /************************************* |
|
197 * |
|
198 * from CActive |
|
199 * |
|
200 **************************************/ |
|
201 void DoCancel(); |
|
202 /************************************* |
|
203 * |
|
204 * from CBaseMtm |
|
205 * |
|
206 **************************************/ |
|
207 void DoRunL(); |
|
208 void DoComplete(TInt aError); |
|
209 |
|
210 private: |
|
211 CRightsObjectServerMtm( CRegisteredMtmDll& aRegisteredMtmDll , CMsvServerEntry* aInitialEntry ); |
|
212 void ConstructL(); |
|
213 |
|
214 private: |
|
215 }; |
|
216 |
|
217 #endif // RIGHTSOBJECTSERVERMTM_H |
|
218 |
|
219 // End of File |