usbengines/usbotgwatcher/inc/cusbwarningnotifier.h
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:  Usb warning notifier implementation
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef C_USBWARNINGNOTIFIER_H
       
    19 #define C_USBWARNINGNOTIFIER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "cusbnotenotifier.h"
       
    24 #include "cusbtimer.h"
       
    25 
       
    26 /**
       
    27  *  Class implements functionality of the notifier which wait for answer from user
       
    28  *	Class does not provide method to get response from the user
       
    29  */
       
    30 NONSHARABLE_CLASS( CUsbWarningNotifier ) : public CUsbNoteNotifier
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Two-phased constructor.
       
    36      * @param aNotifier RNotifier API
       
    37      * @param aNotifManager Owner of the class, will destroy the object when needed
       
    38      * @param aNotifId Id of the notifier
       
    39      * @return Pointer to the new instance of CUsbWarningNotifier
       
    40      */
       
    41     static CUsbWarningNotifier* NewL(RNotifier& aNotifier,
       
    42             CUsbNotifManager& aNotifManager, TUint aNotifId);
       
    43 
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47     virtual ~CUsbWarningNotifier();
       
    48 
       
    49 private:
       
    50 
       
    51     /**
       
    52      * Default constructor
       
    53      * @param aNotifier RNotifier API
       
    54      * @param aNotifManager Owner of the class, will destroy the object when needed
       
    55      * @param aNotifId Id of the notifier
       
    56      */
       
    57     CUsbWarningNotifier(RNotifier& aNotifier,
       
    58             CUsbNotifManager& aNotifManager, TUint aNotifId);
       
    59 
       
    60     /**
       
    61      * 2nd phase construction
       
    62      */
       
    63     void ConstructL();
       
    64 
       
    65 private:
       
    66     // Data
       
    67 
       
    68     };
       
    69 
       
    70 #endif //  C_USBWARNINGNOTIFIER_H