CSsmPropertyObserver Class Reference
class CSsmPropertyObserver : public CActive
|
Provide an abstract class for observing
RProperty
value changes from the SSM Utility Server.
Constructor & Destructor Documentation
CSsmPropertyObserver(TUid, TUint)
IMPORT_C
|
CSsmPropertyObserver
|
(
|
TUid
|
aCategory,
|
|
TUint
|
aKey
|
|
)
|
|
Creates a new CSsmProperty Observer.
Parameters
TUid
aCategory
|
The category of the property to monitor.
|
TUint
aKey
|
The key of the property to monitor.
|
~CSsmPropertyObserver()
IMPORT_C
|
~CSsmPropertyObserver
|
(
|
)
|
[protected, virtual]
|
Releases any resources allocated to this object.
Member Functions Documentation
DoCancel()
IMPORT_C void
|
DoCancel
|
(
|
)
|
[protected, virtual]
|
Cancels monitoring for this property
InitializeL()
IMPORT_C void
|
InitializeL
|
(
|
)
|
[virtual]
|
Initialises this object but does not start responding to changes to the monitored property.
PropertyChangedL(TInt)
TBool
|
PropertyChangedL
|
(
|
TInt
|
aValue
|
)
|
[pure virtual]
|
Function that is called everytime the property for this observer changes.
This is also called once when the observation is first started using
StartL()
.
Note:
If EFalse is returned from this object then this object is not destroyed.
Parameters
TInt
aValue
|
The new value for the observed property.
|
Release()
IMPORT_C void
|
Release
|
(
|
)
|
[virtual]
|
Releases this object freeing any resources allocated to it.
Using this object after calling release will have undefined behaviour.
RunError(TInt)
IMPORT_C
TInt
|
RunError
|
(
|
TInt
|
aError
|
)
|
[protected, virtual]
|
RunL()
IMPORT_C void
|
RunL
|
(
|
)
|
[protected, virtual]
|
CActive::RunL
implementation to call the observer function and to re-request monitoring.
StartL()
IMPORT_C void
|
StartL
|
(
|
)
|
[virtual]
|
Starts this observer responding to the monitored property.
doRunL()
void
|
doRunL
|
(
|
)
|
[protected]
|
Internal RunL helper method
Member Data Documentation
const TUid iCategory
const
TUid
|
iCategory
|
[protected]
|
const TUint iKey
const
TUint
|
iKey
|
[protected]
|
TInt
iReserved
TInt
|
iReserved
|
[protected]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.