File indexing completed on 2024-07-14 04:54:59

0001 /*
0002     SPDX-FileCopyrightText: 2024 Ralf Habacker ralf.habacker @freenet.de
0003 
0004     This file is part of libalkimia.
0005 
0006     SPDX-License-Identifier: LGPL-2.1-or-later
0007 */
0008 
0009 #ifndef ALKAPPLICATION_H
0010 #define ALKAPPLICATION_H
0011 
0012 #include <QStringList>
0013 
0014 class AlkAboutData
0015 {
0016 public:
0017     enum License {License_GPL = 1, License_LGPL = 2 };
0018     explicit AlkAboutData(const QString &componentName = {}, const QString &displayName = {}, const QString &version = {},
0019                           const QString &shortDescription = {}, AlkAboutData::License license = {}, const QString &copyrightStatement = {});
0020     AlkAboutData &setOrganizationDomain(const QByteArray &domain);
0021     static void setApplicationData(AlkAboutData &aboutData);
0022     QString displayName();
0023     QString shortDescription() const;
0024 };
0025 
0026 class AlkApplication
0027 {
0028 public:
0029     AlkApplication(int argc, char** argv);
0030     QStringList arguments();
0031     int exec();
0032 };
0033 
0034 #endif // ALKAPPLICATION_H