File indexing completed on 2024-05-12 05:10:40
0001 // SPDX-FileCopyrightText: 2021 Claudio Cambra <claudio.cambra@gmail.com> 0002 // SPDX-License-Identifier: LGPL-2.1-or-later 0003 0004 #include "kalendaralarmclient.h" 0005 #include <KAboutData> 0006 #include <KDBusService> 0007 #include <KLocalizedString> 0008 #include <QCommandLineParser> 0009 #include <QGuiApplication> 0010 0011 #include "akonadi-calendar_version.h" 0012 0013 int main(int argc, char **argv) 0014 { 0015 QGuiApplication app(argc, argv); 0016 app.setQuitOnLastWindowClosed(false); 0017 app.setQuitLockEnabled(false); 0018 0019 KAboutData aboutData( 0020 // The program name used internally. 0021 QStringLiteral("kalendarac"), 0022 // A displayable program name string. 0023 i18nc("@title", "Reminders"), 0024 QStringLiteral(AKONADICALENDAR_VERSION_STRING), 0025 // Short description of what the app does. 0026 i18n("Calendar Reminder Service"), 0027 // The license this code is released under. 0028 KAboutLicense::GPL, 0029 // Copyright Statement. 0030 i18n("(c) KDE Community 2021-2022")); 0031 aboutData.addAuthor(i18nc("@info:credit", "Carl Schwan"), 0032 i18nc("@info:credit", "Maintainer"), 0033 QStringLiteral("carl@carlschwan.eu"), 0034 QStringLiteral("https://carlschwan.eu")); 0035 aboutData.addAuthor(i18nc("@info:credit", "Clau Cambra"), 0036 i18nc("@info:credit", "Maintainer"), 0037 QStringLiteral("claudio.cambra@gmail.com"), 0038 QStringLiteral("https://claudiocambra.com")); 0039 aboutData.setProductName("Reminder Daemon/general"); // Bugzilla product/component name 0040 KAboutData::setApplicationData(aboutData); 0041 0042 QCommandLineParser parser; 0043 KAboutData::setApplicationData(aboutData); 0044 aboutData.setupCommandLine(&parser); 0045 parser.process(app); 0046 aboutData.processCommandLine(&parser); 0047 0048 KDBusService service(KDBusService::Unique); 0049 KalendarAlarmClient client; 0050 0051 return app.exec(); 0052 }