contentpublishingsrv/contentharvester/factorysettingsplugin/inc/chfactorysettingsplugin.h
changeset 73 4bc7b118b3df
parent 66 32469d7d46ff
child 80 397d00875918
child 81 5ef31a21fdd5
equal deleted inserted replaced
66:32469d7d46ff 73:4bc7b118b3df
     1 /*
       
     2 * Copyright (c) 2007 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:  Ecom plugin
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CCHFACTORYSETTINGS_H
       
    20 #define C_CCHFACTORYSETTINGS_H
       
    21 
       
    22 #include <contentharvesterplugin.h>
       
    23 #include <f32file.h>
       
    24 #include <badesca.h>
       
    25 
       
    26 class MLiwInterface;
       
    27 class CCHFactorySettingsInstallNotifier;
       
    28 class CFileMan;
       
    29 class CCHDbStateHandler;
       
    30 class CCHFactorySettingsDOMParser; // mw
       
    31 
       
    32 class CCHFactorySettings : public CContentHarvesterPlugin
       
    33 
       
    34     {
       
    35 public:
       
    36     // Constructors and destructor
       
    37 
       
    38     /**
       
    39      * Two-phased constructor.
       
    40      * @param aStorage instance of AS storage DB
       
    41      */
       
    42     static CCHFactorySettings* NewL( MLiwInterface* aInterface );
       
    43     static CCHFactorySettings* NewLC( MLiwInterface* aInterface );
       
    44     /**
       
    45      * C++ destructor
       
    46      */
       
    47     ~CCHFactorySettings();
       
    48 private:
       
    49 
       
    50     /**
       
    51      * C++ default constructor.
       
    52      */
       
    53     CCHFactorySettings();
       
    54 
       
    55     /**
       
    56      * By default Symbian 2nd phase constructor is private.
       
    57      */
       
    58     void ConstructL( MLiwInterface* aInterface );
       
    59     /**
       
    60      * CreateStorageL.
       
    61      */
       
    62     void CreateStorageL();
       
    63     /**
       
    64      * AddNewL.
       
    65      */
       
    66     void AddNewL();
       
    67     /**
       
    68      * UnInstallL.
       
    69      */
       
    70     void UnInstallL();
       
    71     /**
       
    72      * CheckDrivesL.
       
    73      */
       
    74     void CheckDrivesL();
       
    75 
       
    76 public:
       
    77     // from CADatServerPlugin
       
    78     /**
       
    79      * This function updates all information in CPS related to FactorySettings
       
    80      */
       
    81     void UpdateL();
       
    82 
       
    83 private:
       
    84     /**
       
    85      * Data base state handler
       
    86      */
       
    87 	CCHDbStateHandler* iDBStateHandler;
       
    88 
       
    89     /**
       
    90      * Sis installation notifier
       
    91      */
       
    92     CCHFactorySettingsInstallNotifier* iInstallNotifier;
       
    93 
       
    94     /**
       
    95      *List containing xml files that should be installed from all drives
       
    96      */
       
    97     CDesCArrayFlat* iFileNewList;
       
    98 
       
    99     /**
       
   100      * File server session
       
   101      */
       
   102     RFs iFs;
       
   103 
       
   104     /**
       
   105      * File manager used for files copying
       
   106      */
       
   107     CFileMan* iFileMan;
       
   108 
       
   109     /**
       
   110      * An interface to Content Publisher Service
       
   111      */
       
   112     MLiwInterface* iCPSInterface;
       
   113 
       
   114     /**
       
   115      * Pointer to a parser object
       
   116      */
       
   117     CCHFactorySettingsDOMParser* iParser; //
       
   118 
       
   119     /**
       
   120      * Descriptor containing a path to a directory with files to parse
       
   121      */
       
   122     RBuf iFilePath;
       
   123 
       
   124     };
       
   125 
       
   126 #endif      // C_CCHFACTORYSETTINGS_H