uigraphics/AknIcon/srvinc/AknIconDataItem.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2002 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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef AKN_ICON_DATA_ITEM_H
       
    21 #define AKN_ICON_DATA_ITEM_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <gdi.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 struct TAknIconParams;
       
    29 class CAknIconFileNameCache;
       
    30 
       
    31 // CONSTANTS
       
    32 
       
    33 // CLASS DEFINITIONS
       
    34 
       
    35 NONSHARABLE_CLASS(CAknIconDataItem) : public CBase
       
    36     {
       
    37     public: // Constructor and destructor
       
    38 
       
    39         /**
       
    40         * @param aInfo info
       
    41         */
       
    42         static CAknIconDataItem* NewL( const TAknIconParams& aInfo,
       
    43                                        CAknIconFileNameCache& aFileNameCache );
       
    44 
       
    45         /**
       
    46         * Constructor for compare items.
       
    47         */
       
    48         CAknIconDataItem( const TAknIconParams& aInfo );
       
    49 
       
    50         ~CAknIconDataItem();
       
    51 
       
    52     public: // New functions
       
    53 
       
    54         static TInt LinearOrder(
       
    55             const CAknIconDataItem& aFirst,
       
    56             const CAknIconDataItem& aSecond );
       
    57 
       
    58         void GetInfo( TAknIconParams& aInfo ) const;
       
    59 
       
    60     private: // Private constructors
       
    61 
       
    62         CAknIconDataItem();
       
    63         void ConstructL( const TAknIconParams& aInfo,        
       
    64                          CAknIconFileNameCache& aFileNameCache );
       
    65 
       
    66     public: // Data
       
    67         HBufC* iFileName; // not owned
       
    68         const TDesC* iFileNameRef; // used by compare items
       
    69         TInt iIconId;
       
    70         TInt iUserCount;
       
    71         // preserved icon data
       
    72         TInt iHandle; // Handle to DOM tree
       
    73         TDisplayMode iBitmapDepth;
       
    74         TDisplayMode iMaskDepth;
       
    75         TBool iAppIcon; // set true for application icon
       
    76     };
       
    77 
       
    78 #endif // AKN_ICON_DATA_ITEM_H
       
    79 
       
    80 // End of File