usbengines/usbotgwatcher/inc/cusbstate.h
branchRCL_3
changeset 7 ff9df6630274
parent 6 a15c582fbf97
equal deleted inserted replaced
6:a15c582fbf97 7:ff9df6630274
     1 /*
     1 /*
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008 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".
    18 #ifndef C_USBSTATE_H
    18 #ifndef C_USBSTATE_H
    19 #define C_USBSTATE_H
    19 #define C_USBSTATE_H
    20 
    20 
    21 #include <e32base.h>
    21 #include <e32base.h>
    22 #include <usbotgdefs.h>
    22 #include <usbotgdefs.h>
    23 
    23 #include <usbman.h>
    24 #include "cusbotgwatcher.h"
    24 
    25 
    25 #include "definitions.h"
    26 #ifndef STIF
    26 
    27 #include "cusbidpinobserver.h"
    27 class CUsbOtgWatcher;
    28 #include "cusbvbusobserver.h"
       
    29 #include "cusbotgstateobserver.h"
       
    30 #include "cusbbusactivityobserver.h"
       
    31 #include "cusbhosteventnotificationobserver.h"
       
    32 #include "cusbmessagenotificationobserver.h"
       
    33 #else
       
    34 #include "mockcusbidpinobserver.h"
       
    35 #include "mockcusbvbusobserver.h"
       
    36 #include "mockcusbotgstateobserver.h"
       
    37 #include "mockcusbbusactivityobserver.h"
       
    38 #include "mockcusbhosteventnotificationobserver.h"
       
    39 #include "mockcusbmessagenotificationobserver.h"
       
    40 #endif
       
    41 
    28 
    42 /**
    29 /**
    43  *  Base class for usb states
    30  *  Base class for usb states
    44  *  Defines default implementation for events
    31  *  Defines default implementation for events
    45  *  Class is C, due to there are possible future extentions
    32  *  Class is C, due to there are possible future extentions
    74     /**
    61     /**
    75      * Destruction
    62      * Destruction
    76      */
    63      */
    77     virtual ~CUsbState();
    64     virtual ~CUsbState();
    78 
    65 
    79     /**
       
    80      * Two-phased constructor.
       
    81      * @param aWatcher owner
       
    82      */
       
    83     //static CUsbState* NewL(CUsbOtgWatcher& aWatcher);
       
    84 
       
    85 protected:
    66 protected:
    86     /**
    67     /**
    87      * default constructor is protected to be able to be inherited be child classes
    68      * default constructor is protected to be able to be inherited be child classes
    88      * @param aOwner owner of the state
    69      * @param aOwner owner of the state
    89      */
    70      */