filemanager/bkupengine/inc/CMMCScBkupArchiveHeader.h
branchRCL_3
changeset 20 491b3ed49290
parent 19 95243422089a
child 21 65326cf895ed
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
     1 /*
       
     2 * Copyright (c) 2005 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 of CMMCScBkupArchiveHeader
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CMMCSCBKUPARCHIVEHEADER_H__
       
    20 #define __CMMCSCBKUPARCHIVEHEADER_H__
       
    21 
       
    22 // System includes
       
    23 #include <f32file.h>
       
    24 #include <babitflags.h>
       
    25 
       
    26 // User includes
       
    27 #include "MMCScBkupArchiveFlags.h"
       
    28 
       
    29 // Classes referenced
       
    30 class MMMCScBkupDriver;
       
    31 class MMMCScBkupArchiveDataInterface;
       
    32 
       
    33 /**
       
    34 *
       
    35 *
       
    36 * @since 3.0
       
    37 */
       
    38 NONSHARABLE_CLASS(CMMCScBkupArchiveHeader) : public CBase
       
    39     {
       
    40     public:
       
    41 
       
    42         /**
       
    43         * Static constructor
       
    44         */
       
    45         static CMMCScBkupArchiveHeader* NewL( MMMCScBkupArchiveDataInterface& aDataInterface, MMMCScBkupDriver& aDriver );
       
    46 
       
    47         /**
       
    48         * C++ destructor
       
    49         */
       
    50         ~CMMCScBkupArchiveHeader();
       
    51 
       
    52     private:
       
    53 
       
    54         /**
       
    55         * C++ default constructor
       
    56         */
       
    57         CMMCScBkupArchiveHeader( MMMCScBkupArchiveDataInterface& aDataInterface, MMMCScBkupDriver& aDriver );
       
    58 
       
    59         /**
       
    60         *
       
    61         */
       
    62         void ConstructL();
       
    63 
       
    64     public: // API
       
    65 
       
    66         /**
       
    67         *
       
    68         */
       
    69         void StoreL(TBitFlags aCategory);
       
    70 
       
    71         /**
       
    72         *
       
    73         */
       
    74         void RestoreL();
       
    75 
       
    76     public: // For Archive Utils 
       
    77 
       
    78         /**
       
    79         *
       
    80         */
       
    81         inline void SetCheckedUid( const TCheckedUid& aCheckedUid ) { iCheckedUid = aCheckedUid; }
       
    82 
       
    83         /**
       
    84         *
       
    85         */
       
    86         inline const TCheckedUid& CheckedUid() const { return iCheckedUid; }
       
    87 
       
    88         /**
       
    89         *
       
    90         */
       
    91         inline void SetVersion( const TVersion& aVersion ) { iVersion = aVersion; }
       
    92 
       
    93         /**
       
    94         *
       
    95         */
       
    96         inline const TVersion& Version() const { return iVersion; }
       
    97 
       
    98         /**
       
    99         *
       
   100         */
       
   101         inline void SetFooterLength( TInt aLength ) { iFooterLength = aLength; }
       
   102 
       
   103         /**
       
   104         *
       
   105         */
       
   106         inline TInt FooterLength() const { return iFooterLength; }
       
   107 
       
   108         /**
       
   109         *
       
   110         */
       
   111         void SetPhoneModelIdentifierL( const TDesC8& aModel );
       
   112 
       
   113         /**
       
   114         *
       
   115         */
       
   116         inline const TDesC8& PhoneModelIdentifier() const { return *iPhoneModelIdentifier; }
       
   117 
       
   118         /**
       
   119         *
       
   120         */
       
   121         inline void SetArchiveFlags( TUint32 aFlagsValue ) { iArchiveFlags.SetValue( aFlagsValue ); }
       
   122 
       
   123         /**
       
   124         *
       
   125         */
       
   126         inline const TBitFlags32& ArchiveFlags() const { return iArchiveFlags; }
       
   127 
       
   128     private: // Member data
       
   129 
       
   130         //
       
   131         MMMCScBkupArchiveDataInterface& iDataInterface;
       
   132         //
       
   133         MMMCScBkupDriver& iDriver;
       
   134         //
       
   135         TCheckedUid iCheckedUid;
       
   136         //
       
   137         TVersion iVersion;
       
   138         //
       
   139         TInt iFooterLength;
       
   140         //
       
   141         HBufC8* iPhoneModelIdentifier;
       
   142         //
       
   143         TBitFlags32 iArchiveFlags;
       
   144 
       
   145     };
       
   146 
       
   147 
       
   148 
       
   149 
       
   150 #endif // __CMMCSCBKUPARCHIVEHEADER_H__
       
   151 
       
   152 //End of File