filemanager/src/fmbkupengine/inc/BKupEngine.rh
branchRCL_3
changeset 38 491b3ed49290
equal deleted inserted replaced
36:95243422089a 38:491b3ed49290
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 *     This file contains declarations for resources.
       
    16 *     The file can be included only in resource file.
       
    17 *
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 //  INCLUDES
       
    23 #include <bldvariant.hrh>
       
    24 
       
    25 //  STRUCTURE DEFINITIONS
       
    26 
       
    27 // ---------------------------------------------------------
       
    28 //  BACKUPITEM
       
    29 //  Defines a file or folder to be backed up
       
    30 //  Note! Remember to use a trailing backslash!
       
    31 // ---------------------------------------------------------
       
    32 //
       
    33 STRUCT BACKUPITEM
       
    34     {
       
    35     LTEXT item_path;
       
    36     WORD item_flags;
       
    37     }
       
    38 
       
    39 
       
    40 
       
    41 // ---------------------------------------------------------
       
    42 //  MMC_SECURE_BACKUP_DRIVE_LIST
       
    43 //
       
    44 //  Defines an array of drive numbers, starting at 0 
       
    45 //  (EDriveA), to a maximum of 25 (EDriveZ)
       
    46 //  which are included in a backup/restore to/from MMC
       
    47 //  operation
       
    48 //
       
    49 //  See TMMCDriveNumber and TBkupDriveCategory (BkupEngine.hrh)
       
    50 //  See TMMCScBkupOwnerDataType in TMMCScBkupOwnerDataType.hrh
       
    51 // ---------------------------------------------------------
       
    52 //
       
    53 STRUCT MMC_SECURE_BACKUP_DRIVE_AND_OPERATION_TYPE
       
    54 	{
       
    55 	BYTE drive;	 // See TMMCDriveNumber and TBkupDriveCategory (BkupEngine.hrh)
       
    56 	BYTE type;   // See TMMCScBkupOwnerDataType (TMMCScBkupOwnerDataType.h)
       
    57 	}
       
    58 
       
    59 
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 //  MMC_SECURE_BACKUP_DRIVES_AND_OPERATIONS
       
    63 //
       
    64 //  Defines an array of drive numbers and operations.
       
    65 //  The drive starts at 0 (EDriveA), to a maximum of 25 (EDriveZ)
       
    66 //  which are included in a backup/restore to/from MMC
       
    67 //  operation. Each drive should include a number of associated
       
    68 //  operations. For example, for drive C:\ we wish to carry
       
    69 //  out all SBE backup/restore ops. For MMC we wish to only
       
    70 //  back up & restore package data (Required to ensure that
       
    71 //  hashes for MMC-based binaries are recreated on C:\ after
       
    72 //  the internal drive is formatted & a restore is performed).
       
    73 //
       
    74 // ---------------------------------------------------------
       
    75 //
       
    76 STRUCT MMC_SECURE_BACKUP_DRIVES_AND_OPERATIONS
       
    77     {
       
    78     LEN BYTE STRUCT drivesAndOperations[]; // SEE MMC_SECURE_BACKUP_DRIVE_AND_OPERATION_TYPE
       
    79     }
       
    80 
       
    81 // ---------------------------------------------------------
       
    82 //  BACKUPCATEGORY
       
    83 //  Defines a category, name for archive and uids, 
       
    84 //  from which backup category consists of
       
    85 // ---------------------------------------------------------
       
    86 //
       
    87 STRUCT BACKUPCATEGORY
       
    88     {
       
    89     LONG category;
       
    90     LTEXT archive_name;
       
    91     LONG special_flags;
       
    92     LONG exclude_special_flags;
       
    93     LONG uids[];
       
    94     LONG exclude_uids[];
       
    95     }
       
    96 
       
    97 
       
    98 // ---------------------------------------------------------
       
    99 //  BACKUPCATEGORY
       
   100 //  Defines a category, name for archive and uids, 
       
   101 //  from which backup category consists of
       
   102 // ---------------------------------------------------------
       
   103 //
       
   104 STRUCT BACKUPCATEGORYARRAY
       
   105     {
       
   106     STRUCT backupcategory[];
       
   107     }
       
   108 
       
   109 // End of File