Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / vcl / unx / gtk3_kde5 / kde5_lo_filepicker_main.cxx
blob4e73e9ee45e1889cdcab7176bda8cd733aba0ad8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "kde5_filepicker.hxx"
21 #include "kde5_filepicker_ipc.hxx"
23 #include <QApplication>
24 #include <QCommandLineParser>
26 #include <config_version.h>
28 int main(int argc, char** argv)
30 QApplication::setOrganizationName("LibreOffice");
31 QApplication::setOrganizationDomain("libreoffice.org");
32 QApplication::setApplicationName(QStringLiteral("lo_kde5filepicker"));
33 QApplication::setQuitOnLastWindowClosed(false);
34 QApplication::setApplicationVersion(LIBO_VERSION_DOTTED);
36 QApplication app(argc, argv);
38 QCommandLineParser parser;
39 parser.setApplicationDescription(
40 QObject::tr("Helper executable for LibreOffice KDE/Plasma integration.\n"
41 "Do not run this executable directly. Rather, use it indirectly via "
42 "the gtk3_kde5 VCL plugin (SAL_USE_VCLPLUGIN=gtk3_kde5)."));
43 parser.addVersionOption();
44 parser.addHelpOption();
45 parser.process(app);
47 KDE5FilePicker filePicker;
48 FilePickerIpc ipc(&filePicker);
50 return QApplication::exec();
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */