mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Octave Interface: Rolled out use of common constant for DataStreamVersion
p4#: 21689
This commit is contained in:
1 parent
4b7ff209f6
commit
90e61c254b
7 files changed
+55
-29
No files matched your search
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <vector>
|
||||
#include <QDataStream>
|
||||
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
@@ -30,6 +31,10 @@ class QErrorMessage;
|
||||
class RimCase;
|
||||
class RiaSocketCommand;
|
||||
|
||||
namespace riOctavePlugin
|
||||
{
|
||||
const int qtDataStreamVersion = QDataStream::Qt_4_0;
|
||||
}
|
||||
|
||||
class RiaSocketServer : public QObject
|
||||
{
|
||||
@@ -83,22 +88,3 @@ private:
|
||||
bool m_invalidActiveCellCountDetected;
|
||||
};
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// 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; }
|
||||
};
|
||||
|
||||
#include "cafFactory.h"
|
||||
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