commsconfig/cscengine/inc/cscengbrandinghandler.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  For CSC needed branding server handling
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CSCBRANDINGHANDLER_H
       
    21 #define C_CSCBRANDINGHANDLER_H
       
    22 
       
    23 #include <AknIconUtils.h>
       
    24 
       
    25 class MBSAccess;
       
    26 class CBSFactory;
       
    27 
       
    28 /**
       
    29  * An instance of CCSCEngBrandingHandler
       
    30  * For CSC needed Branding Server handling
       
    31  *
       
    32  * @lib cscengine.lib
       
    33  * @since Series 60 3.2
       
    34  */
       
    35 NONSHARABLE_CLASS ( CCSCEngBrandingHandler ) : public CBase, 
       
    36                                                public MAknIconFileProvider
       
    37     {    
       
    38     public:
       
    39         
       
    40         /**
       
    41          * Two-phased constructor.
       
    42          */ 
       
    43         IMPORT_C static CCSCEngBrandingHandler* NewL();
       
    44 
       
    45 
       
    46         /**
       
    47          * Destructor.
       
    48          */
       
    49         IMPORT_C virtual ~CCSCEngBrandingHandler();
       
    50         
       
    51         
       
    52         /**
       
    53          * Get branded bitmap for service.
       
    54          *
       
    55          * @since Series 60 3.2
       
    56          * @param aBrandId service brand id
       
    57          * @param aBitmap bitmap is stored to this
       
    58          * @param aMask mask is stored to this
       
    59          * @param aIconSize Size of the icon in pixels
       
    60          */
       
    61         IMPORT_C void GetServiceBrandIconL( 
       
    62            const TDesC8& aBrandId, CFbsBitmap*& aBitmap, CFbsBitmap*& aMask,
       
    63            TInt aIconSize );
       
    64 
       
    65         // from base class MAknIconFileProvider
       
    66             
       
    67         /**
       
    68          * From MAknIconFileProvider
       
    69          * Returns an open file handle to the icon file.
       
    70          *
       
    71          * @param aFile Icon file should be opened in this file handle, which
       
    72          * is an empty file handle, when the AknIcon framework calls this 
       
    73          * method. The AknIcon framework takes care of closing the file handle
       
    74          * after having used it.
       
    75          * @param aType Icon file type.
       
    76          * @since 
       
    77          */
       
    78         void RetrieveIconFileHandleL(
       
    79                 RFile& aFile, const TIconFileType aType );
       
    80 
       
    81 
       
    82         /**
       
    83          * From MAknIconFileProvider
       
    84          * With this method, AknIcon framework informs that it does not use
       
    85          * this MAknIconFileProvider instance any more.  
       
    86          *
       
    87          * @since
       
    88          */
       
    89         void Finished(){};
       
    90 
       
    91                        
       
    92     private:
       
    93 
       
    94         CCSCEngBrandingHandler();
       
    95 
       
    96         void ConstructL();
       
    97         
       
    98               
       
    99     private:  // data
       
   100         
       
   101         /**
       
   102          * Pointer to CBSFactory
       
   103          * Own.
       
   104          */
       
   105         CBSFactory* iFactory;
       
   106         
       
   107         /**
       
   108          * File.
       
   109          */
       
   110         RFile iFile;       
       
   111         
       
   112 #ifdef _DEBUG
       
   113     friend class UT_CSCEngBrandingHandler;
       
   114 #endif
       
   115     };
       
   116 
       
   117 #endif // C_CSCBRANDINGHANDLER_H