|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // mw/remoteconn/mtpfws/mtpfw/dataproviders/dputility/inc/cmtpsvcdeleteobject.h |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __CMTPSVCDELETEOBJECT_H__ |
|
22 #define __CMTPSVCDELETEOBJECT_H__ |
|
23 |
|
24 #include "cmtprequestprocessor.h" |
|
25 |
|
26 class MMTPServiceDataProvider; |
|
27 class MMTPSvcObjectHandler; |
|
28 |
|
29 /** |
|
30 Defines service data provider GetObject request processor. |
|
31 @internalComponent |
|
32 */ |
|
33 class CMTPSvcDeleteObject : public CMTPRequestProcessor |
|
34 { |
|
35 public: |
|
36 IMPORT_C static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, MMTPServiceDataProvider& aDataProvider); |
|
37 IMPORT_C ~CMTPSvcDeleteObject(); |
|
38 |
|
39 private: |
|
40 CMTPSvcDeleteObject(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, MMTPServiceDataProvider& aDataProvider); |
|
41 |
|
42 void LoadAllObjHandlesL(TUint32 aParentHandle); |
|
43 void ProcessFinalPhaseL(); |
|
44 void CompleteSelf(TInt aError); |
|
45 |
|
46 // For CMTPRequestProcessor |
|
47 TMTPResponseCode CheckRequestL(); |
|
48 void ServiceL(); |
|
49 // For CActive |
|
50 void RunL(); |
|
51 TInt RunError(TInt aError); |
|
52 // Check object format and set object handler pointer |
|
53 TMTPResponseCode CheckFmtAndSetHandler(TUint32 aFormatCode); |
|
54 TMTPResponseCode DeleteObjectL(const CMTPObjectMetaData& aObjectMetaData); |
|
55 |
|
56 private: |
|
57 MMTPServiceDataProvider& iDataProvider; |
|
58 MMTPSvcObjectHandler* iObjectHandler; // Not own |
|
59 TInt iDeleteIndex; |
|
60 TInt iDeleteError; |
|
61 RArray<TUint> iObjectHandles; |
|
62 TBool iSuccessDeletion; |
|
63 TInt32 iFormatCode; |
|
64 CMTPObjectMetaData* iReceivedObjectMetaData; |
|
65 /** |
|
66 FLOGGER debug trace member variable. |
|
67 */ |
|
68 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
69 }; |
|
70 |
|
71 #endif // __CMTPSVCDELETEOBJECT_H__ |