commsfwsupport/commselements/serverden/inc/sd_rootserverchannelhandler.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     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  @file
       
    18  @internalComponent
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __SYMBIAN_DEN_ROOTSERVERCHANNELHANDLER_H__
       
    23 #define __SYMBIAN_DEN_ROOTSERVERCHANNELHANDLER_H__
       
    24 
       
    25 #include <cfutil.h>
       
    26 //#include "sd_thread.h"
       
    27 
       
    28 namespace Den
       
    29 /** Namespace for the Server Den
       
    30 @internalComponent
       
    31 @released
       
    32 */
       
    33 {
       
    34 
       
    35 /**
       
    36 @class CWorkerRootServChannelHandler
       
    37 The adapter responsible for communicating with the Root Server over the channel given with the
       
    38 CommsFW::TCFModuleInfo structure delivered via the parameter to the main thread function.
       
    39 */
       
    40 NONSHARABLE_CLASS(CWorkerRootServChannelHandler) : public CommsFW::CCFModuleChannelHandler
       
    41 /**
       
    42 @internalComponent
       
    43 */
       
    44 	{
       
    45 	typedef CommsFW::CCFModuleChannelHandler inherited;
       
    46 public:
       
    47 	IMPORT_C static CWorkerRootServChannelHandler* NewL(CommsFW::RCFChannel::TMsgQueues aRxQueues,
       
    48 		CommsFW::RCFChannel::TMsgQueues aTxQueues, CCommonWorkerThread* aWorkerThread);
       
    49 	IMPORT_C TInt Send(const CommsFW::TCFMessage& aMessage);
       
    50 private:
       
    51 	CWorkerRootServChannelHandler(CCommonWorkerThread* aWorkerThread);
       
    52 	virtual void CFMessageShutdown(const CommsFW::TCFShutdownMsg& aMessage);
       
    53 	virtual void CFMessageDiscover(const CommsFW::TCFDiscoverMsg& aMessage);
       
    54 	virtual void CFMessageBind(const CommsFW::TCFBindMsg& aMessage);
       
    55 	virtual void CFMessageUnbind(const CommsFW::TCFUnbindMsg& aMessage);
       
    56 	virtual void CFMessageForward(const CommsFW::TCFForwardMsg& aMessage);
       
    57 private:
       
    58 	/** Pointer back to the worker thread owning this instance. */
       
    59 	CCommonWorkerThread* iWorkerThread;
       
    60 	};
       
    61 
       
    62 } // Den
       
    63 
       
    64 #endif // __SYMBIAN_DEN_ROOTSERVERCHANNELHANDLER_H__
       
    65 
       
    66