filemanager/bkupengine/src/CMMCScBkupIndexActiveData.cpp
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: CMMCScBkupIndexActiveData implementation
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 #include "CMMCScBkupIndexActiveData.h"
       
    20 
       
    21 // User includes
       
    22 #include "MMMCScBkupArchiveDataInterface.h"
       
    23 
       
    24 
       
    25     /**
       
    26      * Active Data
       
    27      * ===========
       
    28      * 
       
    29      * This is the format of the data written by the
       
    30      * CMMCScBkupStateArchiveOpActiveData object
       
    31      * 
       
    32      * E.g.:
       
    33      * 
       
    34      *  ACTIVE DATA for DO 0
       
    35      *  {
       
    36      *      AD for DO 0, 1st drive
       
    37      *      AD for DO 0, 2nd drive
       
    38      *      AD for DO 0, 'n'th drive
       
    39      *  },
       
    40      *  ACTIVE DATA for DO 1
       
    41      *  {
       
    42      *      AD for DO 0, 1st drive - (AD is only on
       
    43      *      AD for DO 0, 2nd drive    two drives)
       
    44      *  },
       
    45      *  ACTIVE DATA for DO n
       
    46      *  {
       
    47      *      AD for DO 0, 1st drive - (AD is only on one drive)
       
    48      *  }
       
    49      * 
       
    50      * Active Data Index
       
    51      * =================
       
    52      * 
       
    53      * This is the format of the data written by this object.
       
    54      * The format allows the possibility of a future partial
       
    55      * restore (hopefully).
       
    56      * 
       
    57      * 
       
    58      *  4 bytes = count of active data entries
       
    59      *
       
    60      *  FOR EACH DATA OWNER
       
    61      *  {
       
    62      *      4 bytes = secure id associated with a active data owner
       
    63      *      4 bytes = the number of different active data packages
       
    64      *                for this particular active data owner (one for each 
       
    65      *                drive that was backed up)
       
    66      *      ENTRY
       
    67      *      {
       
    68      *          1 byte = Associated TDriveNumber of the active data
       
    69      *          8 bytes = offset and length of raw data
       
    70      *      }
       
    71      *  }
       
    72      *
       
    73      *
       
    74      **/
       
    75 
       
    76 
       
    77 // ========================= MEMBER FUNCTIONS ================================
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // CMMCScBkupIndexActiveData::CMMCScBkupIndexActiveData()
       
    81 // 
       
    82 // C++ constructor.
       
    83 // ---------------------------------------------------------------------------
       
    84 CMMCScBkupIndexActiveData::CMMCScBkupIndexActiveData()
       
    85 :   CMMCScBkupIndexWithIdentifier< TSecureId >( EMMCScBkupOwnerDataTypeActiveData )
       
    86     {
       
    87     }
       
    88 
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // CMMCScBkupIndexActiveData::NewLC()
       
    92 // 
       
    93 // 
       
    94 // ---------------------------------------------------------------------------
       
    95 CMMCScBkupIndexActiveData* CMMCScBkupIndexActiveData::NewLC()
       
    96     {
       
    97     CMMCScBkupIndexActiveData* self = new(ELeave) CMMCScBkupIndexActiveData();
       
    98     CleanupStack::PushL( self );
       
    99     self->ConstructL();
       
   100     return self;
       
   101     }
       
   102 
       
   103 
       
   104 
       
   105