-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdapters.cpp
More file actions
29 lines (26 loc) · 1001 Bytes
/
Copy pathAdapters.cpp
File metadata and controls
29 lines (26 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "Adapters.h"
/*-----------------------------------------------------------------------------------*/
TableData FakePrediction::fakeWork(const QString &fileName)
{
//todo mytodo check this file:// on WinX64
TableData tableData;
tableData.fileName = QFileInfo(fileName);
tableData.colorPrediction = ColorPrediction::Red;
tableData.LLR = 121;
tableData.reliability = 212;
tableData.path = QDir(QFileInfo(fileName).absolutePath());
return tableData;
}
/*-----------------------------------------------------------------------------------*/
FakeAdapter::FakeAdapter(DataModel *dataModel, QMLAdapter *qmlAdapter, QObject *parent)
: IAdapter(dataModel, qmlAdapter, parent){}
TableData FakeAdapter::work(const QString &fileName)
{
testDelay(1);
return _predictionModel.fakeWork(fileName);
}
void FakeAdapter::testDelay(const int &sec)
{
thread()->sleep(sec);
}
/*-----------------------------------------------------------------------------------*/