From 99150507d8732b74ea3dda3b37f03d613005c9f1 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 22 Jun 2003 14:16:25 +0000 Subject: save resources --- src/FbCommands.cc | 6 +++++- src/FbCommands.hh | 8 +++++++- 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.8 2003/06/11 10:50:58 rathnor Exp $ +// $Id: FbCommands.cc,v 1.9 2003/06/22 14:16:25 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh" @@ -62,6 +62,10 @@ void ExitFluxboxCmd::execute() { Fluxbox::instance()->shutdown(); } +void SaveResources::execute() { + Fluxbox::instance()->save_rc(); +} + RestartFluxboxCmd::RestartFluxboxCmd(const std::string &cmd):m_cmd(cmd){ } 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.hh,v 1.5 2003/06/08 13:47:30 rathnor Exp $ +// $Id: FbCommands.hh,v 1.6 2003/06/22 14:16:25 fluxgen Exp $ // \file contains basic commands to restart, reconfigure, execute command and exit fluxbox @@ -48,6 +48,12 @@ public: void execute(); }; +/// saves resources +class SaveResources: public FbTk::Command { +public: + void execute(); +}; + /// restarts fluxbox class RestartFluxboxCmd: public FbTk::Command { public: -- cgit v0.11.2