mtpfws/mtpfw/dataproviders/dputility/inc/cmtpdeleteobject.h
changeset 0 d0791faffa3f
child 3 8b094906a049
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef CMTPDELETEOBJECT_H
       
    22 #define CMTPDELETEOBJECT_H
       
    23 
       
    24 #include <badesca.h>
       
    25 #include <f32file.h>
       
    26 
       
    27 #include "cmtprequestprocessor.h"
       
    28 #include "mtpdebug.h"
       
    29 
       
    30 class MMTPObjectMgr;
       
    31 
       
    32 /** 
       
    33 Defines data provider GetObject request processor.
       
    34 @internalComponent
       
    35 */
       
    36 class CMTPDeleteObject : public CMTPRequestProcessor, public MFileManObserver
       
    37     {
       
    38 public:
       
    39 
       
    40     IMPORT_C static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);    
       
    41     IMPORT_C ~CMTPDeleteObject();    
       
    42 
       
    43 private: // From CMTPRequestProcessor
       
    44 
       
    45     TMTPResponseCode CheckRequestL();
       
    46     void ServiceL();
       
    47  
       
    48 private:    
       
    49 
       
    50     CMTPDeleteObject(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection);
       
    51 	void ProcessFinalPhaseL();
       
    52 	TBool IsFolderObject(const CMTPObjectMetaData& aObject);
       
    53 	TBool IsStoreReadOnlyL(TUint32 aObjectHandle);
       
    54 	void DeleteFolderOrFileL(CMTPObjectMetaData* aMeta);
       
    55     void DeleteFolderL(CMTPObjectMetaData* aMeta);
       
    56     void DeleteFileL(CMTPObjectMetaData* aMeta);    
       
    57 	
       
    58 private:    
       
    59 
       
    60     /**
       
    61     FLOGGER debug trace member variable.
       
    62     */
       
    63     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    64 	
       
    65 	/**
       
    66     True if any deletion succeeded
       
    67 	*/
       
    68     TBool					iSuccessDeletion;
       
    69     TBool 					iObjectWritePotected;
       
    70 	};
       
    71 	
       
    72 #endif
       
    73