45 lines
948 B
C++
45 lines
948 B
C++
#ifndef GUI_WORKLISTMANAGER_H
|
|
#define GUI_WORKLISTMANAGER_H
|
|
|
|
#include <QString>
|
|
#include <QList>
|
|
|
|
#include "forms/select/PatientInformation.h"
|
|
|
|
class QSqlTableModel;
|
|
class QTableView;
|
|
|
|
enum WorklistQueryResult{
|
|
InitNetWorkError,
|
|
ConnectError,
|
|
ContextError,
|
|
ResponseError,
|
|
Success
|
|
};
|
|
|
|
class WorkListManager
|
|
{
|
|
public:
|
|
static WorkListManager* getInstance();
|
|
static int getPatientFromWorkList(const QString& aAccessionNum, const QString& aPatientId, QList<PatientInformationPointer>& aOutPatients);
|
|
|
|
void setTableModel(QSqlTableModel* aModel);
|
|
void setTableView(QTableView* aTableView);
|
|
void setSearchString(const QString& aSearchString);
|
|
QString getSearchString();
|
|
QSqlTableModel* getTableModel();
|
|
QTableView* getTableView();
|
|
|
|
private:
|
|
WorkListManager();
|
|
~WorkListManager();
|
|
|
|
private:
|
|
QSqlTableModel* mTableModel;
|
|
QTableView* mTableView;
|
|
QString mSearchString;
|
|
|
|
};
|
|
|
|
#endif //GUI_WORKLISTMANAGER_H
|