Files
sysadm/src/server/syscache-client.h
Ken Moore f5dab0048c Add a copy of the syscache-webclient server into the sysadm/src/server.
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).
2015-12-15 13:06:42 -05:00

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