usbmgmt/usbmgrtest/ObexClassController/ObexUsbClassController/ObexClassController/inc/CUsbObexClassController.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 #ifndef __OBEXCLASSCONTROLLER_H__
       
    19 #define __OBEXCLASSCONTROLLER_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <cusbclasscontrollerplugin.h>
       
    23 #include "../../ClassControllerClientSession/inc/classControllerClientSession.h"
       
    24 
       
    25 class MUsbClassControllerNotify;
       
    26 
       
    27 const TInt KObexStartupPriority = 2;
       
    28 
       
    29 //Constants used in GetDescriptorInfo function
       
    30 const TInt KNumObexInterfaces = 2;
       
    31 const TInt KObexDescriptorLength = 18;
       
    32 
       
    33 NONSHARABLE_CLASS(CUsbObexClassController) : public CUsbClassControllerPlugIn
       
    34 	{
       
    35 
       
    36 	public:
       
    37 		static CUsbObexClassController* NewL(MUsbClassControllerNotify& aOwner);
       
    38 
       
    39 		virtual ~CUsbObexClassController();
       
    40 	 	// Functions derived from CActive.
       
    41 		virtual void RunL();
       
    42 		virtual void DoCancel();
       
    43 		virtual TInt RunError(TInt aError);
       
    44 
       
    45 		// Functions derived from CUsbClassControllerBase
       
    46 		virtual void Start(TRequestStatus& aStatus);
       
    47 		virtual void Stop(TRequestStatus& aStatus);
       
    48 
       
    49 		virtual void GetDescriptorInfo(TUsbDescriptor& aDescriptorInfo) const;
       
    50 
       
    51 	protected:
       
    52 		CUsbObexClassController(MUsbClassControllerNotify& aOwner);
       
    53 		void ConstructL();
       
    54 
       
    55 	private:
       
    56 		RClassControllerClient iClassContClient;
       
    57 
       
    58 	};
       
    59 
       
    60 #endif //__OBEXCLASSCONTROLLER_H__