dosservices/commondsy/inc/CDSYFactory.h
author Pat Downey <patd@symbian.org>
Tue, 18 May 2010 16:57:04 +0100
branchRCL_3
changeset 25 8b6c1c3d207b
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Merge fix for bug 2631 (included in recent delivery) and workaround for bug 2620.

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Declaration of CCDSYFactory class
*
*/


#ifndef CDSYFACTORY_H
#define CDSYFACTORY_H

// INCLUDES
#include <e32base.h>
#include <dosfactorybase.h>

// CONSTANTS
// MACROS
// DATA TYPES
// FUNCTION PROTOTYPES
// FORWARD DECLARATIONS
class CCDSYController;
class CCDSYDOSServerRequestManager;
class CCDSYEventManager;
class MCDSYServiceLogicFactory;

/**
*  CCDSYFactory
*  This class implements the CCDSYFactory, which is the interface class for the DOS server plug-in factory.
*/
NONSHARABLE_CLASS( CCDSYFactory ): public CDosFactoryBase
    {
    public:
        /**
        * Destructor.
        */
        ~CCDSYFactory();

        /**
        * Creates a new instance of CCDSYFactory.
        * @return CCDSYFactory* Pointer to an instance of CCDSYFactory.
        */
        static CCDSYFactory* NewL();

    protected:              // From Dos plug-in API

        /**
        * The function returns an object derived from CDosExtensionBase, 
        * which implements the pure virtual functions defined in MDosExtensionBaseDSY to DOS Server.
        * @return CDosExtensionBase*    Pointer to the plugin.
        */
        CDosExtensionBase* NewExtensionServiceL();


    private:
        /**
        * Constructor.
        */
        CCDSYFactory();

        /**
        * 2nd phase constructor.
        * @return void 
        */
        void ConstructL();

        /**
        * Loads the LDSY module.
        * @return void 
        */
        void LoadLDSYModuleL();

    private:
        CCDSYController* iCDSYController;
        CCDSYDOSServerRequestManager* iCDSYDOSServerRequestManager;
        CCDSYEventManager* iCDSYEventManager;
        MCDSYServiceLogicFactory* iDSYServiceLogicFactory;
        RLibrary iLDSYLibrary;
    };

#endif //#ifndef CDSYFACTORY_H

//  End of File