usbmgmt/usbmgrtest/ObexClassController/ObexUsbClassController/ClassControllerServerSession/inc/classContServerSession.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef CLASSCONTSERVERSESSION_H
       
    24 #define CLASSCONTSERVERSESSION_H
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <obex.h>
       
    28 #include <obexserver.h>
       
    29 #include "obexInitiator.h"
       
    30 
       
    31 class CClassContServer;
       
    32 
       
    33 
       
    34 
       
    35 /**
       
    36  * CClassContServerSession is a CSession2 derived class.
       
    37  * This class is implemented on the server side of a Client
       
    38  * and Server configuration, it has member functions that exist
       
    39  * to process requests from the client. 
       
    40  *
       
    41  */
       
    42 NONSHARABLE_CLASS(CClassContServerSession) : public CSession2
       
    43 	{
       
    44 	public:
       
    45 		static CClassContServerSession* NewL(CClassContServer& aServer);
       
    46 		~CClassContServerSession();
       
    47 
       
    48 	private:
       
    49 		CClassContServerSession(CClassContServer& aServer);
       
    50 		void ConstructL();
       
    51 		
       
    52 		// from CSession2
       
    53 		void ServiceL(const RMessage2& aMessage);
       
    54 	
       
    55 		void ForwardMessageL(const RMessage2& aMessage);
       
    56 		void StartServiceL();
       
    57 		void StopService();
       
    58 		
       
    59 		CClassContServer& iServer;
       
    60 		CObexInitiator* iObexInitiator;
       
    61 		TBool iBadMessage;
       
    62 	};
       
    63 
       
    64 
       
    65 #endif //CLASSCONTSERVERSESSION_H
       
    66 
       
    67 
       
    68 
       
    69