dosservices/commondsy/inc/CDSYFactory.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Declaration of CCDSYFactory class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CDSYFACTORY_H
       
    20 #define CDSYFACTORY_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <dosfactorybase.h>
       
    25 
       
    26 // CONSTANTS
       
    27 // MACROS
       
    28 // DATA TYPES
       
    29 // FUNCTION PROTOTYPES
       
    30 // FORWARD DECLARATIONS
       
    31 class CCDSYController;
       
    32 class CCDSYDOSServerRequestManager;
       
    33 class CCDSYEventManager;
       
    34 class MCDSYServiceLogicFactory;
       
    35 
       
    36 /**
       
    37 *  CCDSYFactory
       
    38 *  This class implements the CCDSYFactory, which is the interface class for the DOS server plug-in factory.
       
    39 */
       
    40 NONSHARABLE_CLASS( CCDSYFactory ): public CDosFactoryBase
       
    41     {
       
    42     public:
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CCDSYFactory();
       
    47 
       
    48         /**
       
    49         * Creates a new instance of CCDSYFactory.
       
    50         * @return CCDSYFactory* Pointer to an instance of CCDSYFactory.
       
    51         */
       
    52         static CCDSYFactory* NewL();
       
    53 
       
    54     protected:              // From Dos plug-in API
       
    55 
       
    56         /**
       
    57         * The function returns an object derived from CDosExtensionBase, 
       
    58         * which implements the pure virtual functions defined in MDosExtensionBaseDSY to DOS Server.
       
    59         * @return CDosExtensionBase*    Pointer to the plugin.
       
    60         */
       
    61         CDosExtensionBase* NewExtensionServiceL();
       
    62 
       
    63 
       
    64     private:
       
    65         /**
       
    66         * Constructor.
       
    67         */
       
    68         CCDSYFactory();
       
    69 
       
    70         /**
       
    71         * 2nd phase constructor.
       
    72         * @return void 
       
    73         */
       
    74         void ConstructL();
       
    75 
       
    76         /**
       
    77         * Loads the LDSY module.
       
    78         * @return void 
       
    79         */
       
    80         void LoadLDSYModuleL();
       
    81 
       
    82     private:
       
    83         CCDSYController* iCDSYController;
       
    84         CCDSYDOSServerRequestManager* iCDSYDOSServerRequestManager;
       
    85         CCDSYEventManager* iCDSYEventManager;
       
    86         MCDSYServiceLogicFactory* iDSYServiceLogicFactory;
       
    87         RLibrary iLDSYLibrary;
       
    88     };
       
    89 
       
    90 #endif //#ifndef CDSYFACTORY_H
       
    91 
       
    92 //  End of File