sysstatemgmt/ssmcustcmds/ssmsystemcmds/inc/ssmpskeyobserverexactvalue.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     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:
       
    15 * Declaration of CSsmPsKeyObserverExactValue class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SSMPSKEYOBSERVEREXACTVALUE_H
       
    20 #define SSMPSKEYOBSERVEREXACTVALUE_H
       
    21 
       
    22 #include "ssmpskeyobserver.h"
       
    23 
       
    24 /**
       
    25 *  An active object which waits until a P&S key value changes to a predefined
       
    26 *  value and then signals a request status.
       
    27 */
       
    28 NONSHARABLE_CLASS( CSsmPsKeyObserverExactValue ) : public CSsmPsKeyObserver
       
    29     {
       
    30 
       
    31 public:
       
    32 
       
    33     /**
       
    34     * First phase constructor.
       
    35     *
       
    36     * @param aCategory The UID that identifies the property category.
       
    37     * @param aKey The property sub-key, i.e. the key that identifies the
       
    38     *             specific property within the category.
       
    39     * @param aTargetValue The target value which the property should reach.
       
    40     */
       
    41     CSsmPsKeyObserverExactValue(
       
    42         TUid aCategory,
       
    43         TUint aKey,
       
    44         TInt aTargetValue );
       
    45 
       
    46     /**
       
    47     * Destructor.
       
    48     */
       
    49     virtual ~CSsmPsKeyObserverExactValue();
       
    50 
       
    51 private:
       
    52 
       
    53     virtual TBool IsMatch( const TInt aKeyValue ) const;
       
    54 
       
    55 private: // data
       
    56 
       
    57     /** The target value which the property should reach. */
       
    58     TInt iTargetValue;
       
    59 
       
    60     };
       
    61 
       
    62 #endif // SSMPSKEYOBSERVEREXACTVALUE_H