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:
Magne Sjaastad
2013-05-16 13:43:37 +02:00
parent bb0c4c37c1
commit 2303f30200
7 changed files with 334 additions and 14 deletions

View File

@@ -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);