brandingserver/bsclient/cbsiconfileprovider.h
changeset 0 e6b17d312c8b
child 19 7e0cc21eb164
child 42 cfd5c2994f10
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Icon file provider.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CBSICONFILEPROVIDER_H
       
    21 #define CBSICONFILEPROVIDER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <AknsItemID.h>
       
    26 #include <AknIconUtils.h>
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  *  Icon file provider.
       
    35  *  See MAknIconFileProvider.h for comments.
       
    36  *
       
    37  *  @lib chat.app
       
    38  *  @since 3.0
       
    39  */
       
    40 class CBSIconFileProvider : public CBase, public MAknIconFileProvider
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43 
       
    44         /**
       
    45          * Two-phased constructor.
       
    46          */
       
    47         static CBSIconFileProvider* NewL( RFile& aFile );
       
    48         /**
       
    49          * Destructor.
       
    50          */
       
    51         virtual ~CBSIconFileProvider();
       
    52 
       
    53     public: // Functions from base classes
       
    54 
       
    55         /**
       
    56          * @see MAknIconFileProvider
       
    57          */
       
    58         void RetrieveIconFileHandleL(
       
    59                 RFile& aFile, const TIconFileType aType );
       
    60 
       
    61         /**
       
    62          * @see MAknIconFileProvider
       
    63          */
       
    64         void Finished();
       
    65 
       
    66     private:
       
    67 
       
    68         /**
       
    69          * C++ default constructor.
       
    70          */
       
    71         CBSIconFileProvider();
       
    72         
       
    73         /**
       
    74          * By default Symbian 2nd phase constructor is private.
       
    75          */
       
    76 		void ConstructL(RFile& aFile);
       
    77 
       
    78     private:    // Data
       
    79 
       
    80         // owned. filename of this icon. must be a copy,
       
    81         // a reference could end up pointing into another file.
       
    82         HBufC* iFilename;
       
    83         
       
    84         RFile iFile;
       
    85     };
       
    86 
       
    87 #endif      // CBSICONFILEPROVIDER_H
       
    88 
       
    89 // End of File