sysstatemgmt/systemstatemgr/cmn/inc/ssmpropertymonitor.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __SSMPROPERTYMONITOR_H_
       
    17 #define __SSMPROPERTYMONITOR_H_
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <ssm/ssmsystemwideproperty.h>
       
    21 
       
    22 /**
       
    23  @internalComponent
       
    24  @released 
       
    25  */
       
    26 NONSHARABLE_CLASS(CSsmPropertyMonitor) : public CActive
       
    27 	{
       
    28 public:
       
    29 	static CSsmPropertyMonitor* NewL(CSsmSystemWideProperty& aObserver, TUint aSwpKey, TUid aProcessSid);
       
    30 	~CSsmPropertyMonitor();
       
    31 	
       
    32 	TInt GetValue(TSsmSwp& aSwp) const;
       
    33 	
       
    34 	//from CActive
       
    35 	void DoCancel();
       
    36 	void RunL();
       
    37 	TInt RunError(TInt aError);
       
    38 	
       
    39 private:
       
    40 	CSsmPropertyMonitor(CSsmSystemWideProperty& aObserver);
       
    41 	void ConstructL(TUint aSwpKey, TUid aProcessSid);
       
    42 	
       
    43 private:
       
    44 	CSsmSystemWideProperty& iObserver;
       
    45 	RSsmSystemWideProperty iSwpRemote;
       
    46 	TSsmSwp iSwpLocal;
       
    47 	TBool iDefined;
       
    48 	};
       
    49 
       
    50 #endif
       
    51