usbmgmt/usbmgr/host/functiondrivers/ms/msmm/server/src/subcommandbase.cpp
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
     1 /*
     1 /*
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    24 #include "msmm_internal_def.h"
    24 #include "msmm_internal_def.h"
    25 #include "msmmserver.h"
    25 #include "msmmserver.h"
    26 #include "eventhandler.h"
    26 #include "eventhandler.h"
    27 
    27 
    28 #include <usb/usblogger.h>
    28 #include <usb/usblogger.h>
    29 #include "OstTraceDefinitions.h"
    29 
    30 #ifdef OST_TRACE_COMPILER_IN_USE
    30 #ifdef __FLOG_ACTIVE
    31 #include "subcommandbaseTraces.h"
    31 _LIT8(KLogComponent, "UsbHostMsmmServer");
    32 #endif
    32 #endif
    33 
       
    34 
       
    35 
    33 
    36 THostMsSubCommandParam::THostMsSubCommandParam(MMsmmSrvProxy& aServer, 
    34 THostMsSubCommandParam::THostMsSubCommandParam(MMsmmSrvProxy& aServer, 
    37         MUsbMsEventHandler& aHandler, 
    35         MUsbMsEventHandler& aHandler, 
    38         MUsbMsSubCommandCreator& aCreator, 
    36         MUsbMsSubCommandCreator& aCreator, 
    39         TDeviceEvent& aEvent) :
    37         TDeviceEvent& aEvent) :
    40     iServer(aServer),
    38     iServer(aServer),
    41     iHandler(aHandler),
    39     iHandler(aHandler),
    42     iCreator(aCreator),
    40     iCreator(aCreator),
    43     iEvent(aEvent)
    41     iEvent(aEvent)
    44     {
    42     {
    45     OstTraceFunctionEntry0( THOSTMSSUBCOMMANDPARAM_THOSTMSSUBCOMMANDPARAM_CONS_ENTRY );
    43     LOG_FUNC
    46     }
    44     }
    47 
    45 
    48 TSubCommandBase::TSubCommandBase(THostMsSubCommandParam& aParameter):
    46 TSubCommandBase::TSubCommandBase(THostMsSubCommandParam& aParameter):
    49 iServer(aParameter.iServer),
    47 iServer(aParameter.iServer),
    50 iHandler(aParameter.iHandler),
    48 iHandler(aParameter.iHandler),
    51 iCreator(aParameter.iCreator),
    49 iCreator(aParameter.iCreator),
    52 iEvent(aParameter.iEvent),
    50 iEvent(aParameter.iEvent),
    53 iIsExecuted(EFalse),
    51 iIsExecuted(EFalse),
    54 iIsKeyCommand(ETrue)
    52 iIsKeyCommand(ETrue)
    55     {
    53     {
    56     OstTraceFunctionEntry0( TSUBCOMMANDBASE_TSUBCOMMANDBASE_CONS_ENTRY );
    54     LOG_FUNC
    57     }
    55     }
    58 
    56 
    59 void TSubCommandBase::ExecuteL()
    57 void TSubCommandBase::ExecuteL()
    60     {
    58     {
    61     iIsExecuted = ETrue;
    59     iIsExecuted = ETrue;
    62     DoExecuteL();
    60     DoExecuteL();
    63     }
    61     }
    64 
    62 
    65 void TSubCommandBase::AsyncCmdCompleteL()
    63 void TSubCommandBase::AsyncCmdCompleteL()
    66     {
    64     {
    67     OstTraceFunctionEntry0( TSUBCOMMANDBASE_ASYNCCMDCOMPLETEL_ENTRY );
    65     LOG_FUNC
    68     
       
    69     DoAsyncCmdCompleteL();
    66     DoAsyncCmdCompleteL();
    70     OstTraceFunctionExit0( TSUBCOMMANDBASE_ASYNCCMDCOMPLETEL_EXIT );
       
    71     }
    67     }
    72 
    68 
    73 void TSubCommandBase::CancelAsyncCmd()
    69 void TSubCommandBase::CancelAsyncCmd()
    74     {
    70     {
    75     OstTraceFunctionEntry0( TSUBCOMMANDBASE_CANCELASYNCCMD_ENTRY );
    71     LOG_FUNC
    76     
       
    77     DoCancelAsyncCmd();
    72     DoCancelAsyncCmd();
    78     OstTraceFunctionExit0( TSUBCOMMANDBASE_CANCELASYNCCMD_EXIT );
       
    79     }
    73     }
    80 
    74 
    81 void TSubCommandBase::DoAsyncCmdCompleteL()
    75 void TSubCommandBase::DoAsyncCmdCompleteL()
    82     {
    76     {
    83     OstTraceFunctionEntry0( TSUBCOMMANDBASE_DOASYNCCMDCOMPLETEL_ENTRY );
    77     LOG_FUNC
    84     
       
    85     // Empty implementation
    78     // Empty implementation
    86     OstTraceFunctionExit0( TSUBCOMMANDBASE_DOASYNCCMDCOMPLETEL_EXIT );
       
    87     }
    79     }
    88 
    80 
    89 void TSubCommandBase::DoCancelAsyncCmd()
    81 void TSubCommandBase::DoCancelAsyncCmd()
    90     {
    82     {
    91     OstTraceFunctionEntry0( TSUBCOMMANDBASE_DOCANCELASYNCCMD_ENTRY );
    83     LOG_FUNC
    92     
       
    93     // Empty implementation
    84     // Empty implementation
    94     OstTraceFunctionExit0( TSUBCOMMANDBASE_DOCANCELASYNCCMD_EXIT );
       
    95     }
    85     }
    96 
    86 
    97 // End of file
    87 // End of file