harvester/common/inc/mpropertyobserver.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2008-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:  Interface class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPROPERTYWATCHER_H
       
    20 #define MPROPERTYWATCHER_H
       
    21 
       
    22 // SYSTEM INCLUDE
       
    23 #include <e32base.h>
       
    24 
       
    25 // CLASS DECLARATION 
       
    26 class MKeyObserver
       
    27 	{
       
    28 public:
       
    29 
       
    30 
       
    31 	/**
       
    32 	 * Factory method NotifyKeyAndStatusL
       
    33 	 * @param aKeyValue - observed key's value.
       
    34 	 * @param aPropertyCategory observed key's category.
       
    35 	 * @param aKey The P&S key to be watched.
       
    36 	 */
       
    37 	virtual void NotifyKeyL( 
       
    38 					const TInt aKeyValue,
       
    39 					const TUid aPropertyCategory,
       
    40 					const TUint aKey ) = 0;
       
    41 		};
       
    42 	
       
    43 // CLASS DECLARATION
       
    44 class MKeyAndStatusObserver
       
    45 	{
       
    46 public:
       
    47 
       
    48     /**
       
    49      * Factory method NotifyKeyAndStatusL
       
    50      * @param aKeyValue - observed key's value.
       
    51      * @param aStatus - reference to iStatus.
       
    52      * @param aPropertyCategory observed key's category.
       
    53      * @param aKey he P&S key to be watched.
       
    54      */
       
    55 	virtual void NotifyKeyAndStatusL( 
       
    56 				const TInt aKeyValue,
       
    57 				TRequestStatus& aStatus,
       
    58 				const TUid aPropertyCategory,
       
    59 				const TUint aKey ) = 0;
       
    60 	};
       
    61 	
       
    62 #endif // MPROPERTYWATCHER_H