summaryrefslogtreecommitdiffhomepage
path: root/gui/init.hpp
blob: 28ff55c7a8e6629e1a961edefe7b21ea735f6f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);

template<typename F>
auto run_application(int argc, char** argv, F&& fun)
{
    return otr_main(argc, argv, fun);
}