imservices/ossprotocoladaptation/inc/cossprotocolplugin.h
branchRCL_3
changeset 14 7797b2f86d2b
parent 13 b6f2a363adf7
child 16 cfe5eb8bb9ca
equal deleted inserted replaced
13:b6f2a363adf7 14:7797b2f86d2b
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  adaptation for open source
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __COSSPROTOCOLPLUGIN_H__
       
    20 #define __COSSPROTOCOLPLUGIN_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <ximpprotocolpluginbase.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 class MXIMPServiceInfo;
       
    29 
       
    30 class MXIMPContextClientInfo;
       
    31 
       
    32 class COSSProtocolConnection;
       
    33 
       
    34 class CProcessLauncher;
       
    35 
       
    36 
       
    37 
       
    38 
       
    39 /**
       
    40  * OSS protocol Plugin
       
    41  *
       
    42  * OSS plugin is ECOM plugin and shall be loaded by PrFw.
       
    43  * OSS has one or many connections.
       
    44  */
       
    45 
       
    46 class COSSProtocolPlugin : public CXIMPProtocolPluginBase
       
    47 	{
       
    48 
       
    49 	public:
       
    50 
       
    51 		static COSSProtocolPlugin* NewL();
       
    52 		static COSSProtocolPlugin* NewLC();
       
    53 
       
    54 		~COSSProtocolPlugin();
       
    55 
       
    56 	private:
       
    57 
       
    58 		COSSProtocolPlugin();
       
    59 		void ConstructL();
       
    60 
       
    61 	public: // From MXIMPProtocolPlugin
       
    62 	
       
    63 		/**
       
    64 		 * @see MXIMPProtocolPlugin
       
    65 		 */
       
    66 		void PrimeHost ( MXIMPProtocolPluginHost& aHost );
       
    67         /**
       
    68 		 * @see MXIMPProtocolPlugin
       
    69 		 */
       
    70 		MXIMPProtocolConnection& AcquireConnectionL (
       
    71 		    const MXIMPServiceInfo& aServiceInfo,
       
    72 		    const MXIMPContextClientInfo& aClientCtxInfo );
       
    73 		/**
       
    74 		 * @see MXIMPProtocolPlugin
       
    75 		 */
       
    76 		void ReleaseConnection (
       
    77 		    MXIMPProtocolConnection& aConnection );
       
    78 
       
    79 	public: // from MXIMPBase
       
    80         /**
       
    81 		 * @see MXIMPBase
       
    82 		 */
       
    83 		TAny* GetInterface (
       
    84 		    TInt32 aInterfaceId,
       
    85 		    TIfGetOps  aOptions );
       
    86         /**
       
    87 		 * @see MXIMPBase
       
    88 		 */
       
    89 		const TAny* GetInterface (
       
    90 		    TInt32 aInterfaceId,
       
    91 		    TIfGetOps  aOptions ) const;
       
    92         /**
       
    93 		 * @see MXIMPBase
       
    94 		 */
       
    95 		TInt32 GetInterfaceId() const;
       
    96 
       
    97 	private: // Data
       
    98 		/**
       
    99 		* Prime host
       
   100 		* Not own.
       
   101 		*/
       
   102 		MXIMPProtocolPluginHost* iHost;
       
   103 		/**
       
   104 		* protocol connections
       
   105 		* Own.
       
   106 		*/
       
   107 		RPointerArray< COSSProtocolConnection > iConnections;
       
   108 
       
   109 		/**
       
   110 		* process launcher.launches isolation server 
       
   111 		* Own.
       
   112 		*/		
       
   113 		CProcessLauncher *iIsoServerLauncher;
       
   114 
       
   115 
       
   116 	};
       
   117 
       
   118 #endif // __COSSPROTOCOLPLUGIN_H__