wvuing/wvvariant/Src/CCAIconFileProvider.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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 CCAICONFILEPROVIDER_H
       
    21 #define CCAICONFILEPROVIDER_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 CCAIconFileProvider : public CBase, public MAknIconFileProvider
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43 
       
    44         /**
       
    45          * Two-phased constructor.
       
    46          */
       
    47         static CCAIconFileProvider* NewL( RFs &aFs, const TDesC&
       
    48                                           aIconFilename );
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         virtual ~CCAIconFileProvider();
       
    54 
       
    55     public: // Functions from base classes
       
    56 
       
    57         /**
       
    58          * @see MAknIconFileProvider
       
    59          */
       
    60         void RetrieveIconFileHandleL(
       
    61             RFile& aFile, const TIconFileType aType );
       
    62 
       
    63         /**
       
    64          * @see MAknIconFileProvider
       
    65          */
       
    66         void Finished();
       
    67 
       
    68     private:
       
    69 
       
    70         /**
       
    71          * C++ default constructor.
       
    72          */
       
    73         CCAIconFileProvider( RFs& aFs );
       
    74 
       
    75         /**
       
    76          * By default Symbian 2nd phase constructor is private.
       
    77          */
       
    78         void ConstructL( const TDesC& aIconFilename );
       
    79 
       
    80     private:    // Data
       
    81 
       
    82         // doesn't own. file server session.
       
    83         RFs& iFs;
       
    84 
       
    85         // owned. filename of this icon. must be a copy,
       
    86         // a reference could end up pointing into another file.
       
    87         HBufC* iFilename;
       
    88     };
       
    89 
       
    90 #endif      // CCAICONFILEPROVIDER_H
       
    91 
       
    92 // End of File