vmbx/vmbxengine/inc/vmsettingsuiiconfileprovider.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*
       
     2 * Copyright (c) 2006-2009 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 #ifndef C_VMSETTINGSUIICONFILEPROVIDER
       
    19 #define C_VMSETTINGSUIICONFILEPROVIDER
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <AknIconUtils.h>
       
    23 
       
    24 /**
       
    25  *  CVmSettingsUiIconFileProvider class
       
    26  *  Declarition of CVmSettingsUiIconFileProvider.
       
    27  *
       
    28  *  @since S60 v3.2
       
    29  */
       
    30 NONSHARABLE_CLASS( CVmSettingsUiIconFileProvider ) : public CBase,
       
    31                                                      public MAknIconFileProvider
       
    32     {
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Two-phased constructor.
       
    37      * @param in aFile for handle to file
       
    38      */
       
    39     static CVmSettingsUiIconFileProvider* NewL( RFile& aFile );
       
    40 
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     virtual ~CVmSettingsUiIconFileProvider();
       
    45 
       
    46 public: // from base class MAknIconFileProvider
       
    47 
       
    48     /**
       
    49      * from MAknIconFileProvider.
       
    50      */
       
    51     void RetrieveIconFileHandleL( RFile& aFile, const TIconFileType aType );
       
    52 
       
    53     /**
       
    54      * from MAknIconFileProvider.
       
    55      */
       
    56     void Finished();
       
    57 
       
    58 private:
       
    59 
       
    60     /**
       
    61      * C++ default constructor.
       
    62      */
       
    63     CVmSettingsUiIconFileProvider();
       
    64 
       
    65      /**
       
    66       * By default Symbian 2nd phase constructor is private.
       
    67       */
       
    68     void ConstructL( RFile& aFile );
       
    69 
       
    70 private: // data
       
    71 
       
    72     // File handle. Own.
       
    73     RFile iFile;
       
    74     };
       
    75 
       
    76 #endif // C_VMSETTINGSUIICONFILEPROVIDER