5 #ifndef JODA_INTERFACE_H
6 #define JODA_INTERFACE_H
28 std::vector<std::string> cache{};
30 std::shared_ptr<JSONStorage> storage;
32 size_t storageSize = 0;
34 int maxRows{}, maxCols = 0;
38 WINDOW* status =
nullptr;
39 WINDOW* status_1 =
nullptr;
40 WINDOW* status_2 =
nullptr;
41 WINDOW* status_3 =
nullptr;
43 WINDOW* results =
nullptr;
44 WINDOW* resultborder =
nullptr;
47 size_t currResult = 0;
48 size_t minResultI = 0;
49 size_t maxResultI = 0;
50 void scrollResults(
bool down =
true);
52 void buildStatusBar();
55 void destroyWindows();
56 void destroyWindow(WINDOW* local_win);
60 void addCache(
size_t i,
bool back);
63 void startJSONViewer()
const;
65 static std::wstring getWString(std::string& str);
Definition: ResultInterface.h:15
void setStatus1(std::string &str)
Definition: ResultInterface.cpp:211
void setStatus2(std::string &str)
Definition: ResultInterface.cpp:216
ResultInterface()
Definition: ResultInterface.cpp:167
void interact()
Definition: ResultInterface.cpp:124
void updateStorage(std::shared_ptr< JSONStorage > &storage)
Definition: ResultInterface.cpp:187
virtual ~ResultInterface()
Definition: ResultInterface.cpp:12
void setStatus3(std::string &str)
Definition: ResultInterface.cpp:221