dependencies/SAT/tsaticoninfo.h
author Christian Morlok <symbian.org@christianmorlok.de>
Wed, 07 Apr 2010 14:35:19 +0200
branchv5backport
changeset 54 666a2952b5b3
parent 20 d2ab7c3d0c48
permissions -rw-r--r--
renamed dlls+exe to prevent conflicts with existing files in emulator; changelog attached. * renamed dlls/exe: - aifw.dll to aifw_hs.dll - cputils to cputils_hs - aiidleint.dll to aiidleint_hs.dll - aiutils.dll to aiutils_hs.dll - MenuInterface.dll to MenuInterface_hs.dll - XCFW.dll to XCFW_hs.dll - homescreen.exe to homescreen_hs.exe - ailaunch.exe to ailaunch_hs.exe * new UID for Active Idle (aifw_hs.dll, aiidleint_hs.dll and homescreen.exe): #define AI_UID3_AIFW_COMMON 0xEDFF45C4 (was 0x102750F0 = 271012080) * new UID for cputils_hs.dll: 0xE3E7134E (was 0x20016B7F = 536963967) * new UID for AI Utilities Factory (aiutils_hs.dll): 0xEC55106C (was 0x10281865 = 271063141) * new UID for MenuInterface_hs.dll: 0xEEE24485 (was 0x10210EAB = 270601899) * new UID for XCFW_hs.dll: 0xEB12332F (was 0x10210EA0 = 270601888) * new UID for ailaunch_hs.exe: 0xEF5A047A (was 0x200286E3 = 537036515)

/*
* Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Capsulates the icon information from the SIM.  
*
*/


#ifndef TSATICONINFO_H
#define TSATICONINFO_H

//  INCLUDES
#include <e32std.h>

// CLASS DECLARATION

/**
 *  Capsulates the SAT icon information.
 *
 *  @lib SatClient.lib
 *  @since 2.6
 */
NONSHARABLE_CLASS( TSatIconInfo )
    {
    public: // Enums

        /**
         * Coding scheme of the icon.
         * @since 2.6
         */
        enum TCodingScheme
            {
            EBasic = 0x11,  ///< Basic (Black and White) icon
            EColor = 0x21   ///< Color icon
            };

    public:  // Constructors

        /**
         * Constructor.
         */
        TSatIconInfo();

    public: // New functions

        /**
         * Size of the icon.
         *
         * @since 5.1
         * @return Size of the icon.
         */
        IMPORT_C TSize IconSize() const;

        /**
         * Coding scheme of the icon.
         * 
         * @since 5.1
         * @return Icon coding scheme.
         */
        IMPORT_C TCodingScheme CodingScheme() const;

        /**
         * Identifies the EF (Elementary File), where the icon is located in
         * the SIM.
         * 
         * @since 5.1
         * @return EF identifier.
         */
        IMPORT_C TUint16 FileIdentifier() const;

        /**
         * Offset to the EF, where the icon is located.
         * 
         * @since 5.1
         * @return Offset to the EF.
         */
        IMPORT_C TUint16 Offset() const;

        /**
         * Length of the icon data.
         * 
         * @since 5.1
         * @return Length of the icon data.
         */
        IMPORT_C TUint16 DataLength() const;
        
        /**
         * Set size of the icon.
         * 
         * @since 5.1
         * @param aIconSize Size of the icon.
         */
        void SetIconSize( const TSize aIconSize );

        /**
         * Set coding scheme of the icon.
         * 
         * @since 5.1
         * @param aCodingScheme Icon coding scheme.
         */
        void SetCodingScheme( const TCodingScheme aCodingScheme );

        /**
         * Set identifies the EF (Elementary File), where the icon is located in
         * the SIM.
         * @since 5.1
         * @param EF identifier.
         */
        void SetFileIdentifier( const TUint16 aFileIdentifier );

        /**
         * Set offset to the EF, where the icon is located.
         * 
         * @since 5.1
         * @param aOffset Offset to the EF.
         */
        void SetOffset( const TUint16 aOffset);

        /**
         * Set length of the icon data.
         * 
         * @since 5.1
         * @param aDataLength Length of the icon data.
         */
        void SetDataLength( const TUint16 aDataLength );

    private: // Data

        /** 
         * Size of the icon. 
         */
        TSize iSize;

        /** 
         * Coding scheme of the icon. 
         */
        TCodingScheme iCodingScheme;

        /** 
         * File identifier 
         */
        TUint16 iFileIdentifier;

        /** 
         * Offset of the icon in EF. 
         */
        TUint16 iOffset;

        /** 
         * Length of the icon data. 
         */
        TUint16 iLength;
    };

#endif // TSATICONINFO_H

// End of File