class RUsbWatcher : public RSessionBase |
RUsbWatcher class
This class offers access to UsbWatcher server to make personality related operations.
Public Member Functions | |
---|---|
RUsbWatcher() | |
~RUsbWatcher() | |
IMPORT_C void | CancelSetPersonality() |
IMPORT_C void | CancelSetPreviousPersonality() |
IMPORT_C TInt | Connect() |
IMPORT_C void | SetPersonality(TRequestStatus &, TInt, TBool, TBool) |
IMPORT_C void | SetPreviousPersonality(TRequestStatus &) |
IMPORT_C void | SetPreviousPersonality() |
IMPORT_C void | SetPreviousPersonalityOnDisconnect() |
IMPORT_C TVersion | Version() |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C void | CancelSetPersonality | ( | ) |
Cancel pending set personality request.
IMPORT_C void | CancelSetPreviousPersonality | ( | ) |
This service cancels pending SetPreviousPersonality() request.
IMPORT_C void | SetPersonality | ( | TRequestStatus & | aStatus, |
TInt | aId, | |||
TBool | aForce = EFalse, | |||
TBool | aNonBlocking = EFalse | |||
) |
Set and select personality Personality is saved to central repository and if there is an active USB connection also current personality is changed to new one.
the session is closed
or aForce is set EFalse in subsequent SetPersonality
or CancelSetPersonality is called for outstanding SetPersonality
or SetPreviousPersonality or SetPreviousPersonalitySync is called
or SetPreviousPersonalityOnDisconnect is called. The Ask on connection is suppressed until all the sessions using aForce have been closed or have been resetted the suppression with one of the function calls listed above. Do not leave session open without resetting aForce, if Ask on connection needs to work normally.
Note that if KErrDiskFull is returned in aStatus, while the cable is connected, the personality was loaded, but the new personality was not stored to Central Repository.
TRequestStatus & aStatus | The completion status of the request. |
TInt aId | Identifies personality to set. |
TBool aForce = EFalse | If this parameter has value ETrue, USB mode is not asked from the user. |
TBool aNonBlocking = EFalse | If ETrue, no personality switch blocking queries are shown. |
IMPORT_C void | SetPreviousPersonality | ( | TRequestStatus & | aStatus | ) |
Set to previous personality. Central repository key is updated with the previous one and if USB is connected current personality is replaced with previous one.
TRequestStatus & aStatus | The completion status of the request. |
IMPORT_C void | SetPreviousPersonality | ( | ) |
This service is same as previous one. Except that this one is comleted before it is ready.
IMPORT_C void | SetPreviousPersonalityOnDisconnect | ( | ) |
This service will set the previous personality on cable disconnect. If cable is disconnected already when this service is used, nothing will happen.
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.