uifw/AvKon/AknTransitionUtils/inc/aknpsobserver.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Transition utilities.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AKN_PS_OBSERVER_H
       
    20 #define AKN_PS_OBSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 #include "akntransitionutils.h"
       
    25 
       
    26 const TUid KTestCategoryUid = { 0x10281f87 };
       
    27 const TUint KTfxClientKey =  0x12341234;
       
    28 const TUint KTfxServerKey = 0x12341235;
       
    29 const TUint KTfxServerCompFsKey = 0x12341236;
       
    30 
       
    31 //----------------------------------------------------------------------------
       
    32 //----------------------------------------------------------------------------
       
    33 //
       
    34 NONSHARABLE_CLASS( CAknPsObserver ) : public CActive
       
    35     {
       
    36 public:
       
    37     static CAknPsObserver* NewL( MAknPsObserver* aClient, const TUid aCategory, 
       
    38                                  const TUint aKey );
       
    39     static CAknPsObserver* New( MAknPsObserver* aClient, const TUid aCategory, 
       
    40                                 const TUint aKey );
       
    41     ~CAknPsObserver();
       
    42     
       
    43     // From CActive
       
    44     virtual void DoCancel();
       
    45     virtual void RunL();
       
    46     
       
    47     TInt GetCurrentValue( TInt& aValue );
       
    48     
       
    49 private:
       
    50     CAknPsObserver( MAknPsObserver* aClient, const TUid aCategory, 
       
    51                     const TUint aKey);
       
    52     void Construct( const TUid aCategory, const TUint aKey );
       
    53 
       
    54 private: // data
       
    55     RProperty iProperty;
       
    56     MAknPsObserver* iClient;
       
    57     TUid iCategory;
       
    58     TUint iKey;
       
    59     };
       
    60 
       
    61 #endif // AKN_PS_OBSERVER_H