diff options
Diffstat (limited to 'daemon.h')
-rw-r--r-- | daemon.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/daemon.h b/daemon.h deleted file mode 100644 index 58c8a01..0000000 --- a/daemon.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef DAEMON_H -#define DAEMON_H - -#include <QObject> -#include <QStringList> -class QTcpServer; -class QTcpSocket; -class Protocol; -class App; - -class Daemon : public QObject -{ -Q_OBJECT - -public: - Daemon(QObject *parent = 0); - virtual ~Daemon(); - -private slots: - void newConnection(); - void printCommand(const QStringList &); - void clientDisconnect(); - void clientRead(); - void handleCommands(const QStringList &); - - void appStarted(pid_t); - void appStopped(pid_t, int, int); - void appStdout(pid_t, const QByteArray &); - void appStderr(pid_t, const QByteArray &); - void appDebugging(pid_t, quint16); - void appError(const QString &); - -private: - void loadDefaults(); - - QTcpServer *mServer; - QTcpSocket *mClient; - Protocol *mProtocol; - App *mApp; - - QString defaultApp; - QStringList defaultArgs; - quint16 mPort; -}; - -#endif // DAEMON_H |