psln/Inc/PslnConst.h
branchRCL_3
changeset 56 d48ab3b357f1
parent 0 2f259fa3e83a
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
       
     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:  Personalisation constants.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PSLNCONST_H
       
    19 #define PSLNCONST_H
       
    20 
       
    21 #include <e32std.h>
       
    22 
       
    23 #include <AknsSkinUID.h>
       
    24 #include <AknsItemID.h>
       
    25 #include <AknsUtils.h>
       
    26 
       
    27 #include "psln.hrh"
       
    28 #include "PslnVariant.hrh"
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 // UID of Personlisation application
       
    33 const TUid KUidPsln = { 0x10005A32 };
       
    34 
       
    35 // Screen saver none type.
       
    36 _LIT( KPslnScreenSaverTypeNone, "None" );
       
    37 // Screen saver date type.
       
    38 _LIT( KPslnScreenSaverTypeDateTime, "DateTime" );
       
    39 // Screen saver text type.
       
    40 _LIT( KPslnScreenSaverTypeText, "Text" );
       
    41 
       
    42 // View ID's - STATIC ONES
       
    43 // General theme view Id.
       
    44 const TUid KPslnGeneralView     = {0};
       
    45 // Wallpaper view Id.
       
    46 const TUid KPslnWallpaperView   = {3};
       
    47 // Screen saver view Id.
       
    48 const TUid KPslnScreenSaverView = {4};
       
    49 // Main view Id.
       
    50 const TUid KPslnMainView2       = { 0x102750AA };
       
    51 
       
    52 // Properties view setting ID's
       
    53 // Wallpaper setting id.
       
    54 const TInt KPslnBgIdleSettingId = 0;
       
    55 // Screen saver id.
       
    56 const TInt KPslnScreenSettingId = 1;
       
    57 
       
    58 // Default skin index.
       
    59 const TInt KPslnSeries60SkinIndex = 0;
       
    60 
       
    61 // Maximum number of characters in Screen saver txt.
       
    62 const TInt KPslnMaxNumberOfScreenSaverText = 15;
       
    63 
       
    64 // No resource specified. 
       
    65 const TInt KPslnNoResource = 0;
       
    66 
       
    67 // Middle Softkey control ID.
       
    68 const TInt KPslnMSKControlID = 3;
       
    69 
       
    70 // Tags for ini-file.
       
    71 // Screen saver tag for ini-file.
       
    72 _LIT( KPslnSSaver, "ScreenSaver" );
       
    73 // Wallpaper tag for ini-file.
       
    74 _LIT( KPslnIdleBgImage, "IdleImg" );
       
    75 // Wallpaper path tag for ini-file.
       
    76 _LIT( KPslnIdleBgImagePath, "IdlePath" );
       
    77 // Screen saver text tag for ini-file.
       
    78 _LIT( KPslnScreenSaverText, "ScreenText" );
       
    79 
       
    80 // Path separator.
       
    81 _LIT( KPslnPathSeparator, "\\" );
       
    82 
       
    83 // Memory card drive letter.
       
    84 #ifndef RD_MULTIPLE_DRIVE
       
    85 _LIT( KPslnMMCDriveLetter, "E" );
       
    86 #endif // RD_MULTIPLE_DRIVE
       
    87 
       
    88 // Default Plugin UIDs.
       
    89 // Application Shell Plugin UID.
       
    90 #ifdef FF_HITCHCOCK_APP_SHELL
       
    91 const TUid KPslnASPluginUid = { 0x10283151 };
       
    92 #else
       
    93 const TUid KPslnASPluginUid = { 0x102750A5 };
       
    94 #endif // FF_HITCHCOCK_APP_SHELL
       
    95 // Active Idle Plugin UID.
       
    96 const TUid KPslnAIPluginUid = { 0x102750A7 };
       
    97 
       
    98 // Max lenght of container setting text.
       
    99 const TInt KPslnItemLength = 128;
       
   100 
       
   101 // Space for icon.
       
   102 const TInt KPslnIconSize = 4; 
       
   103 
       
   104 // Sound file types.
       
   105 static const TAknsItemID KPslnSoundItems[] =
       
   106     {
       
   107         // Ringing tone.
       
   108         { EAknsMajorSound, EAknsMinorSoundRingingTone },
       
   109         // Message alert tone.
       
   110         { EAknsMajorSound, EAknsMinorSoundMessageAlert },
       
   111         // None.
       
   112         { EAknsMajorNone, EAknsMinorNone } // End of list
       
   113     };
       
   114 
       
   115 // Entry point for dynamically loaded dlls.
       
   116 const TInt KPslnDllEntryPoint = 1;
       
   117 
       
   118 // Transition Effects setting values.
       
   119 enum TPslnTransitionEffects
       
   120     {
       
   121     // All effects are enabled.
       
   122     EPslnEnableAllEffects = 0,
       
   123     // All effects are disabled.
       
   124     EPslnDisableAllEffects = KMaxTInt
       
   125     };
       
   126 
       
   127 // Minimum memary size for change skin
       
   128 const TInt KPslnMinMemSize = 2000000;
       
   129 
       
   130 // Delay time for updateing skin
       
   131 const TInt KPslnUpdateSkinDelay = 10000;//10ms
       
   132 
       
   133 #endif // PSLNCONST_H
       
   134 
       
   135 // End of File