filemanager/bkupengine/inc/MMMCScBkupArchiveDataInterface.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     1 /*
       
     2 * Copyright (c) 2002 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: Declaration for MMMCScBkupArchiveDataInterface
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __MMMCSCBKUPARCHIVEDATAINTERFACE_H__
       
    20 #define __MMMCSCBKUPARCHIVEDATAINTERFACE_H__
       
    21 
       
    22 // System includes
       
    23 #include <e32std.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 // User includes
       
    27 #include "TMMCScBkupArchiveVector.h"
       
    28 #include "MMCScBkupOperations.h"
       
    29 
       
    30 // Constants
       
    31 const TInt KMMCScBkupArchiveWriteStreamCurrentPos = -1;
       
    32 const TInt KMMCScBkupArchiveReadStreamCurrentPos = -1;
       
    33 
       
    34 /**
       
    35 *
       
    36 *
       
    37 * @since 3.0
       
    38 */
       
    39 class MMMCScBkupArchiveDataInterface
       
    40     {
       
    41     public: // From MMMCScBkupArchiveDataInterface
       
    42 
       
    43         /**
       
    44         *
       
    45         */
       
    46         virtual RFs& ADIFsSession() const = 0;
       
    47 
       
    48         /**
       
    49         *
       
    50         */
       
    51         virtual RFile64& ADIRawArchiveFile() const = 0;
       
    52 
       
    53         /**
       
    54         *
       
    55         */
       
    56         virtual const TMMCScBkupArchiveVector& ADICurrentArchiveVectorInfo() const = 0;
       
    57 
       
    58         /**
       
    59         *
       
    60         */
       
    61         virtual const TMMCScBkupArchiveVector& ADIOverallArchiveVectorInfo() const = 0;
       
    62 
       
    63         /**
       
    64         *
       
    65         */
       
    66         virtual RWriteStream& ADIWriteStreamUncompressedLC( TInt aPos = KMMCScBkupArchiveWriteStreamCurrentPos ) = 0;
       
    67 
       
    68         /**
       
    69         *
       
    70         */
       
    71         virtual RReadStream& ADIReadStreamUncompressedLC( TInt aPos = KMMCScBkupArchiveReadStreamCurrentPos ) = 0;
       
    72 
       
    73         /**
       
    74         *
       
    75         */
       
    76         virtual const TMMCScBkupArchiveVector& ADIWriteL( const TDesC8& aData ) = 0;
       
    77 
       
    78         /**
       
    79         *
       
    80         */
       
    81         virtual const TMMCScBkupArchiveVector& ADIReadL( TDes8& aSink, const TMMCScBkupArchiveVector& aInfo ) = 0;
       
    82 
       
    83         /**
       
    84         *
       
    85         */
       
    86         virtual void ADIWriteFileL( const TDesC& aSourceFileName, TRequestStatus& aStatus ) = 0;
       
    87 
       
    88         /**
       
    89         *
       
    90         */
       
    91         virtual void ADIReadFileL( const TDesC& aDestinationFileName, const TMMCScBkupArchiveVector& aInfo, TRequestStatus& aStatus ) = 0;
       
    92 
       
    93         /**
       
    94         *
       
    95         */
       
    96         virtual void ADIWriteCompressedL( const TDesC8& aData, TRequestStatus& aStatus ) = 0;
       
    97 
       
    98         /**
       
    99         *
       
   100         */
       
   101         virtual void ADIReadDecompressedL( TDes8& aSink, const TMMCScBkupArchiveVector& aInfo, TRequestStatus& aStatus ) = 0;
       
   102         
       
   103         /**
       
   104         *
       
   105         */
       
   106         virtual void ADIAsynchronousCancel() = 0;
       
   107 
       
   108         /**
       
   109         *
       
   110         */
       
   111         virtual void ADIResetResources(TMMCScBkupOperationType aType) = 0;
       
   112 
       
   113 #ifdef RD_FILE_MANAGER_BACKUP
       
   114         /**
       
   115         *
       
   116         */
       
   117         virtual void ADIActivateCrcCalculation(TBool aType) = 0;
       
   118 
       
   119         /**
       
   120         *
       
   121         */
       
   122         virtual TUint32 ADIArchiveCrc() = 0;
       
   123 #endif
       
   124     };
       
   125 
       
   126 
       
   127 
       
   128 
       
   129 #endif // __MMMCSCBKUPARCHIVEDATAINTERFACE_H__
       
   130 
       
   131 //End of File