Changeset View
Changeset View
Standalone View
Standalone View
smsapp/main.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * This file is part of KDE Telepathy Chat | 2 | * This file is part of KDE Telepathy Chat | ||
3 | * | 3 | * | ||
4 | * Copyright (C) 2015 Aleix Pol Gonzalez <aleixpol@blue-systems.com> | 4 | * Copyright (C) 2018 Aleix Pol Gonzalez <aleixpol@blue-systems.com> | ||
5 | * Copyright (C) 2018 Simon Redman <simon@ergotech.com> | ||||
5 | * | 6 | * | ||
6 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public | ||
8 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either | ||
9 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. | ||
10 | * | 11 | * | ||
11 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. | ||
15 | * | 16 | * | ||
16 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
17 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
sredman: As long as I'm touching these files, should we change the license to GPLv2+ like the rest of… | |||||
I would say that makes sense. I see that more files in the smsapp are also affected by this. I'm not a licensing expert, but I think formally you would need approval from all contributors to the smsapp for this. You hereby have mine, but to be sure you should ask @apol for his. nicolasfella: I would say that makes sense. I see that more files in the smsapp are also affected by this. | |||||
19 | */ | 20 | */ | ||
20 | 21 | | |||
21 | #include "conversationmodel.h" | 22 | #include "conversationmodel.h" | ||
22 | #include "conversationlistmodel.h" | 23 | #include "conversationlistmodel.h" | ||
23 | #include "kdeconnect-version.h" | 24 | #include "kdeconnect-version.h" | ||
24 | 25 | | |||
25 | #include <QApplication> | 26 | #include <QApplication> | ||
26 | #include <QQmlApplicationEngine> | 27 | #include <QQmlApplicationEngine> | ||
27 | #include <QCommandLineParser> | 28 | #include <QCommandLineParser> | ||
28 | #include <QQmlContext> | 29 | #include <QQmlContext> | ||
29 | #include <KAboutData> | 30 | #include <KAboutData> | ||
30 | #include <KLocalizedString> | 31 | #include <KLocalizedString> | ||
31 | #include <KLocalizedContext> | 32 | #include <KLocalizedContext> | ||
32 | #include <KDBusService> | 33 | #include <KDBusService> | ||
33 | #include <QtQml> | 34 | #include <QtQml> | ||
34 | 35 | | |||
35 | int main(int argc, char *argv[]) | 36 | int main(int argc, char *argv[]) | ||
36 | { | 37 | { | ||
37 | QApplication app(argc, argv); | 38 | QApplication app(argc, argv); | ||
38 | KAboutData aboutData("org.kde.kdeconnect.sms", i18n("SMS Instant Messaging"), QStringLiteral(KDECONNECT_VERSION_STRING), i18n("KDE Connect SMS"), KAboutLicense::GPL, i18n("(c) 2018, Aleix Pol Gonzalez")); | 39 | KAboutData aboutData("org.kde.kdeconnect.sms", i18n("SMS Instant Messaging"), QStringLiteral(KDECONNECT_VERSION_STRING), i18n("KDE Connect SMS"), KAboutLicense::GPL, i18n("(c) 2018, Aleix Pol Gonzalez")); | ||
39 | aboutData.addAuthor(i18n("Aleix Pol Gonzalez"), {}, "aleixpol@kde.org"); | 40 | aboutData.addAuthor(i18n("Aleix Pol Gonzalez"), {}, "aleixpol@kde.org"); | ||
41 | aboutData.addAuthor(i18n("Nicolas Fella"), {}, "nicolas.fella@gmx.de"); | ||||
@nicolasfella Let me know if you don't want this here (or if you think you should be in more places!) sredman: @nicolasfella Let me know if you don't want this here (or if you think you should be in more… | |||||
nicolasfella: Fine with me :) | |||||
42 | aboutData.addAuthor(i18n("Simon Redman"), {}, "simon@ergotech.com"); | ||||
40 | KAboutData::setApplicationData(aboutData); | 43 | KAboutData::setApplicationData(aboutData); | ||
41 | 44 | | |||
42 | { | 45 | { | ||
43 | QCommandLineParser parser; | 46 | QCommandLineParser parser; | ||
44 | aboutData.setupCommandLine(&parser); | 47 | aboutData.setupCommandLine(&parser); | ||
45 | parser.addVersionOption(); | 48 | parser.addVersionOption(); | ||
46 | parser.addHelpOption(); | 49 | parser.addHelpOption(); | ||
47 | parser.process(app); | 50 | parser.process(app); | ||
Show All 15 Lines |
As long as I'm touching these files, should we change the license to GPLv2+ like the rest of the project?