filemanager/src/fmbkupengine/inc/CMMCScBkupEngine.h
branchRCL_3
changeset 21 65326cf895ed
parent 20 491b3ed49290
child 22 f5c50b8af68c
equal deleted inserted replaced
20:491b3ed49290 21:65326cf895ed
     1 /*
       
     2 * Copyright (c) 2002-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: 
       
    15 *     Scans for names of the files according to array.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CMMCSCBKUPENGINE_H__
       
    20 #define __CMMCSCBKUPENGINE_H__
       
    21 
       
    22 // User includes
       
    23 #include "MMCScBkupOperations.h"
       
    24 
       
    25 // Classes referenced
       
    26 class RFs;
       
    27 class CMMCScBkupEngineImpl;
       
    28 class CMMCScBkupOpParamsBase;
       
    29 class MMMCScBkupEngineObserver;
       
    30 class CMMCScBkupArchiveInfo;
       
    31 
       
    32 /**
       
    33 *
       
    34 *
       
    35 * @since 3.0
       
    36 */
       
    37 NONSHARABLE_CLASS(CMMCScBkupEngine) : public CBase
       
    38     {
       
    39     public:
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         IMPORT_C static CMMCScBkupEngine* NewL( RFs& aFsSession );
       
    45 
       
    46         /**
       
    47         * Destructor
       
    48         */
       
    49         IMPORT_C ~CMMCScBkupEngine();
       
    50 
       
    51     private:
       
    52 
       
    53         /**
       
    54         * C++ default constructor
       
    55         */
       
    56         CMMCScBkupEngine();
       
    57 
       
    58         /**
       
    59         * Second phase constructor
       
    60         */
       
    61         void ConstructL( RFs& aFsSession );
       
    62 
       
    63 
       
    64     public: // API
       
    65 
       
    66         /**
       
    67         * NB. aParams are IMMEDIATELY owned by the engine. Do not pass them in
       
    68         * left on the cleanup stack.
       
    69         */
       
    70         IMPORT_C void StartOperationL(TMMCScBkupOperationType aOperation, MMMCScBkupEngineObserver& aObserver, CMMCScBkupOpParamsBase* aParams );
       
    71 
       
    72         /**
       
    73         *
       
    74         */
       
    75         IMPORT_C void CancelOperation();
       
    76         
       
    77         /**
       
    78         *
       
    79         */
       
    80         IMPORT_C TBool ValidArchiveForRestore( const TDesC& aFileName );
       
    81 
       
    82         /**
       
    83         *
       
    84         */
       
    85         IMPORT_C TInt64 TotalOperationSizeL() const;
       
    86 
       
    87         /**
       
    88         *
       
    89         */
       
    90         IMPORT_C TBool RebootRequired() const;
       
    91 
       
    92         /**
       
    93         *
       
    94         */
       
    95         IMPORT_C TBool DeleteArchivesL( RPointerArray< CMMCScBkupArchiveInfo >& aArchives ) const;
       
    96         
       
    97         /**
       
    98         *
       
    99         */
       
   100         IMPORT_C void ListArchivesL(
       
   101             RPointerArray< CMMCScBkupArchiveInfo >& aArchives,
       
   102             CMMCScBkupOpParamsBase* aParams,
       
   103             const TUint32 aDriveAttMatch,
       
   104             const TInt aDriveMatch = KErrNotFound ) const;
       
   105 
       
   106     private: // Member data
       
   107 
       
   108         // Real engine
       
   109         CMMCScBkupEngineImpl* iEngine;
       
   110     };
       
   111 
       
   112 
       
   113 
       
   114 
       
   115 #endif // __CMMCSCBKUPENGINE_H__
       
   116 
       
   117 //End of File