internetradio2.0/activeidleenginc/iractiveidleengpubsubnotifyhandler.h
changeset 14 896e9dbc5f19
parent 12 608f67c22514
child 15 065198191975
equal deleted inserted replaced
12:608f67c22514 14:896e9dbc5f19
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IRACTIVEIDLEENGPUBSUBNOTIFYHANDLER_H
       
    20 #define IRACTIVEIDLEENGPUBSUBNOTIFYHANDLER_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 /**
       
    25 * Observer interface for CIRActiveIdleEngPubSub.
       
    26 * The observer is notified whenever the listened key is changed. If there was an error in getting the new value of the key,
       
    27 * the observer will be notified of it as well.
       
    28 */
       
    29 NONSHARABLE_CLASS(MIRActiveIdleEngPubSubNotifyHandler)
       
    30     {
       
    31     public:
       
    32 
       
    33         /**
       
    34         * Invoked when the listened key is changed.
       
    35         * @param    aCategory   The category of the key that changed.
       
    36         * @param    aKey        The key that changed.
       
    37         * @param    aValue      The new value of the key.
       
    38         */
       
    39     virtual void HandlePropertyChangeL( const TUid& aCategory, TUint aKey,
       
    40     	 TInt aValue ) = 0;
       
    41         
       
    42         /**
       
    43         * Invoked when the listened key is changed.
       
    44         * @param    aCategory   The category of the key that changed.
       
    45         * @param    aKey        The key that changed.
       
    46         * @param    aText       The new value of the key.
       
    47         */
       
    48     virtual void HandlePropertyChangeL( const TUid& aCategory, TUint aKey,
       
    49     	 const TDesC8& aText ) = 0;
       
    50         
       
    51         /**
       
    52         * Invoked when an error occurred while retrieving the new value of the key.
       
    53         * @param    aCategory   The category of the key that changed.
       
    54         * @param    aKey        The key that changed.
       
    55         * @param    aError      The error code.
       
    56         */
       
    57     virtual void HandlePropertyChangeErrorL( const TUid& aCategory,
       
    58      TUint aKey, TInt aError ) = 0;
       
    59     };
       
    60 
       
    61 #endif//IR_ACTIVEIDLEENGPUBSUBNOTIFYHANDLER