mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added RiaSocketCommands as placeholder for new commands
Moved declaration to RiaSocketServer.h to be able to create new commands in other files Added riGetTimeStepDates p4#: 21655
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <QDialog>
|
||||
#include <QAbstractSocket>
|
||||
#include "RifReaderInterface.h"
|
||||
#include "cafFactory.h"
|
||||
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
@@ -86,3 +87,19 @@ private:
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// Socket commands, to be moved into a separate file
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class RiaSocketCommand
|
||||
{
|
||||
public:
|
||||
|
||||
virtual bool interpretCommand(RiaSocketServer* server, const QList<QByteArray>& args, QDataStream& socketStream) = 0;
|
||||
virtual bool interpretMore(QDataStream& stream) { return true; }
|
||||
};
|
||||
|
||||
typedef caf::Factory<RiaSocketCommand, QString> RiaSocketCommandFactory;
|
||||
|
||||
void getCaseInfoFromCase(RimCase* rimCase, qint64& caseId, QString& caseName, QString& caseType, qint64& caseGroupId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user