os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/server/cusbotgserver.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 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 the License "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 
    18 /**
    19  @file
    20  @internalTechnology
    21 */
    22 
    23 #ifndef CUSBOTGSERVER_H
    24 #define CUSBOTGSERVER_H
    25 
    26 
    27 class CUsbOtg;
    28 
    29 // Receives client requests
    30 class CUsbOtgServer : public CServer2
    31 	{
    32 public:
    33     friend class CUsbOtgSession;
    34 
    35 	static CUsbOtgServer* NewLC();
    36 	virtual ~CUsbOtgServer();
    37 
    38 protected:
    39 	CUsbOtgServer();
    40 	void ConstructL();
    41 
    42 public:
    43     void AddSession();
    44     void RemoveSession();
    45 
    46 	virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
    47 	TInt RunError(TInt aError);
    48 
    49 private:
    50     CUsbOtg* iUsbOtg;
    51 
    52 	TInt iSessionCount;
    53 	};
    54 
    55 
    56 
    57 #endif // CUSBOTGSERVER_H