satengine/SatServer/inc/tsatinternaliconinfo.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2008 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:  Sub-session for SAT services.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TSATINTERNALICONINFO_H
       
    19 #define TSATINTERNALICONINFO_H
       
    20 
       
    21 /**
       
    22  * Class for transporting icon image data to SatEngine
       
    23  * Internal parameter class between SAT client and server.
       
    24  *
       
    25  * @code
       
    26  * TSatInternalIconInfo internalIconInfo;
       
    27  * TSatInternalIconInfoPckg internalIconInfoPckg
       
    28  * @endcode 
       
    29  *
       
    30  * @since 5.1
       
    31  */
       
    32 NONSHARABLE_CLASS( TSatInternalIconInfo )
       
    33     {
       
    34     public:
       
    35     
       
    36         /**
       
    37          * Coding scheme of the icon.
       
    38          * The same with TSatIconInfo enum.
       
    39          * 
       
    40          * @since 5.1
       
    41          */
       
    42         enum TCodingScheme
       
    43             {
       
    44             EBasic = 0x11,  ///< Basic (Black and White) icon
       
    45             EColor = 0x21   ///< Color icon
       
    46             };    
       
    47 
       
    48         /**
       
    49          * Class constructor.
       
    50          */
       
    51         TSatInternalIconInfo() :
       
    52             iWidth( 0 ),
       
    53             iHeight( 0 ),
       
    54             iCodingScheme( EBasic ),
       
    55             iFileIdentifier( 0 ),
       
    56             iOffset( 0 ),
       
    57             iLength( 0 )
       
    58             {
       
    59             };
       
    60 
       
    61     public:
       
    62 
       
    63         /**
       
    64          * The icon width in pixels.
       
    65          */
       
    66         TInt iWidth;
       
    67 
       
    68         /**
       
    69          * The icon height in pixels
       
    70          */
       
    71         TInt iHeight;
       
    72 
       
    73         /**
       
    74          * Coding scheme of the icon.
       
    75          */
       
    76         TCodingScheme iCodingScheme;
       
    77 
       
    78         /**
       
    79          * File identifier of the icon
       
    80          */
       
    81         TUint16 iFileIdentifier;
       
    82 
       
    83         /**
       
    84          * Offset of the icon in EF.
       
    85          */
       
    86         TUint16 iOffset;
       
    87 
       
    88         /**
       
    89          * Length of the icon data.
       
    90          */
       
    91         TUint16 iLength;
       
    92     };
       
    93     
       
    94 typedef TPckg<TSatInternalIconInfo> TSatInternalIconInfoPckg;
       
    95 
       
    96 #endif // TSATINTERNALICONINFO_H
       
    97 
       
    98 // End of File