dependencies/extended_skin_api/AknsSrvSkinInformationPkg.h
author MattD <mattd@symbian.org>
Thu, 01 Apr 2010 14:59:15 +0100
branchv5backport
changeset 50 d717d18a59d5
parent 34 1494d39c2fee
permissions -rw-r--r--
Made a minor error with all the messing around with aknlayout.lag which meant it got performed on the default branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     1
/*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     2
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     3
* All rights reserved.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     4
* This component and the accompanying materials are made available
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     6
* which accompanies this distribution, and is available
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     8
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
     9
* Initial Contributors:
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    11
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    12
* Contributors:
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    13
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    14
* Description:  Defines constant values for Avkon Skins.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    15
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    16
*/
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    17
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    18
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    19
#ifndef AKNSSRVSKININFORMATIONPKG_H
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    20
#define AKNSSRVSKININFORMATIONPKG_H
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    21
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    22
//INCLUDE FILES
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    23
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    24
#include <e32base.h>
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    25
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    26
#include <AknsPkgID.h>
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    27
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    28
// CONSTANTS
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    29
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    30
/**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    31
* Enumeration for the skin package locations.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    32
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    33
* @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    34
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    35
*/
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    36
enum TAknSkinSrvSkinPackageLocation
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    37
    {
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    38
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    39
    * Location enum value for phone (drives C:\ and Z:\)
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    40
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    41
    EAknsSrvPhone = 0,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    42
    
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    43
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    44
    * Location enum value for MMC (E:\)
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    45
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    46
    EAknsSrvMMC = 2,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    47
    
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    48
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    49
    * Location enum value for all drives available.(d:\ ie. RAM disk excluded)
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    50
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    51
    EAknsSrvAll = 4
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    52
    };
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    53
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    54
/**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    55
* Enumeration for the skin protection type.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    56
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    57
* @since 2.6
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    58
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    59
*/
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    60
enum TAknsSkinSrvSkinProtectionType
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    61
    {
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    62
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    63
    * The skin is not DRM protected
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    64
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    65
    EAknsSrvNoProtection,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    66
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    67
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    68
    * The skin is DRM protected
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    69
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    70
    EAknsSrvProtected,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    71
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    72
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    73
    * The rights object for has no rights for the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    74
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    75
    EAknsSrvNoRights,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    76
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    77
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    78
    * The rights object for the skin is count based,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    79
    * and should not be allowed to activated or 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    80
    * edited. 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    81
    * §qtn_drm_prev_rights_set§ should be displayed.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    82
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    83
    EAknsSrvCountBased,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    84
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    85
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    86
    * The rights object is valid in the future,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    87
    * should not be allowed to be actived or
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    88
    * edited.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    89
    * §qtn_drm_prev_rights_set§ should be displayed.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    90
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    91
    EAknsSrvFutureRights,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    92
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    93
    /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    94
    * The rights object has bee expired
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    95
    * §qtn_drm_mgr_det_exp§ from drmcommon should be displayed
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    96
    */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    97
    EAknsSrvExpiredRights
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    98
    };
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
    99
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   100
// CLASS DECLARATIONS
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   101
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   102
struct TAknsSrvSkinInfoPkg
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   103
{
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   104
    public:
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   105
        TAknsPkgID iPID; // Package ID of the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   106
        TAknsPkgID iColorSchemePID; // Package ID of the color scheme in the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   107
        TFileName iSkinDirectoryBuf; // The directory of the skin package
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   108
        TFileName iSkinIniFileDirectoryBuf; // The directory containing the skin ini file
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   109
        TFileName iSkinNameBuf; // The name of the skin package.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   110
        TFileName iIdleStateWallPaperImageName; // The name of the idle state wallpaper mbm file.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   111
        TFileName iFullName; // The fully qualified skn-file name
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   112
        TBool iIsCopyable; // Boolean value specifying if the skin package copyable
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   113
        TBool iIsDeletable; // Boolean value specifying if the skin package is deletable
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   114
        TInt iIdleBgImageIndex; // The index of the idle state background image
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   115
        TAknsSkinSrvSkinProtectionType iProtectionType; // Specifies the DRM protection type in this skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   116
        TBool iCorrupted; // Specifies if the skin is somehow corrupted
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   117
        TBool iSupportAnimBg; // Specifies if the skin support animated background
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   118
};
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   119
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   120
/**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   121
* A storage class containing skin information.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   122
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   123
* @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   124
*
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   125
**/
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   126
NONSHARABLE_CLASS(CAknsSrvSkinInformationPkg) : public CBase
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   127
    {
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   128
    public: // Construction and destruction
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   129
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   130
        static CAknsSrvSkinInformationPkg* NewL(
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   131
            const TAknsPkgID aPID, const TAknsPkgID aColorSchemePID,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   132
            const TDesC& aDirectory, const TDesC& aInifileDir,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   133
            const TDesC& aSkinName, 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   134
            const TDesC& aIdleStateMbmFilename, 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   135
            const TDesC& aPinboardWallPaperMbmFilename,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   136
            const TDesC& aFullName,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   137
            const TInt aIdleBgImageIndex,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   138
            const TInt aPinboardBgImageIndex,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   139
            const TBool aDeletable,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   140
            const TBool aCopyable,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   141
            const TBool aHasIconset,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   142
            const TAknsSkinSrvSkinProtectionType aProtectionType,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   143
            const TBool aCorrupted,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   144
            const TBool aSupportAnimBg);
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   145
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   146
        virtual ~CAknsSrvSkinInformationPkg();
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   147
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   148
    public: // New methods
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   149
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   150
        /** 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   151
        * Gets the package ID of the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   152
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   153
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   154
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   155
        * @return The package ID of the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   156
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   157
        IMPORT_C TAknsPkgID PID() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   158
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   159
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   160
        * Gets the skin package directory
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   161
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   162
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   163
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   164
        * @return The skin package directory
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   165
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   166
        IMPORT_C TDesC& Directory() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   167
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   168
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   169
        * Gets the skin package ini file directory
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   170
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   171
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   172
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   173
        * @return The skin package ini file directory
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   174
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   175
        IMPORT_C TDesC& IniFileDirectory() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   176
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   177
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   178
        * Gets the skin name. May or may not be empty.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   179
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   180
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   181
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   182
        * @return The skin name, may also be empty
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   183
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   184
        IMPORT_C TDesC& Name() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   185
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   186
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   187
        * Gets the skin idle state wallpaper mbm file name. May or may not be empty.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   188
        * The filename is fully qualified (incl. full file path)
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   189
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   190
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   191
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   192
        * @return The mbm filename of the skin wallpaper, may also be empty
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   193
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   194
        IMPORT_C TDesC& IdleStateWallPaperImageFileName() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   195
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   196
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   197
        * Gets the skin pinboard wallpaper mbm file name. May or may not be empty.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   198
        * The filename is fully qualified (incl. full file path)
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   199
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   200
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   201
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   202
        * @return The mbm filename of the pinboard wallpaper, may also be empty
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   203
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   204
        IMPORT_C TDesC& PinboarWallPaperImageFileName() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   205
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   206
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   207
        * Gets the idle state background image index.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   208
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   209
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   210
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   211
        * @return The idle state background image index.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   212
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   213
        IMPORT_C TInt IdleStateWallPaperImageIndex() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   214
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   215
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   216
        * Gets the pinboard background image index.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   217
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   218
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   219
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   220
        * @return The pinboard background image index.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   221
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   222
        IMPORT_C TInt PinboardWallPaperImageIndex() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   223
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   224
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   225
        * Indicates if the skin package is deletable.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   226
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   227
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   228
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   229
        * @return ETrue if the skin is deletable, EFalse otherwise.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   230
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   231
        IMPORT_C TBool IsDeletable() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   232
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   233
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   234
        * Indicates if the skin package is copyable.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   235
        * 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   236
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   237
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   238
        * @return ETrue if the skin is deletable, EFalse otherwise.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   239
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   240
        IMPORT_C TBool IsCopyable() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   241
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   242
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   243
        * Returns the color scheme package ID for this skin.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   244
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   245
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   246
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   247
        * @return Package ID value of the color scheme associated with this 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   248
        *   skin, or @c KAknsNullPkgID if this skin has no preference over 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   249
        *   color schemes.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   250
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   251
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   252
        IMPORT_C TAknsPkgID ColorSchemePID() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   253
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   254
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   255
        * Indicates whether the skin has an iconset.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   256
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   257
        * @since 2.0
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   258
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   259
        * @return ETrue if the skin has an iconset, EFalse otherwise.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   260
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   261
        IMPORT_C TBool HasIconset() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   262
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   263
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   264
        * Gets the protection type for this skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   265
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   266
        * @since 2.6
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   267
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   268
        * @return The protection type for this skin.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   269
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   270
        IMPORT_C TAknsSkinSrvSkinProtectionType ProtectionType() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   271
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   272
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   273
        * Indicates whether the skin is corrupted.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   274
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   275
        * @since 2.6
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   276
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   277
        * @return ETrue if the skin is corrupted, EFalse otherwise.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   278
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   279
        IMPORT_C TBool IsCorrupted() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   280
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   281
        /**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   282
        * Get the fully qualified skin skn-filename (incl. full path).
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   283
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   284
        * @since 2.6
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   285
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   286
        * @return The fully qualified skn-file name.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   287
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   288
        IMPORT_C TDesC& FullName() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   289
        
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   290
		/**
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   291
        * Indicates whether the skin support animation background.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   292
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   293
        * @since 5.2
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   294
        *
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   295
        * @return The fully qualified skn-file name.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   296
        */
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   297
        IMPORT_C TBool IsSupportAnimBg() const;
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   298
    
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   299
    protected:
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   300
        CAknsSrvSkinInformationPkg( 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   301
            const TAknsPkgID aPID, const TAknsPkgID aColorSchemePID,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   302
            const TBool aDeletable, const TBool aCopyable,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   303
            const TInt aIdleBgImageIndex,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   304
            const TInt aPinboardBgImageIndex, const TBool aHasIconset,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   305
            const TAknsSkinSrvSkinProtectionType aProtectionType,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   306
            const TBool aCorrupted,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   307
            const TBool aSupportAnimBg);
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   308
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   309
        void ConstructL( 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   310
            const TDesC& aDirectory, const TDesC& aInifileDir,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   311
            const TDesC& aSkinName, const TDesC& aIdleStateMbmFilename, 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   312
            const TDesC& aPinboardWallPaperMbmFilename,
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   313
            const TDesC& aFullName);
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   314
    
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   315
    private:
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   316
        TAknsPkgID iPID; // Package ID of the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   317
        TAknsPkgID iColorSchemePID; // Package ID of the color scheme in the skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   318
        HBufC* iSkinDirectoryBuf; // The directory of the skin package
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   319
        HBufC* iSkinIniFileDirectoryBuf; // The directory containing the skin ini file
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   320
        HBufC* iSkinNameBuf; // The name of the skin package.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   321
        HBufC* iIdleStateWallPaperImageName; // The name of the idle state wallpaper mbm file.
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   322
        HBufC* iPinboardWallPaperImageName; // The name of the pinboard wallpaper mbm file 
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   323
        HBufC* iFullName; // The fully qualified skn-file name
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   324
        TBool iIsCopyable; // Boolean value specifying if the skin package copyable
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   325
        TBool iIsDeletable; // Boolean value specifying if the skin package is deletable
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   326
        TInt iIdleBgImageIndex; // The index of the idle state background image
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   327
        TInt iPinboardBgImageIndex; // The index of the pinboard backgound image
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   328
        TBool iHasIconset; // Boolean value indicating whether this skin has an iconset
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   329
        TAknsSkinSrvSkinProtectionType iProtectionType; // Specifies the DRM protection type in this skin
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   330
        TBool iCorrupted; // Specifies if the skin is somehow corrupted
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   331
        TBool iSupportAnimBg; // Specifies if the skin support Animated background
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   332
    };
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   333
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   334
#endif AKNSSRVSKININFORMATIONPKG_H // AknsSrvSkinInformationPkg.h
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   335
1494d39c2fee added few more dependencies
kashif.sayed
parents:
diff changeset
   336
// End of file