uigraphics/AknIcon/srvinc/AknIconDataPreserver.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_PRESERVER_H
       
    21 #define AKN_ICON_DATA_PRESERVER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <AknIconUtils.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CAknIconSrvIconItem;
       
    29 class CAknIconDataItem;
       
    30 class MAknIconFormatHandler;
       
    31 struct TAknIconParams;
       
    32 class CAknIconServer;
       
    33 class CAknIconLoader;
       
    34 
       
    35 // CONSTANTS
       
    36 
       
    37 // CLASS DEFINITIONS
       
    38 
       
    39 NONSHARABLE_CLASS(CAknIconDataPreserver) : public CBase
       
    40     {
       
    41     public: // Constructor and destructor
       
    42 
       
    43         static CAknIconDataPreserver* NewL( CAknIconServer& aServer );
       
    44         ~CAknIconDataPreserver();
       
    45 
       
    46     public: // New functions
       
    47 
       
    48         // returns NULL if icon data is not preserved.
       
    49         CAknIconSrvIconItem* CreateIconL( const TAknIconParams& aParams );
       
    50 
       
    51         const CAknIconDataItem* PreserveIconDataL( 
       
    52             const TAknIconParams& aParams );
       
    53 		// Fix to error JJUN-78QCL6. Passing aMessage variable to this function.
       
    54 		// We need this variable to panic the client inside this function 
       
    55         const CAknIconDataItem* UnpreserveIconData(
       
    56             const TAknIconParams& aParams, TInt aCount, const RMessage2& aMessage );
       
    57 
       
    58         void GetContentDimensionsL( 
       
    59             const TAknIconParams& aParams,
       
    60             TAknContentDimensions& aContentDimensions );
       
    61 
       
    62     private: // New functions
       
    63 
       
    64     private: // Private constructors
       
    65 
       
    66         CAknIconDataPreserver( CAknIconServer& aServer );
       
    67 
       
    68     public: // Data
       
    69 
       
    70         CAknIconServer& iServer;
       
    71         RPointerArray<CAknIconDataItem> iItems;
       
    72         MAknIconFormatHandler* iHandler; // not owned
       
    73     };
       
    74 
       
    75 #endif // AKN_ICON_DATA_PRESERVER_H
       
    76 
       
    77 // End of File