contentstorage/casrv/cawidgetscanner/inc/cawidgetscannerplugin.h
changeset 66 32469d7d46ff
parent 60 f62f87b200ec
child 98 d2f833ab7940
equal deleted inserted replaced
61:8e5041d13c84 66:32469d7d46ff
    20 #define C_CAWIDGETSCANNERPLUGIN_H
    20 #define C_CAWIDGETSCANNERPLUGIN_H
    21 
    21 
    22 #include <casrvplugin.h>
    22 #include <casrvplugin.h>
    23 #include <f32file.h>
    23 #include <f32file.h>
    24 #include "cawidgetdescription.h"
    24 #include "cawidgetdescription.h"
    25 #include "cawidgetmmcwatcher.h"
    25 #include "cammcwatcher.h"
    26 
    26 
    27 class TPluginParams;
    27 class TPluginParams;
    28 class CCaWidgetScannerParser;
    28 class CCaWidgetScannerParser;
    29 class CCaWidgetScannerInstallNotifier;
    29 class CCaWidgetScannerInstallNotifier;
    30 class CCaWidgetStorageHandler;
    30 class CCaWidgetStorageHandler;
    31 
    31 
    32 class CCaWidgetScannerPlugin : public CCaSrvPlugin, MWidgetMmcWatcherCallback
    32 class CCaWidgetScannerPlugin : public CCaSrvPlugin, MMmcWatcherCallback
    33     {
    33     {
    34     
    34 
    35 public:
    35 public:
    36     // Constructors and destructor
    36     // Constructors and destructor
    37 
    37 
    38     /**
    38     /**
    39      * Two-phased constructor.
    39      * Two-phased constructor.
    43     static CCaWidgetScannerPlugin* NewLC( TPluginParams* aPluginParams );
    43     static CCaWidgetScannerPlugin* NewLC( TPluginParams* aPluginParams );
    44     /**
    44     /**
    45      * C++ destructor
    45      * C++ destructor
    46      */
    46      */
    47     ~CCaWidgetScannerPlugin();
    47     ~CCaWidgetScannerPlugin();
    48     
    48 
    49     /**
    49     /**
    50      * SynchronizeL
    50      * SynchronizeL
    51      */
    51      */
    52     void SynchronizeL();
    52     void SynchronizeL();
    53 
    53 
    54 private:
    54 private:
    55 //from MWidgetMmcWatcherCallback
    55 //from MWidgetMmcWatcherCallback
    56     
    56 
    57     /**
    57     /**
    58      * MmcChangeL is called when the MMC is removed or inserted.
    58      * MmcChangeL is called when the MMC is removed or inserted.
    59      */
    59      */
    60     void MmcChangeL();
    60     void MmcChangeL();
    61     
    61 
    62 private:
    62 private:
    63 
    63 
    64     /**
    64     /**
    65      * C++ default constructor.
    65      * C++ default constructor.
    66      */
    66      */
    70      * By default Symbian 2nd phase constructor is private.
    70      * By default Symbian 2nd phase constructor is private.
    71      */
    71      */
    72     void ConstructL( TPluginParams* aPluginParams );
    72     void ConstructL( TPluginParams* aPluginParams );
    73 
    73 
    74 private:
    74 private:
    75    
    75 
    76     /**
    76     /**
    77      * File session. Own
    77      * File session. Own
    78      */
    78      */
    79     RFs iFs;
    79     RFs iFs;
    80 
    80 
    90 
    90 
    91     /**
    91     /**
    92      * Content Storage Handler. Own.
    92      * Content Storage Handler. Own.
    93      */
    93      */
    94     CCaWidgetStorageHandler* iStorageHandler;
    94     CCaWidgetStorageHandler* iStorageHandler;
    95     
    95 
    96     /**
    96     /**
    97      * Mmc watcher. Own.
    97      * Mmc watcher. Own.
    98      */
    98      */
    99     CCaWidgetMmcWatcher* iMmcWatcher;
    99     CCaMmcWatcher* iMmcWatcher;
   100     
   100 
   101     };
   101     };
   102 
   102 
   103 #endif      // C_CAWIDGETSCANNERPLUGIN_H
   103 #endif      // C_CAWIDGETSCANNERPLUGIN_H