Add platform independent monitor control structure

master
BlackMark 2020-07-05 15:20:51 +02:00
parent 2a1ee46928
commit d5d6f390fb
7 changed files with 52 additions and 0 deletions

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();

View File

@ -0,0 +1,8 @@
#pragma once
class Monitor {
private:
Monitor();
public:
};

View File

@ -0,0 +1,7 @@
#pragma once
#include <vector>
#include "monitor.hpp"
std::vector<Monitor> enumerateMonitors();

View File

@ -0,0 +1,10 @@
#include "monitor_control.hpp"
#if defined(__clang__) || defined(__GNUC__)
std::vector<Monitor> enumerateMonitors()
{
return {};
}
#endif

View File

@ -0,0 +1,10 @@
#include "monitor_control.hpp"
#ifdef _MSC_VER
std::vector<Monitor> enumerateMonitors()
{
return {};
}
#endif

View File

@ -0,0 +1,7 @@
#include "monitor.hpp"
#if defined(__clang__) || defined(__GNUC__)
Monitor::Monitor() {}
#endif

View File

@ -0,0 +1,7 @@
#include "monitor.hpp"
#ifdef _MSC_VER
Monitor::Monitor() {}
#endif