Add option to hibernate computer in Auto-Shutdown menu

This commit is contained in:
Bruno Barbieri
2014-07-06 06:13:36 -03:00
parent 273725d9dc
commit 00e09435b2
8 changed files with 59 additions and 13 deletions

View File

@@ -48,6 +48,7 @@
#endif
const qlonglong MAX_ETA = 8640000;
enum shutDownAction { NO_SHUTDOWN, SHUTDOWN_COMPUTER, SUSPEND_COMPUTER, HIBERNATE_COMPUTER };
/* Miscellaneaous functions that can be useful */
namespace misc
@@ -75,7 +76,7 @@ namespace misc
}
#ifndef DISABLE_GUI
void shutdownComputer(bool sleep=false);
void shutdownComputer(shutDownAction action=SHUTDOWN_COMPUTER);
#endif
QString parseHtmlLinks(const QString &raw_text);