File indexing completed on 2022-10-04 14:26:22

0001 /*
0002  * Copyright 1999 by Martin R. Jones <mjones@kde.org>
0003  *
0004  * This program is free software; you can redistribute it and/or modify
0005  * it under the terms of the GNU General Public License as published by
0006  * the Free Software Foundation; either version 2 of the License, or
0007  * (at your option) any later version.
0008  *
0009  * This program is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  * GNU General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU General Public License
0015  * along with this program; if not, write to the Free Software
0016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0017  */
0018 #include "amor.h"
0019 #include "version.h"
0020 
0021 #include <KDBusService>
0022 #include <KAboutData>
0023 #include <KLocalizedString>
0024 
0025 #include <QApplication>
0026 #include <QDBusConnection>
0027 
0028 static const char description[] = I18N_NOOP("KDE creature for your desktop");
0029 
0030 
0031 int main(int argc, char **argv)
0032 {
0033     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
0034     QApplication app(argc, argv);
0035     KLocalizedString::setApplicationDomain("amor");
0036 
0037 
0038     KAboutData about(QStringLiteral("amor"), i18n( "amor" ), QStringLiteral(AMOR_VERSION_STRING));
0039     about.setLicense(KAboutLicense::GPL);
0040     about.setShortDescription(i18n(description));
0041     about.setCopyrightStatement(i18n("1999 by Martin R. Jones\n2010 by Stefan Böhmann"));
0042 
0043     about.addAuthor(
0044         i18n("Stefan Böhmann"),
0045         i18n("Current maintainer"),
0046         QStringLiteral("kde@hilefoks.org"),
0047         QStringLiteral("http://www.hilefoks.org"),
0048         QStringLiteral("hilefoks")
0049     );
0050 
0051     about.addAuthor(i18n("Martin R. Jones"), {}, QStringLiteral("mjones@kde.org"));
0052     about.addAuthor(i18n("Gerardo Puga"), {}, QStringLiteral("gpuga@gioia.ing.unlp.edu.ar"));
0053 
0054     about.setOrganizationDomain(QByteArray("kde.org"));
0055     about.setDesktopFileName(QStringLiteral("org.kde.amor"));
0056 
0057     KAboutData::setApplicationData(about);
0058 
0059     KDBusService service(KDBusService::Unique);
0060 
0061     Amor amor;
0062 
0063     QDBusConnection::sessionBus().registerObject(QStringLiteral( "/Amor" ), &amor);
0064     return app.exec();
0065 }
0066 
0067 
0068 // kate: word-wrap off; encoding utf-8; indent-width 4; tab-width 4; line-numbers on; mixed-indent off; remove-trailing-space-save on; replace-tabs-save on; replace-tabs on; space-indent on;
0069 // vim:set spell et sw=4 ts=4 nowrap cino=l1,cs,U1: