Home · All Namespaces · All Classes
Public Slots | Signals | Public Member Functions

ScreenLockBusinessLogic Class Reference

#include <screenlockbusinesslogic.h>

Collaboration diagram for ScreenLockBusinessLogic:
Collaboration graph
[legend]

List of all members.

Public Slots

void unlockScreen ()
 Hides the screen lock window and calls the MCE's unlock callback function.

Signals

void screenIsLocked (bool locked)
 Emitted when the screen lock state changes.

Public Member Functions

 ScreenLockBusinessLogic (QObject *parent=NULL)
virtual ~ScreenLockBusinessLogic ()
int tklock_open (const QString &service, const QString &path, const QString &interface, const QString &method, uint mode, bool silent, bool flicker)
int tklock_close (bool silent)
bool isScreenLocked () const

Detailed Description

The screen lock business logic is responsible for showing and hiding the screen lock window and the event eater window when necessary.


Constructor & Destructor Documentation

ScreenLockBusinessLogic::ScreenLockBusinessLogic ( QObject *  parent = NULL  ) 

Constructs a new screen lock business logic.

Parameters:
parent the parent QObject for the logic
ScreenLockBusinessLogic::~ScreenLockBusinessLogic (  )  [virtual]

Destroys the screen lock business logic.


Member Function Documentation

bool ScreenLockBusinessLogic::isScreenLocked (  )  const

Retuns the screen lock state.

Returns:
true if the screen is locked, false otherwise
void ScreenLockBusinessLogic::screenIsLocked ( bool  locked  )  [signal]

Emitted when the screen lock state changes.

int ScreenLockBusinessLogic::tklock_close ( bool  silent  ) 

Hides the screen lock.

Parameters:
silent Whether to show notifications or not (deprecated).
int ScreenLockBusinessLogic::tklock_open ( const QString &  service,
const QString &  path,
const QString &  interface,
const QString &  method,
uint  mode,
bool  silent,
bool  flicker 
)

Shows the screen lock window or the event eater window.

Parameters:
service DBus service to call when unlock is performed.
path DBus path to call when unlock is performed.
interface DBus interface to call when unlock is performed.
method DBus method to call when unlock is performed.
mode The ScreenLockBusinessLogicAdaptor::TkLockMode opcode.
silent Whether to show a notification or not (deprecated)
flicker Deprecated/not used
void ScreenLockBusinessLogic::unlockScreen (  )  [slot]

Hides the screen lock window and calls the MCE's unlock callback function.


The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Tue Aug 30 2011 16:38:13
Doxygen 1.7.1
MeeGo Touch