dosservices/commondsy/inc/CDSYFactory.h
changeset 0 4e1aa6a622a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dosservices/commondsy/inc/CDSYFactory.h	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,92 @@
+/*
+* 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