Revision: 41636
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41636&view=rev
Author:   davidloman
Date:     2010-12-15 20:19:02 +0000 (Wed, 15 Dec 2010)

Log Message:
-----------
More work on ShutdownCmd.  Not fully functional yet.

Modified Paths:
--------------
    rt^3/trunk/src/GS/CMakeLists.txt

Added Paths:
-----------
    rt^3/trunk/include/ShutdownCmd.h
    rt^3/trunk/src/GS/cmds/ShutdownCmd.cxx

Added: rt^3/trunk/include/ShutdownCmd.h
===================================================================
--- rt^3/trunk/include/ShutdownCmd.h                            (rev 0)
+++ rt^3/trunk/include/ShutdownCmd.h    2010-12-15 20:19:02 UTC (rev 41636)
@@ -0,0 +1,56 @@
+/*                   S H U T D O W N C M D . H
+ * BRL-CAD
+ *
+ * Copyright (c) 2010 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file ShutdownCmd.h
+ * ShutdownCmd.h
+ *
+ */
+
+#ifndef __SHUTDOWNCMD_H__
+#define __SHUTDOWNCMD_H__
+
+#include "AbstractClientCmd.h"
+
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+
+class ShutdownCmd : public AbstractClientCmd {
+public:
+       ShutdownCmd();
+       virtual ~ShutdownCmd();
+
+       QString getUsage();
+       QString getHelp();
+
+protected:
+       bool _exec(QStringList args);
+
+};
+
+#endif /* __SHUTDOWNCMD_H__ */
+
+/*
+ * Local Variables:
+ * tab-width: 8
+ * mode: C
+ * indent-tabs-mode: t
+ * c-file-style: "stroustrup"
+ * End:
+ * ex: shiftwidth=4 tabstop=8
+ */


Property changes on: rt^3/trunk/include/ShutdownCmd.h
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Revision Date Author
Added: svn:eol-style
   + native

Modified: rt^3/trunk/src/GS/CMakeLists.txt
===================================================================
--- rt^3/trunk/src/GS/CMakeLists.txt    2010-12-15 19:59:35 UTC (rev 41635)
+++ rt^3/trunk/src/GS/CMakeLists.txt    2010-12-15 20:19:02 UTC (rev 41636)
@@ -56,6 +56,7 @@
        GSClient.cxx
        cmds/ClientCmdRegistry.cxx
        cmds/AbstractClientCmd.cxx
+       cmds/ShutdownCmd.cxx
 )
 
 #Set INST Headers
@@ -71,6 +72,7 @@
        DbObject.h
        ClientCmdRegistry.h
        AbstractClientCmd.h
+       ShutdownCmd.h
 )
 
 #Set NOINST headers

Added: rt^3/trunk/src/GS/cmds/ShutdownCmd.cxx
===================================================================
--- rt^3/trunk/src/GS/cmds/ShutdownCmd.cxx                              (rev 0)
+++ rt^3/trunk/src/GS/cmds/ShutdownCmd.cxx      2010-12-15 20:19:02 UTC (rev 
41636)
@@ -0,0 +1,59 @@
+/*                 S H U T D O W N C M D . C X X
+ * BRL-CAD
+ *
+ * Copyright (c) 2010 United States Government as represented by
+ * the U.S. Army Research Laboratory.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this file; see the file named COPYING for more
+ * information.
+ */
+/** @file ShutdownCmd.cxx
+ * ShutdownCmd.cxx
+ *
+ */
+
+#include "ShutdownCmd.h"
+
+ShutdownCmd::ShutdownCmd() : AbstractClientCmd("shutdown")
+{}
+
+ShutdownCmd::~ShutdownCmd() {
+}
+
+QString
+ShutdownCmd::getUsage(){
+       return "Usage: shutdown ip port uname passwd";
+}
+
+QString
+ShutdownCmd::getHelp(){
+       return "Sends a remote shutdown command to the GS server currently 
attached.";
+}
+
+bool
+ShutdownCmd::_exec(QStringList args){
+
+
+
+}
+
+
+
+// Local Variables:
+// tab-width: 8
+// mode: C++
+// c-basic-offset: 4
+// indent-tabs-mode: t
+// c-file-style: "stroustrup"
+// End:
+// ex: shiftwidth=4 tabstop=8


Property changes on: rt^3/trunk/src/GS/cmds/ShutdownCmd.cxx
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Revision Date Author
Added: svn:eol-style
   + native


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to