Back to index

lightdm  1.3.2
Functions
power.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

G_BEGIN_DECLS gboolean lightdm_get_can_suspend (void)
 lightdm_get_can_suspend:
gboolean lightdm_suspend (GError **error)
 lightdm_suspend: : return location for a #GError, or NULL
gboolean lightdm_get_can_hibernate (void)
 lightdm_get_can_hibernate:
gboolean lightdm_hibernate (GError **error)
 lightdm_hibernate: : return location for a #GError, or NULL
gboolean lightdm_get_can_restart (void)
 lightdm_get_can_restart:
gboolean lightdm_restart (GError **error)
 lightdm_restart: : return location for a #GError, or NULL
gboolean lightdm_get_can_shutdown (void)
 lightdm_get_can_shutdown:
gboolean lightdm_shutdown (GError **error)
 lightdm_shutdown: : return location for a #GError, or NULL

Function Documentation

gboolean lightdm_get_can_hibernate ( void  )

lightdm_get_can_hibernate:

Checks if is authorized to do a system hibernate.

Return value: #TRUE if can hibernate the system

Definition at line 94 of file power.c.

{
    return upower_call_function ("HibernateAllowed", FALSE, NULL);
}

Here is the call graph for this function:

gboolean lightdm_get_can_restart ( void  )

lightdm_get_can_restart:

Checks if is authorized to do a system restart.

Return value: #TRUE if can restart the system

Definition at line 159 of file power.c.

{
    return ck_call_function ("CanRestart", FALSE, NULL);
}

Here is the call graph for this function:

gboolean lightdm_get_can_shutdown ( void  )

lightdm_get_can_shutdown:

Checks if is authorized to do a system shutdown.

Return value: #TRUE if can shutdown the system

Definition at line 186 of file power.c.

{
    return ck_call_function ("CanStop", FALSE, NULL);
}

Here is the call graph for this function:

G_BEGIN_DECLS gboolean lightdm_get_can_suspend ( void  )

lightdm_get_can_suspend:

Checks if authorized to do a system suspend.

Return value: #TRUE if can suspend the system

Definition at line 67 of file power.c.

{
    return upower_call_function ("SuspendAllowed", FALSE, NULL);
}

Here is the call graph for this function:

gboolean lightdm_hibernate ( GError **  error)

lightdm_hibernate: : return location for a #GError, or NULL

Triggers a system hibernate.

Return value: #TRUE if hibernate initiated.

Definition at line 108 of file power.c.

{
    return upower_call_function ("Hibernate", TRUE, error);
}

Here is the call graph for this function:

gboolean lightdm_restart ( GError **  error)

lightdm_restart: : return location for a #GError, or NULL

Triggers a system restart.

Return value: #TRUE if restart initiated.

Definition at line 173 of file power.c.

{
    return ck_call_function ("Restart", TRUE, error);
}

Here is the call graph for this function:

gboolean lightdm_shutdown ( GError **  error)

lightdm_shutdown: : return location for a #GError, or NULL

Triggers a system shutdown.

Return value: #TRUE if shutdown initiated.

Definition at line 200 of file power.c.

{
    return ck_call_function ("Stop", TRUE, error);
}

Here is the call graph for this function:

gboolean lightdm_suspend ( GError **  error)

lightdm_suspend: : return location for a #GError, or NULL

Triggers a system suspend.

Return value: #TRUE if suspend initiated.

Definition at line 81 of file power.c.

{
    return upower_call_function ("Suspend", TRUE, error);
}

Here is the call graph for this function: