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