contentpublishingsrv/contentharvester/contentharvesterserver/inc/contentharvesterengine.h
changeset 93 82b66994846c
parent 92 782e3408c2ab
child 94 dbb8300717f7
equal deleted inserted replaced
92:782e3408c2ab 93:82b66994846c
     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:  Engine for cp active data server
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CONTENTHARVESTERENGINE_H
       
    20 #define C_CONTENTHARVESTERENGINE_H
       
    21 
       
    22 #include "contentharvesterplugin.h"
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 //class CContentHarvesterPlugin;
       
    26 class MLiwInterface;
       
    27 class CLiwServiceHandler;
       
    28 class CPluginValidator;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * The engine that discovers and manages all installed harvesting plugins.
       
    34  *
       
    35  *  @lib contentharvesterserver.lib
       
    36  *  @since S60 v3.1
       
    37  */
       
    38 class CContentHarvesterEngine : public CBase
       
    39     {
       
    40 
       
    41 public:
       
    42     // New methods
       
    43 
       
    44     /**
       
    45      * Create a CContentHarvesterEngine object using two phase construction,
       
    46      * and return a pointer to the created object.
       
    47      * @return pointer to new session
       
    48      */
       
    49     static CContentHarvesterEngine* NewL();
       
    50 
       
    51     /**
       
    52      * Create a CContentHarvesterEngine object using two phase construction,
       
    53      * and return a pointer to the created object.
       
    54      * @return pointer to new session
       
    55      */
       
    56     static CContentHarvesterEngine* NewLC();
       
    57 
       
    58     /**
       
    59      * Destroy the object and release all memory objects.
       
    60      */
       
    61     virtual ~CContentHarvesterEngine();
       
    62 
       
    63     /**
       
    64      * Pass update request to all registered plugins.
       
    65      */
       
    66     void Update();
       
    67 
       
    68 private:
       
    69     // New methods
       
    70 
       
    71     /**
       
    72      * Perform the first phase of two phase construction.
       
    73      */
       
    74     CContentHarvesterEngine();
       
    75 
       
    76     /**
       
    77      * Perform the second phase construction of a CContentHarvesterEngine object.
       
    78      */
       
    79     void ConstructL();
       
    80 
       
    81 private:
       
    82 
       
    83     /**
       
    84      * handler to CPS
       
    85      * Own
       
    86      */
       
    87     CLiwServiceHandler* iServiceHandler;
       
    88 
       
    89     /**
       
    90      * interface to CPS
       
    91      * Own
       
    92      */
       
    93     MLiwInterface * iCPSInterface;
       
    94 
       
    95     /**
       
    96      * Plugins
       
    97      * Own
       
    98      */
       
    99     CPluginValidator* iPluginManager;
       
   100     
       
   101     };
       
   102 
       
   103 #endif // C_CONTENTHARVESTERENGINE_H