wvuing/IMPSServiceSettingsUI/SharedDataSrc/MIMPSSystemNotifier.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Notifier interface for system events
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MIMPSSYSTEMNOTIFIER_H
       
    19 #define __MIMPSSYSTEMNOTIFIER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  System events handler
       
    30 *
       
    31 *  @lib WVServiceSettingsUi.dll
       
    32 *  @since 2.6
       
    33 */
       
    34 NONSHARABLE_CLASS( MIMPSSystemNotifier )
       
    35     {
       
    36 public: // New functions
       
    37 
       
    38     /**
       
    39     * Subscribes to listen for set of a key, which to notifier is bound
       
    40     * @param aKey       Keyword of which changes are to be observed.
       
    41     * @return error code
       
    42     */
       
    43     virtual TInt Subscribe() = 0;
       
    44 
       
    45     /**
       
    46     * Unsubscribes a request to listen for change of a key, which to notifier is bound
       
    47     * @param aKey       Keyword of which changes are to be observed.
       
    48     * @return error code
       
    49     */
       
    50     virtual void UnSubscribe() = 0;
       
    51 
       
    52     /**
       
    53     * Gets the integer value corresponding the key,  which to notifier is bound
       
    54     * @param aKey keyword
       
    55     * @param aValue integer value associated with the keyword
       
    56     * @return error code
       
    57     */
       
    58     virtual TInt GetIntKey( TInt& aValue ) = 0;
       
    59 
       
    60     /**
       
    61     * Destructor
       
    62     */
       
    63     virtual ~MIMPSSystemNotifier() {};
       
    64 
       
    65     };
       
    66 
       
    67 #endif      // __MIMPSSYSTEMNOTIFIER_H
       
    68 
       
    69 // End of File