summaryrefslogtreecommitdiff
path: root/liblightdm-qt/power.cpp
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-07-19 17:13:30 +1000
committerRobert Ancell <robert.ancell@canonical.com>2011-07-19 17:13:30 +1000
commit1b738d5600157cc9f3b841af02d8433ecb3e2bb8 (patch)
treee44b14b78c492188ee7486f3e76288fc8e2eb3d5 /liblightdm-qt/power.cpp
parent3efdcddfc8f6080f72e2f4f719bff0b753430e9b (diff)
downloadlightdm-1b738d5600157cc9f3b841af02d8433ecb3e2bb8.tar.gz
Fix Qt namespacing issue
Diffstat (limited to 'liblightdm-qt/power.cpp')
-rw-r--r--liblightdm-qt/power.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/liblightdm-qt/power.cpp b/liblightdm-qt/power.cpp
index 1feafcbe..57f9fa38 100644
--- a/liblightdm-qt/power.cpp
+++ b/liblightdm-qt/power.cpp
@@ -37,7 +37,7 @@ static bool setupConsoleKitInterface ()
return consoleKitInterface != NULL;
}
-bool canSuspend()
+bool QLightDM::canSuspend()
{
if (!setupPowerManagementInterface())
return false;
@@ -49,13 +49,13 @@ bool canSuspend()
return false;
}
-void suspend()
+void QLightDM::suspend()
{
if (setupPowerManagementInterface())
powerManagementInterface->call("Suspend");
}
-bool canHibernate()
+bool QLightDM::canHibernate()
{
if (!setupPowerManagementInterface())
return false;
@@ -67,13 +67,13 @@ bool canHibernate()
return false;
}
-void hibernate()
+void QLightDM::hibernate()
{
if (setupConsoleKitInterface())
powerManagementInterface->call("Hibernate");
}
-bool canShutdown()
+bool QLightDM::canShutdown()
{
if (!setupConsoleKitInterface())
return false;
@@ -85,13 +85,13 @@ bool canShutdown()
return false;
}
-void shutdown()
+void QLightDM::shutdown()
{
if (setupConsoleKitInterface())
consoleKitInterface->call("stop");
}
-bool canRestart()
+bool QLightDM::canRestart()
{
if (!setupConsoleKitInterface())
return false;
@@ -103,7 +103,7 @@ bool canRestart()
return false;
}
-void restart()
+void QLightDM::restart()
{
if (setupConsoleKitInterface())
consoleKitInterface->call("Restart");