aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-06-22 14:16:25 (GMT)
committerfluxgen <fluxgen>2003-06-22 14:16:25 (GMT)
commit99150507d8732b74ea3dda3b37f03d613005c9f1 (patch)
treee46ef9a2643970fcd98334377616fe5ddaf40179
parent0be34666de6568439c98ba88203b00c8be4a69d8 (diff)
downloadfluxbox-99150507d8732b74ea3dda3b37f03d613005c9f1.zip
fluxbox-99150507d8732b74ea3dda3b37f03d613005c9f1.tar.bz2
save resources
-rw-r--r--src/FbCommands.cc6
-rw-r--r--src/FbCommands.hh8
2 files changed, 12 insertions, 2 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 8ca3cbb..820517d 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.cc,v 1.8 2003/06/11 10:50:58 rathnor Exp $ 22// $Id: FbCommands.cc,v 1.9 2003/06/22 14:16:25 fluxgen Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -62,6 +62,10 @@ void ExitFluxboxCmd::execute() {
62 Fluxbox::instance()->shutdown(); 62 Fluxbox::instance()->shutdown();
63} 63}
64 64
65void SaveResources::execute() {
66 Fluxbox::instance()->save_rc();
67}
68
65RestartFluxboxCmd::RestartFluxboxCmd(const std::string &cmd):m_cmd(cmd){ 69RestartFluxboxCmd::RestartFluxboxCmd(const std::string &cmd):m_cmd(cmd){
66} 70}
67 71
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index 4f87bf1..4439684 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.hh,v 1.5 2003/06/08 13:47:30 rathnor Exp $ 22// $Id: FbCommands.hh,v 1.6 2003/06/22 14:16:25 fluxgen Exp $
23 23
24// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox 24// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
25 25
@@ -48,6 +48,12 @@ public:
48 void execute(); 48 void execute();
49}; 49};
50 50
51/// saves resources
52class SaveResources: public FbTk::Command {
53public:
54 void execute();
55};
56
51/// restarts fluxbox 57/// restarts fluxbox
52class RestartFluxboxCmd: public FbTk::Command { 58class RestartFluxboxCmd: public FbTk::Command {
53public: 59public: