servicediscoveryandcontrol/pnp/inc/ccontrolchannelbase.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 #ifndef __CCONTROLCHANNELBASE_H_
       
    18 #define __CCONTROLCHANNELBASE_H_
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class TControlMessage;
       
    23 /**
       
    24  This class acts as a base class which technology specific control channel need to implement
       
    25  @publishedPartner
       
    26  @prototype
       
    27  */
       
    28 NONSHARABLE_CLASS (CControlChannelBase) : public CBase
       
    29 	{
       
    30 protected:
       
    31 	CControlChannelBase();
       
    32 public:
       
    33 	~CControlChannelBase();
       
    34 public:
       
    35 	/*
       
    36       Recv is used for receiving the data through control channel.
       
    37 	  @param aMessage msg wrapped as TControlMessage 
       
    38       @param aStatus request status
       
    39      */  
       
    40 	virtual void Recv ( TControlMessage& aMessage, TRequestStatus& aStatus ) = 0;
       
    41 	 /*
       
    42       Send is used for sending the data through control channel.
       
    43 	  @param aMessage msg wrapped as TControlMessage 
       
    44       @param aStatus request status
       
    45      */  
       
    46 	virtual void Send ( TControlMessage& aMessage, TRequestStatus& aStatus ) = 0;
       
    47       /*
       
    48        Cancels the asynchronous recv used for receiving the data through control channel.
       
    49 	  */  
       
    50 	virtual void CancelRecv () = 0;
       
    51 	  /*
       
    52        Cancels the asynchronous send used for sending the data through control channel.
       
    53 	  */  
       
    54 	virtual void CancelSend () = 0;
       
    55 
       
    56 	};
       
    57 	
       
    58 inline CControlChannelBase::CControlChannelBase()	
       
    59 	{
       
    60 	
       
    61 	}
       
    62 	
       
    63 inline CControlChannelBase::~CControlChannelBase()
       
    64 	{
       
    65 	
       
    66 	}	
       
    67 
       
    68 #endif //__CCONTROLCHANNELBASE_H__