[PC-BSD Commits] r17728 - pcbsd-projects/PCDM
svn at pcbsd.org
svn at pcbsd.org
Fri Jul 13 22:56:36 PDT 2012
Author: kenmoore
Date: 2012-07-14 05:56:36 +0000 (Sat, 14 Jul 2012)
New Revision: 17728
Modified:
pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Add the ability for PCDM to shutdown/reboot the computer
Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp 2012-07-14 05:48:49 UTC (rev 17727)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp 2012-07-14 05:56:36 UTC (rev 17728)
@@ -203,11 +203,15 @@
}
void PCDMgui::slotShutdownComputer(){
- qDebug() << "PCDM: Shutdown Computer not implemented yet";
+ qDebug() << "PCDM: Shutting down computer";
+ system("shutdown -r now");
+ close();
}
void PCDMgui::slotRestartComputer(){
- qDebug() << "PCDM: Restart Computer not implemented yet";
+ qDebug() << "PCDM: Restarting computer";
+ system("reboot");
+ close();
}
void PCDMgui::slotClosePCDM(){
More information about the Commits
mailing list