sysstatemgmt/ssmcustcmds/ssmsystemcmds/src/ssmpskeyobserverexactvalue.cpp
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 * Implementation of CSsmPsKeyObserverExactValue class.
       
    16 *
       
    17 */
       
    18 
       
    19 #include "ssmpskeyobserverexactvalue.h"
       
    20 #include "trace.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CSsmPsKeyObserverExactValue::CSsmPsKeyObserverExactValue
       
    26 //
       
    27 // ---------------------------------------------------------------------------
       
    28 //
       
    29 CSsmPsKeyObserverExactValue::CSsmPsKeyObserverExactValue(
       
    30     TUid aCategory,
       
    31     TUint aKey,
       
    32     TInt aTargetValue )
       
    33   : CSsmPsKeyObserver( aCategory, aKey ),
       
    34     iTargetValue( aTargetValue )
       
    35     {
       
    36     FUNC_LOG;
       
    37     }
       
    38 
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // CSsmPsKeyObserverExactValue::~CSsmPsKeyObserverExactValue
       
    42 //
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 CSsmPsKeyObserverExactValue::~CSsmPsKeyObserverExactValue()
       
    46     {
       
    47     FUNC_LOG;
       
    48     }
       
    49 
       
    50 
       
    51 // ---------------------------------------------------------------------------
       
    52 // CSsmPsKeyObserverExactValue::IsMatch
       
    53 //
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 TBool CSsmPsKeyObserverExactValue::IsMatch( const TInt aKeyValue ) const
       
    57     {
       
    58     FUNC_LOG;
       
    59 
       
    60     return aKeyValue == iTargetValue;
       
    61     }