Back to index

lightdm  1.3.2
Classes | Public Slots | Public Member Functions | Properties | Private Attributes
QLightDM::PowerInterface Class Reference

#include <power.h>

Collaboration diagram for QLightDM::PowerInterface:
Collaboration graph
[legend]

List of all members.

Classes

class  PowerInterfacePrivate

Public Slots

void suspend ()
void hibernate ()
void shutdown ()
void restart ()

Public Member Functions

CONSTANT PowerInterface (QObject *parent)
virtual ~PowerInterface ()
bool canSuspend ()
bool canHibernate ()
bool canShutdown ()
bool canRestart ()

Properties

bool canSuspend
bool canHibernate
bool canShutdown
bool canRestart

Private Attributes

PowerInterfacePrivate *const d

Detailed Description

Definition at line 20 of file power.h.


Constructor & Destructor Documentation

PowerInterface::PowerInterface ( QObject *  parent)

Definition at line 39 of file power.cpp.

    : QObject(parent),
      d(new PowerInterfacePrivate)
{
}

Definition at line 45 of file power.cpp.

{
    delete d;
}

Member Function Documentation

void PowerInterface::hibernate ( ) [slot]

Definition at line 77 of file power.cpp.

{
    d->powerManagementInterface->call("Hibernate");
}
void PowerInterface::restart ( ) [slot]

Definition at line 109 of file power.cpp.

{
    d->consoleKitInterface->call("Restart");
}
void PowerInterface::shutdown ( ) [slot]

Definition at line 93 of file power.cpp.

{
    d->consoleKitInterface->call("Stop");
}
void PowerInterface::suspend ( ) [slot]

Definition at line 61 of file power.cpp.

{
    d->powerManagementInterface->call("Suspend");
}

Member Data Documentation

Definition at line 44 of file power.h.


Property Documentation

Definition at line 25 of file power.h.

Definition at line 27 of file power.h.

Definition at line 26 of file power.h.

Definition at line 24 of file power.h.


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