Add platform independent monitor control structure

This commit is contained in:
BlackMark committed 2020-07-05 15:20:51 +02:00
1 parent 2a1ee46928
commit d5d6f390fb
7 files changed
+52

No files matched your search

+3
View File
@@ -6,6 +6,7 @@
#include "log_to_file.hpp"
#include "log_tr.hpp"
#include "main_window.hpp"
#include "monitor_control.hpp"
#include "sensor_driver.hpp"
int main(int argc, char* argv[])
@@ -36,6 +37,8 @@ int main(int argc, char* argv[])
}
}
const auto monitors = enumerateMonitors();
MainWindow mainWindow;
mainWindow.show();
return application.exec();
+8
View File
@@ -0,0 +1,8 @@
#pragma once
class Monitor {
private:
Monitor();
public:
};
+7
View File
@@ -0,0 +1,7 @@
#pragma once
#include <vector>
#include "monitor.hpp"
std::vector<Monitor> enumerateMonitors();
@@ -0,0 +1,10 @@
#include "monitor_control.hpp"
#if defined(__clang__) || defined(__GNUC__)
std::vector<Monitor> enumerateMonitors()
{
return {};
}
#endif
@@ -0,0 +1,10 @@
#include "monitor_control.hpp"
#ifdef _MSC_VER
std::vector<Monitor> enumerateMonitors()
{
return {};
}
#endif
+7
View File
@@ -0,0 +1,7 @@
#include "monitor.hpp"
#if defined(__clang__) || defined(__GNUC__)
Monitor::Monitor() {}
#endif
+7
View File
@@ -0,0 +1,7 @@
#include "monitor.hpp"
#ifdef _MSC_VER
Monitor::Monitor() {}
#endif