filemanager/bkupengine/inc/CMMCScBkupEngine.h
branchRCL_3
changeset 38 491b3ed49290
parent 36 95243422089a
child 39 65326cf895ed
equal deleted inserted replaced
36:95243422089a 38:491b3ed49290
     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 void ListArchivesL(
       
    96             RPointerArray< CMMCScBkupArchiveInfo >& aArchives,
       
    97             CMMCScBkupOpParamsBase* aParams,
       
    98             const TUint32 aDriveAttMatch,
       
    99             const TInt aDriveMatch = KErrNotFound ) const;
       
   100 
       
   101     private: // Member data
       
   102 
       
   103         // Real engine
       
   104         CMMCScBkupEngineImpl* iEngine;
       
   105     };
       
   106 
       
   107 
       
   108 
       
   109 
       
   110 #endif // __CMMCSCBKUPENGINE_H__
       
   111 
       
   112 //End of File