Provides information and actions on device locks. More...
List of all members.
Detailed Description
Provides information and actions on device locks.
- Scope:
- Nokia Meego
Member Enumeration Documentation
Things that can be locked.
- Enumerator:
-
Device |
Device lock.
- Deprecated:
- The device lock functionality is deprecated. Please use the devicelock interface.
|
TouchAndKeyboard |
Touchscreen/keypad lock
|
Lock states
- Enumerator:
-
Unlocked |
Unlocked
|
Locked |
Locked
|
Unknown |
Unknown
|
Constructor & Destructor Documentation
MeeGo::QmLocks::QmLocks |
( |
QObject * |
parent = 0 |
) |
|
MeeGo::QmLocks::~QmLocks |
( |
|
) |
|
Member Function Documentation
void MeeGo::QmLocks::connectNotify |
( |
const char * |
signal |
) |
[protected, virtual] |
void MeeGo::QmLocks::disconnectNotify |
( |
const char * |
signal |
) |
[protected, virtual] |
int MeeGo::QmLocks::getDeviceAutolockTime |
( |
|
) |
|
Gets the device autolock timeout.
- State:
- Deprecated
- Returns:
- Timeout in seconds, value 0 means that autolock is not acticated, -1 is error
Gets the current lock state. Note: the method blocks until the lock state has been retrieved. For a non-blocking query, please see getStateAsync().
- Parameters:
-
|
what |
Which lock state to request |
- Returns:
- Current lock state for
what
Gets the current lock state. The method is non-blocking, so it initially returns the lock state QmLocks::Unknown. When the lock state has been retrieved, the stateChanged signal is emitted.
- Parameters:
-
|
what |
Which lock state to request |
- Returns:
- Current lock state for
what
bool MeeGo::QmLocks::setDeviceAutolockTime |
( |
int |
seconds |
) |
|
Sets the device autolock timeout. Device is automatically locked after the specified amount of inactivity.
- Credential:
- mce::DeviceLockControl Resource token required to set the device lock timeout.
- State:
- Deprecated
- Parameters:
-
|
seconds |
Number of seconds of inactivity after which the device is automatically locked. Value <=0 disables autolock. |
- Returns:
- True on success, false otherwise
Sets the current lock state. Note that this interface does not allow to unlock device.
- Credential:
- mce::TKLockControl Resource token required to set the touchscreen/keypad lock state.
- Parameters:
-
|
what |
Which lock state to set |
|
how |
Set to which state |
- Returns:
- True if the lock state was requested, false otherwise
Sent when some device lock state has changed.
- Parameters:
-
|
what |
Which lock state was changed |
|
how |
Which state the lock was changed to |
(C) 2009-2011 Nokia Corporation
LGPL Lesser General Public License |
MeeGo 1.2 Harmattan API
|