Removed system function invocations and placed forked execl instead
[vlp.git] / src / kernel / kernel.h
index eadf975166aab0358ba230e018c99e812b899ae9..89260cc2334245a97d70453cf17e6478c7c9fb10 100644 (file)
@@ -36,6 +36,7 @@
 #include <QtGui/QListWidget>
 #include <QtGui/QTextEdit>
 #include <QtCore/QSocketNotifier>
+#include <QtCore/QDir>
 
 #include "comm.h"
 
@@ -100,13 +101,12 @@ public:
        int NodeNumber;
        int ConType;
 
-       QKernel();
+       QKernel(int argc, char **argv);
 
        void WriteMessage(char* msg);
        void InitMessage();
 
 public slots:
-       void n_impl();
        void NetMessage();
        void IntMessage(int);
 
@@ -138,10 +138,13 @@ private:
        int net_sock;
        int freeINTid;
        QSocketNotifier *Net_Notify;
-       char HomeDir[255];
+       QDir homeDir;
+       char myargs[5][255];
        bool info_messages;
 
-       void LoadConfig(char *);
+       void loadConfig(const QString &fname);
+       void loadConfig(const char *);
+
        void RunGraphModule(char*);
        void RunNetModule();
        InterpEntry *findINTbySocket(int);
@@ -156,6 +159,13 @@ private:
         */
        void setLocked(bool locked);
 
+       QString getConfigFilePath();
+       const char * getHomeDir();
+       const char * getRemoteDir();
+
+       const char * getNetModuleSocket();
+       const char * getGraphModuleSocket();
+
 private slots:
        void on_actionExecute_triggered();
        void on_actionKill_triggered();