--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/imservices/ossprotocoladaptation/inc/cossprotocolplugin.h Thu Dec 17 08:54:49 2009 +0200
@@ -0,0 +1,118 @@
+/*
+* Copyright (c) 2007-2008 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: adaptation for open source
+*
+*/
+
+
+#ifndef __COSSPROTOCOLPLUGIN_H__
+#define __COSSPROTOCOLPLUGIN_H__
+
+// INCLUDES
+#include <e32base.h>
+#include <ximpprotocolpluginbase.h>
+
+// FORWARD DECLARATIONS
+
+class MXIMPServiceInfo;
+
+class MXIMPContextClientInfo;
+
+class COSSProtocolConnection;
+
+class CProcessLauncher;
+
+
+
+
+/**
+ * OSS protocol Plugin
+ *
+ * OSS plugin is ECOM plugin and shall be loaded by PrFw.
+ * OSS has one or many connections.
+ */
+
+class COSSProtocolPlugin : public CXIMPProtocolPluginBase
+ {
+
+ public:
+
+ static COSSProtocolPlugin* NewL();
+ static COSSProtocolPlugin* NewLC();
+
+ ~COSSProtocolPlugin();
+
+ private:
+
+ COSSProtocolPlugin();
+ void ConstructL();
+
+ public: // From MXIMPProtocolPlugin
+
+ /**
+ * @see MXIMPProtocolPlugin
+ */
+ void PrimeHost ( MXIMPProtocolPluginHost& aHost );
+ /**
+ * @see MXIMPProtocolPlugin
+ */
+ MXIMPProtocolConnection& AcquireConnectionL (
+ const MXIMPServiceInfo& aServiceInfo,
+ const MXIMPContextClientInfo& aClientCtxInfo );
+ /**
+ * @see MXIMPProtocolPlugin
+ */
+ void ReleaseConnection (
+ MXIMPProtocolConnection& aConnection );
+
+ public: // from MXIMPBase
+ /**
+ * @see MXIMPBase
+ */
+ TAny* GetInterface (
+ TInt32 aInterfaceId,
+ TIfGetOps aOptions );
+ /**
+ * @see MXIMPBase
+ */
+ const TAny* GetInterface (
+ TInt32 aInterfaceId,
+ TIfGetOps aOptions ) const;
+ /**
+ * @see MXIMPBase
+ */
+ TInt32 GetInterfaceId() const;
+
+ private: // Data
+ /**
+ * Prime host
+ * Not own.
+ */
+ MXIMPProtocolPluginHost* iHost;
+ /**
+ * protocol connections
+ * Own.
+ */
+ RPointerArray< COSSProtocolConnection > iConnections;
+
+ /**
+ * process launcher.launches isolation server
+ * Own.
+ */
+ CProcessLauncher *iIsoServerLauncher;
+
+
+ };
+
+#endif // __COSSPROTOCOLPLUGIN_H__