mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpaccesssingleton.h
changeset 25 d881023c13eb
parent 0 a2952bb97e68
child 32 edd273b3192a
equal deleted inserted replaced
21:a05c44bc3c61 25:d881023c13eb
    17 
    17 
    18 
    18 
    19 #ifndef CMMMTPDPACCESSSINGLETON_H
    19 #ifndef CMMMTPDPACCESSSINGLETON_H
    20 #define CMMMTPDPACCESSSINGLETON_H
    20 #define CMMMTPDPACCESSSINGLETON_H
    21 
    21 
    22 /**
       
    23 * Implements the MM MTP Data Priovider access singletons reference manager.
       
    24 */
       
    25 
       
    26 class RFs;
       
    27 class CMmMtpDpMetadataAccessWrapper;
    22 class CMmMtpDpMetadataAccessWrapper;
    28 class MMTPDataProviderFramework;
    23 class MMTPDataProviderFramework;
    29 
    24 
    30 class CMmMtpDpAccessSingleton : public CObject
    25 class CMmMtpDpAccessSingleton : public CObject
    31     {
    26     {
    34      * Create Singleton instance
    29      * Create Singleton instance
    35      * need Release(), if no use
    30      * need Release(), if no use
    36      * @param aRFs RFs reference
    31      * @param aRFs RFs reference
    37      * @param aFramework framework reference
    32      * @param aFramework framework reference
    38      */
    33      */
    39     IMPORT_C static void CreateL( RFs& aRfs, 
    34     IMPORT_C static void CreateL( MMTPDataProviderFramework& aFramework );
    40         MMTPDataProviderFramework& aFramework );
       
    41     
    35     
    42     /**
    36     /**
    43      * release singleton instance
    37      * release singleton instance
    44      */
    38      */
    45     IMPORT_C static void Release();
    39     IMPORT_C static void Release();
    66     static CMmMtpDpAccessSingleton* Instance();
    60     static CMmMtpDpAccessSingleton* Instance();
    67     
    61     
    68     /*
    62     /*
    69      * 2-phase construction
    63      * 2-phase construction
    70      */
    64      */
    71     static CMmMtpDpAccessSingleton* NewL( RFs& aRfs, 
    65     static CMmMtpDpAccessSingleton* NewL( MMTPDataProviderFramework& aFramework );
    72         MMTPDataProviderFramework& aFramework );
       
    73     
    66     
    74     /*
    67     /*
    75      * 2-phase construction
    68      * 2-phase construction
    76      */
    69      */
    77     void ConstructL( RFs& aRfs, 
    70     void ConstructL( MMTPDataProviderFramework& aFramework );
    78         MMTPDataProviderFramework& aFramework );
       
    79     /*
    71     /*
    80      * destruction
    72      * destruction
    81      */
    73      */
    82     ~CMmMtpDpAccessSingleton();
    74     ~CMmMtpDpAccessSingleton();
    83     
    75     
    84 private:
    76 private:
    85     CMmMtpDpMetadataAccessWrapper* iWrapper;
    77     CMmMtpDpMetadataAccessWrapper* iWrapper;
       
    78 
    86     };
    79     };
    87 
    80 
    88 #endif // CMMMTPDPACCESSSINGLETON_H
    81 #endif // CMMMTPDPACCESSSINGLETON_H