usbmgmt/usbmgr/host/functiondrivers/ms/msmm/server/inc/msmmsession.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2008-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 CMSMMSESSION_H
       
    24 #define CMSMMSESSION_H
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <e32msgqueue.h>
       
    28 #include "msmm_internal_def.h"
       
    29 
       
    30 class CMsmmServer;
       
    31 class CMsmmEngine;
       
    32 class CDeviceEventQueue;
       
    33 class THostMsErrData;
       
    34 
       
    35 NONSHARABLE_CLASS(CMsmmSession) : public CSession2
       
    36     {
       
    37 public: // Construction and Destruction
       
    38     ~CMsmmSession();
       
    39     static CMsmmSession* NewL(CMsmmServer& aServer, 
       
    40             CDeviceEventQueue& anEventQueue);
       
    41 
       
    42 public: // CMsmmSession
       
    43     void ServiceL (const RMessage2& aMessage);
       
    44     void ServiceError(const RMessage2& aMessage, TInt aError);
       
    45 
       
    46 private:
       
    47     CMsmmSession(CMsmmServer& aServer,
       
    48             CDeviceEventQueue& anEventQueue);
       
    49     void ConstructL();
       
    50 
       
    51     void AddUsbMsInterfaceL(const RMessage2& aMessage);
       
    52     void RemoveUsbMsDeviceL(const RMessage2& aMessage);
       
    53 
       
    54 private: // data members
       
    55     CMsmmServer& iServer;
       
    56     CMsmmEngine& iEngine;
       
    57     CDeviceEventQueue& iEventQueue;
       
    58     TPckgBuf<TUSBMSDeviceDescription> iDevicePkg;
       
    59     THostMsErrData* iErrData; // The data nodes try, Owned
       
    60     TInt iInterfaceNumber;
       
    61     TInt32 iInterfaceToken;
       
    62     TInt iDeviceID;
       
    63     };
       
    64 
       
    65 #endif /*CMSMMSESSION_H*/