psmservices/psmserver/inc/engine/psmstoragedefines.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Internal storage definitions file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PSMSTORAGEDEFINES_H
       
    20 #define PSMSTORAGEDEFINES_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <gmxmldocument.h>
       
    24 #include <gmxmlelement.h>
       
    25 
       
    26 // ======== CONSTANTS =======
       
    27 // Maximum attribute lenghth
       
    28 const TInt KPsmMaxAttribLength = 160;
       
    29 
       
    30 const TInt KPsmCurrentSetMode = 99;
       
    31 
       
    32 const TInt KPsmMaxPathLength = 50;
       
    33 
       
    34 // Storage files
       
    35 _LIT( KPsmPrivateDrive, "z:" );
       
    36 _LIT( KPsmBackupDrive, "c:" );
       
    37 _LIT( KPsmBackupFolder, "backup\\" );
       
    38 _LIT( KPsmCenRepFolder, "cenrep\\" );
       
    39 
       
    40 _LIT( KPsmStorageExtension, ".xml" );
       
    41 
       
    42 // TAG DEFINITIONS
       
    43 _LIT8( KPsmConfigRootTag, "PowerSaveModeConfig" );           // PSM Config root tag
       
    44 _LIT8( KPsmBackupRootTag, "PowerSaveModeBackup" );           // PSM Backup root tag
       
    45 
       
    46 _LIT8( KPsmPluginGroupTag, "Setting" );                      // PSM Plugin group tag
       
    47 _LIT8( KPsmPluginGroupAttribute, "mode" );                   // PSM Plugin group attribute
       
    48 
       
    49 _LIT8( KPsmSetItem, "SetItem" );                             // SetItem tag
       
    50 _LIT8( KPsmSetItemKey, "key" );                              // SetItem key attribute
       
    51 _LIT8( KPsmSetItemType, "type" );                            // SetItem type attribute
       
    52 _LIT8( KPsmSetItemValue, "value" );                          // SetItem value attribute
       
    53 _LIT8( KPsmSetItemBlock, "block" );                          // SetItem block attribute
       
    54 
       
    55 #endif // PSMSTORAGEDEFINES_H