instantmessagesalert/inc/cimalertnotifierimpl.h
branchRCL_3
changeset 29 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
28:3104fc151679 29:9a48e301e94b
       
     1 /*
       
     2 * Copyright (c) 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:  Publish and Subscribe implementation of notify services
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CIMALERTNOTIFIERIMPL_H
       
    20 #define CIMALERTNOTIFIERIMPL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "mimalertnotifierinterface.h"
       
    24 #include "mimalertpropertynotificationobserver.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MIMAlertNotifierKeyObserver;
       
    28 class CIMAlertPropertyObserver;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  Class for notifying key changes, reading and changing the values of 
       
    33 *  Pub&Sub keys.
       
    34 *  
       
    35 *  @since Series 60 Platform 3.0
       
    36 */
       
    37 class CIMAlertNotifierImpl : public CBase,
       
    38 						public MIMAlertNotifierInterface,
       
    39 						public MIMAlertPropertyNotificationObserver
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         */
       
    46         static CIMAlertNotifierImpl* NewL( MIMAlertNotifierKeyObserver* aObserver );
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CIMAlertNotifierImpl();
       
    52 
       
    53     public: // Functions from base classes
       
    54 
       
    55         TInt SetInt( TNotifyKey aKey, TInt aValue );
       
    56 		TInt GetInt( TNotifyKey aKey, TInt& aValue );
       
    57 		TInt ListenKeyChanges( TNotifyKey aKey );		
       
    58 
       
    59     private: // From MIMAlertPropertyNotificationObserver
       
    60     
       
    61         /**
       
    62         * @see MIMAlertPropertyNotificationObserver
       
    63         */        
       
    64         void HandlePropertyNotificationEventL( TUid aCategory, TUint aKey );
       
    65         
       
    66     private:
       
    67 
       
    68         /**
       
    69         * C++ default constructor.
       
    70         */
       
    71         CIMAlertNotifierImpl( MIMAlertNotifierKeyObserver* aObserver );
       
    72 
       
    73       
       
    74     private:    // Data
       
    75     
       
    76         MIMAlertNotifierKeyObserver* iObserver;
       
    77 		CIMAlertPropertyObserver* iPropWatcher;
       
    78 	};
       
    79 
       
    80 #endif      // CIMALERTNOTIFIERIMPL_H 
       
    81             
       
    82 // End of File