javaextensions/centralrepository/inc/centrepfunctionserver.h
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
child 84 0553e2305d00
--- a/javaextensions/centralrepository/inc/centrepfunctionserver.h	Wed Sep 15 12:05:25 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,84 +0,0 @@
-/*
-* Copyright (c) 2010 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:
-*
-*/
-
-
-#ifndef CENTREPFUNCTIONSERVER_H
-#define CENTREPFUNCTIONSERVER_H
-
-#include "monitor.h"
-#include "functionserver.h"
-#include "legacyeventserverwrapper.h"
-
-namespace java
-{
-namespace centrep
-{
-
-/**
- * If we have to execute some operation that essentially
- * needs ActiveScheduler, then we use this CentrepFunctionServer.
- *
- * We must however be careful not to make callbacks through FunctionServer.
- * Reason: If in callback, app calls another method that needs FunctionServer
- * to execute, we enter a deadlock.
- */
-
-class CentrepFunctionServer: public java::util::FunctionServer,
-        public LegacyEventServerWrapper
-{
-public:
-
-    CentrepFunctionServer() :
-            java::util::FunctionServer("JavaCentrepFunctionServer")
-    {
-        JELOG2(EJavaCentrep);
-
-        //Creates a new thread and starts active scheduler
-        //This results in call to doServerSideInit()
-        createServerToNewThread();
-        mServer = reinterpret_cast<java::util::FunctionServer*>(this);
-    }
-
-    ~CentrepFunctionServer()
-    {
-        JELOG2(EJavaCentrep);
-        stopServer();
-    }
-
-    java::util::FunctionServer* getFunctionServer() const
-    {
-        JELOG2(EJavaCentrep);
-        return mServer;
-    }
-
-private:
-
-    void doServerSideInit()
-    {
-        JELOG2(EJavaCentrep);
-        FunctionServer::doServerSideInit();
-    }
-
-private:
-
-    java::util::FunctionServer* mServer;
-};
-
-} //end namespace centrep
-} //end namespace java
-
-#endif // CENTREPFUNCTIONSERVER_H