summaryrefslogtreecommitdiffhomepage
path: root/gui/init.hpp
blob: 1142ff24eeff648e58f848714a10ac802ffb83ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "export.hpp"

#include <functional>
#include <QWidget>

int OTR_GUI_EXPORT otr_main(int argc, char** argv, std::function<QWidget*()> 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);
}