nettools/conntest/inc/QosObserver.h
changeset 0 857a3e953887
equal deleted inserted replaced
-1:000000000000 0:857a3e953887
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:  Receiver for QoS events.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __QOSOBSERVER_H__
       
    19 #define __QOSOBSERVER_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <qoslib.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MUINotify;
       
    26 
       
    27 /**
       
    28 * Class that receives QoS events. 
       
    29 */
       
    30 class CQosObserver : public CBase, public MQoSObserver
       
    31 {
       
    32 public: // new methods
       
    33     
       
    34     /**
       
    35     * Constructor
       
    36     */
       
    37     CQosObserver(MUINotify& aConsole);
       
    38 
       
    39     /**
       
    40     * Destructor
       
    41     */
       
    42     ~CQosObserver();
       
    43     
       
    44     /**
       
    45     * This method is called when QoS event has been generated.
       
    46     * Prints the event on the console.
       
    47     */
       
    48     void Event(const CQoSEventBase& aQosEvent);
       
    49         
       
    50 private:
       
    51     // Member variables
       
    52     MUINotify&            iConsole; 
       
    53 };
       
    54 
       
    55 #endif // __QOSOBSERVER_H__
       
    56