filemanager/bkupengine/inc/CMMCScBkupIndexDataOwners.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     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 for CMMCScBkupIndexDataOwners
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CMMCSCBKUPINDEXDATAOWNERS_H__
       
    20 #define __CMMCSCBKUPINDEXDATAOWNERS_H__
       
    21 
       
    22 // System includes
       
    23 #include <f32file.h>
       
    24 
       
    25 // User includes
       
    26 #include "CMMCScBkupIndexBase.h"
       
    27 
       
    28 /**
       
    29 *
       
    30 *
       
    31 * @since 3.0
       
    32 */
       
    33 NONSHARABLE_CLASS(CMMCScBkupIndexDataOwners) : public CMMCScBkupIndexBase
       
    34     {
       
    35     public:
       
    36 
       
    37         /**
       
    38         * Static constructor
       
    39         */
       
    40         static CMMCScBkupIndexDataOwners* NewLC();
       
    41 
       
    42         /**
       
    43         * C++ destructor
       
    44         */
       
    45         ~CMMCScBkupIndexDataOwners();
       
    46 
       
    47     private:
       
    48 
       
    49         /**
       
    50         * C++ default constructor
       
    51         */
       
    52         CMMCScBkupIndexDataOwners();
       
    53 
       
    54     public: // API
       
    55 
       
    56         /**
       
    57         *
       
    58         */
       
    59         void AddIndexRecordL( const TMMCScBkupArchiveVector& aInfo );
       
    60 
       
    61         /**
       
    62         *
       
    63         */
       
    64         inline TInt Count() const
       
    65             { return iEntries.Count(); }
       
    66 
       
    67         /**
       
    68         *
       
    69         */
       
    70         inline const TMMCScBkupArchiveVector& At( TInt aIndex ) const
       
    71             { return iEntries[ aIndex ]; }
       
    72 
       
    73     public: // From CMMCScBkupIndexBase
       
    74 
       
    75         /**
       
    76         *
       
    77         */
       
    78         void StoreL(MMMCScBkupDriver& aDriver);
       
    79 
       
    80         /**
       
    81         *
       
    82         */
       
    83         void RestoreL(MMMCScBkupDriver& aDriver);
       
    84 
       
    85     private: // Internal enumerations
       
    86         enum
       
    87             {
       
    88             EStreamFormatVersion1 = 1
       
    89             };
       
    90 
       
    91     private: // Member data
       
    92 
       
    93         //
       
    94         RArray<TMMCScBkupArchiveVector> iEntries;
       
    95 
       
    96     };
       
    97 
       
    98 
       
    99 
       
   100 
       
   101 #endif // __CMMCSCBKUPINDEXDATAOWNERS_H__
       
   102 
       
   103 //End of File