usbengines/usbotgwatcher/src/cusbstatehosthandle.cpp
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     1 /*
       
     2  * Copyright (c) 2008 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:  Implementation
       
    15  *
       
    16  */
       
    17 
       
    18 #include "cusbstatehosthandle.h"
       
    19 
       
    20 #include "errors.h"
       
    21 #include "debug.h"
       
    22 #include "panic.h"
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // 
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CUsbStateHostHandle::CUsbStateHostHandle(CUsbOtgWatcher& aWatcher) :
       
    29     CUsbStateHostABase(aWatcher)
       
    30     {
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // 
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 void CUsbStateHostHandle::ConstructL()
       
    38     {
       
    39     LOG_FUNC
       
    40 
       
    41     CUsbStateHostABase::ConstructL();
       
    42 
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // 
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 CUsbStateHostHandle::~CUsbStateHostHandle()
       
    50     {
       
    51     LOG_FUNC
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // 
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 void CUsbStateHostHandle::JustAdvancedToThisStateL()
       
    59     {
       
    60     LOG_FUNC
       
    61 
       
    62     // first do general things
       
    63     CUsbStateHostABase::JustAdvancedToThisStateL();
       
    64 
       
    65     // then, do specific things
       
    66     DoHandleL();
       
    67 
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // 
       
    72 // ---------------------------------------------------------------------------
       
    73 //
       
    74 void CUsbStateHostHandle::SetWhat(TInt aWhat)
       
    75     {
       
    76     iWhat = aWhat;
       
    77     }
       
    78 
       
    79 // From message notification observer
       
    80 // ---------------------------------------------------------------------------
       
    81 // 
       
    82 // ---------------------------------------------------------------------------
       
    83 //
       
    84 void CUsbStateHostHandle::MessageNotificationReceivedL(TInt aMessage)
       
    85     {
       
    86     LOG_FUNC
       
    87     LOG1( "Unhandled message aMessage = %d" , aMessage);
       
    88 
       
    89     }
       
    90 
       
    91 // ---------------------------------------------------------------------------
       
    92 // 
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 void CUsbStateHostHandle::SessionRequestedL()
       
    96     {
       
    97     LOG_FUNC
       
    98     }