mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-03-21 20:45:14 +00:00
Also setup the server to make it easier to extend for API/library support in the backend. All backend functionality can now be added to the new "WebBackend.cpp" file (and WebSocket.h file for headers).
34 lines
694 B
C++
34 lines
694 B
C++
#ifndef _WEB_SERVER_SYSCACHE_CLIENT_MAIN_H
|
|
#define _WEB_SERVER_SYSCACHE_CLIENT_MAIN_H
|
|
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <QObject>
|
|
#include <QTextStream>
|
|
#include <QLocalSocket>
|
|
#include <QCoreApplication>
|
|
#include <QDebug>
|
|
|
|
class SysCacheClient : public QLocalSocket{
|
|
Q_OBJECT
|
|
public:
|
|
SysCacheClient(QObject *parent=0);
|
|
~SysCacheClient();
|
|
|
|
//Static function to run a request and wait for it to finish before returning
|
|
static QStringList parseInputs(QStringList inputs);
|
|
|
|
//input/output variables
|
|
QStringList userRequest, servRequest, ans;
|
|
|
|
|
|
private slots:
|
|
//Server/Client connections
|
|
void startRequest();
|
|
void requestFinished();
|
|
void connectionError();
|
|
|
|
};
|
|
|
|
#endif
|