blob: 4274f43735b397793f86d89eaef36140bd24858d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include "export.hpp"
#include <functional>
#include <memory>
#include <QWidget>
OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<std::unique_ptr<QWidget>()> const& make_main_window);
// XXX TODO need split MainWindow into mixins each implementing part of the functionality
template<typename F>
auto run_application(int argc, char** argv, F&& fun)
{
return otr_main(argc, argv, fun);
}
|