mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/inc/cdeleteobject.h
changeset 25 d881023c13eb
parent 0 a2952bb97e68
child 35 2ee890d2f7e7
equal deleted inserted replaced
21:a05c44bc3c61 25:d881023c13eb
    17 
    17 
    18 
    18 
    19 #ifndef CDELETEOBJECT_H
    19 #ifndef CDELETEOBJECT_H
    20 #define CDELETEOBJECT_H
    20 #define CDELETEOBJECT_H
    21 
    21 
    22 #include <f32file.h>
       
    23 #include <d32dbms.h>
    22 #include <d32dbms.h>
    24 #include <badesca.h>
       
    25 
    23 
    26 #include "crequestprocessor.h"
    24 #include "crequestprocessor.h"
    27 
    25 
    28 //forward declaration
    26 //forward declaration
    29 class RFs;
       
    30 class CMTPTypeArray;
       
    31 class MMTPObjectMgr;
       
    32 class MMmMtpDpConfig;
    27 class MMmMtpDpConfig;
    33 
    28 
    34 /**
    29 /**
    35 * Defines DeleteObject request processor
    30 * Defines DeleteObject request processor
    36 */
    31 */
   108     * Deletes an object from the file system and the object store
   103     * Deletes an object from the file system and the object store
   109     */
   104     */
   110     void DeleteObjectL( const CMTPObjectMetaData& aObjectInfo );
   105     void DeleteObjectL( const CMTPObjectMetaData& aObjectInfo );
   111 
   106 
   112 private:
   107 private:
   113     // MTP Object Manager
       
   114     MMTPObjectMgr& iObjectMgr;
       
   115 
       
   116     // File server used to open the database
       
   117     RFs& iFs;
       
   118 
       
   119     //  Array of all the objects to delete
   108     //  Array of all the objects to delete
   120     RArray<TUint> iObjectsToDelete;
   109     RArray<TUint> iObjectsToDelete;
   121 
   110 
   122     // Keeps track of any errors that occur
   111     // Keeps track of any errors that occur
   123     TInt iDeleteError;
   112     TInt iDeleteError;
   125     // Keeps track of whether any files where deleted
   114     // Keeps track of whether any files where deleted
   126     TBool iIsMultiDelete;
   115     TBool iIsMultiDelete;
   127 
   116 
   128     // Accessor of DB
   117     // Accessor of DB
   129     MMmMtpDpConfig& iDpConfig;
   118     MMmMtpDpConfig& iDpConfig;
       
   119 
   130     };
   120     };
   131 
   121 
   132 #endif // CDELETEOBJECT_H
   122 #endif // CDELETEOBJECT_H