CDiscoverer::CSwiChangeNotifier Class Reference
class CDiscoverer::CSwiChangeNotifier : public CActive
|
The notification object which uses P&S to monitor SWI KSAUidSoftwareInstallKey for changes. When SWI is present in the device/ROM this attribute publishes the current state of a software install or uninstall. When its RunL method is called and depending on the install/uninstall state it notifies its owning
CDiscoverer
class object to re-scan removable drives.
Inherits from
-
CDiscoverer::CSwiChangeNotifier
Constructor & Destructor Documentation
CSwiChangeNotifier(CDiscoverer &)
CSwiChangeNotifier
|
(
|
CDiscoverer
&
|
aDiscoverer
|
)
|
[private]
|
Intended Usage : Standardised default c'tor Error Condition : None
-
Since
-
9.2
-
Pre-condition
-
None
-
Post-condition
-
CSwiChangeNotifier
is fully constructed
Parameters
CDiscoverer
& aDiscoverer
|
A reference to its owning class instance.
|
~CSwiChangeNotifier()
~CSwiChangeNotifier
|
(
|
)
|
[virtual]
|
Intended Usage : Standard default d'tor Error Condition : None
-
Since
-
9.2
-
Pre-condition
-
CSwiChangeNotifier
is fully constructed.
-
Post-condition
-
CSwiChangeNotifier
is totally destroyed
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Intended Usage : Standardised 2nd, (Initialisation) phase of two phase construction. Error Condition : Leaves with error code : usually KErrNoMemory.
-
leave
-
KErrNoMemory.
-
Since
-
9.2
-
Pre-condition
-
CSwiChangeNotifier
is fully constructed.
-
Post-condition
-
CSwiChangeNotifier
is fully initialised.
DoCancel()
void
|
DoCancel
|
(
|
)
|
[private, virtual]
|
Intended Usage : The cancel action called by
CActive::Cancel()
. Error Condition : None
-
Since
-
9.2
-
Pre-condition
-
CSwiChangeNotifier
is fully constructed.
-
Post-condition
-
CSwiChangeNotifier
notifications are cancelled and it is no longer active on the current scheduler.
NewL(CDiscoverer &)
Intended Usage : Standardised safe construction which leaves nothing on the cleanup stack. Error Condition : Not enough memory available.
-
leave
-
KErrNoMemory
-
Since
-
9.2
-
Pre-condition
-
None
-
Post-condition
-
CSwiChangeNotifier
is fully constructed, and initialised.
Parameters
CDiscoverer
& aDiscoverer
|
A reference to the owning CDiscoverer
|
RunError(TInt)
TInt
|
RunError
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
Intended Usage : Called by the notifier RunL leaving.
-
Since
-
9.2
-
Pre-condition
-
CSwiChangeNotifier
is fully constructed.
-
Post-condition
-
CSwiChangeNotifier
is returned to a sensible active state.
Parameters
TInt
aError
|
The error code that the RunL left with.
|
RunL()
void
|
RunL
|
(
|
)
|
[private, virtual]
|
Intended Usage : When the object activates, this is method is called and notifies the
CDiscoverer
to re-scan the removable drives.. Error Condition : Not enough memory available to complete the scan.
-
leave
-
KErrNoMemory
-
Since
-
9.2
-
Pre-condition
-
CSwiChangeNotifier
is fully constructed.
-
Post-condition
-
CSwiChangeNotifier
notifications are subscribed and plugins on removable drives have been rediscovered..
Subscribe()
Intended Usage : Subscribes with P&S for change notifications for the SWI KSAUidSoftwareInstallKey property Error Condition : None
-
Since
-
9.2
-
Pre-condition
-
CSwiChangeNotifier
is fully constructed.
-
Post-condition
-
CSwiChangeNotifier
is active on the current scheduler.
Member Data Documentation
CDiscoverer & iDiscoverer
A reference to its owning class instance
RProperty
iProperty
Handle allowing access to P&S properties
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.