contentstorage/casrv/cawidgetscanner/inc/cawidgetscannerplugin.h
changeset 103 b99b84bcd2d1
parent 66 32469d7d46ff
child 119 50e220be30d1
equal deleted inserted replaced
83:156f692b1687 103:b99b84bcd2d1
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     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:  Ecom plugin
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Ecom plugin
       
    15  *
       
    16  */
    18 
    17 
    19 #ifndef C_CAWIDGETSCANNERPLUGIN_H
    18 #ifndef C_CAWIDGETSCANNERPLUGIN_H
    20 #define C_CAWIDGETSCANNERPLUGIN_H
    19 #define C_CAWIDGETSCANNERPLUGIN_H
    21 
    20 
    22 #include <casrvplugin.h>
    21 #include <casrvplugin.h>
    23 #include <f32file.h>
    22 #include <f32file.h>
    24 #include "cawidgetdescription.h"
       
    25 #include "cammcwatcher.h"
    23 #include "cammcwatcher.h"
    26 
    24 
    27 class TPluginParams;
    25 class TPluginParams;
    28 class CCaWidgetScannerParser;
       
    29 class CCaWidgetScannerInstallNotifier;
    26 class CCaWidgetScannerInstallNotifier;
    30 class CCaWidgetStorageHandler;
    27 class CCaWidgetStorageHandler;
    31 
    28 
    32 class CCaWidgetScannerPlugin : public CCaSrvPlugin, MMmcWatcherCallback
    29 class CCaWidgetScannerPlugin : public CCaSrvPlugin, MMmcWatcherCallback
    33     {
    30     {
    45      * C++ destructor
    42      * C++ destructor
    46      */
    43      */
    47     ~CCaWidgetScannerPlugin();
    44     ~CCaWidgetScannerPlugin();
    48 
    45 
    49     /**
    46     /**
    50      * SynchronizeL
    47      * SynchronizeL - synchronizes widgets on device with database
    51      */
    48      */
    52     void SynchronizeL();
    49     void SynchronizeL();
    53 
    50 
    54 private:
    51 private:
    55 //from MWidgetMmcWatcherCallback
    52     //from MWidgetMmcWatcherCallback
    56 
    53 
    57     /**
    54     /**
    58      * MmcChangeL is called when the MMC is removed or inserted.
    55      * MmcChangeL is called when the MMC is removed or inserted.
    59      */
    56      */
    60     void MmcChangeL();
    57     void MmcChangeL();
    62 private:
    59 private:
    63 
    60 
    64     /**
    61     /**
    65      * C++ default constructor.
    62      * C++ default constructor.
    66      */
    63      */
    67     CCaWidgetScannerPlugin( );
    64     CCaWidgetScannerPlugin();
    68 
    65 
    69     /**
    66     /**
    70      * By default Symbian 2nd phase constructor is private.
    67      * By default Symbian 2nd phase constructor is private.
    71      */
    68      */
    72     void ConstructL( TPluginParams* aPluginParams );
    69     void ConstructL( TPluginParams* aPluginParams );
    82      * Sis installation notifier. Own
    79      * Sis installation notifier. Own
    83      */
    80      */
    84     CCaWidgetScannerInstallNotifier* iInstallNotifier;
    81     CCaWidgetScannerInstallNotifier* iInstallNotifier;
    85 
    82 
    86     /**
    83     /**
    87      * Pointer to a parser object. Own
       
    88      */
       
    89     CCaWidgetScannerParser* iParser;
       
    90 
       
    91     /**
       
    92      * Content Storage Handler. Own.
    84      * Content Storage Handler. Own.
    93      */
    85      */
    94     CCaWidgetStorageHandler* iStorageHandler;
    86     CCaWidgetStorageHandler* iStorageHandler;
    95 
    87 
    96     /**
    88     /**