[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ruqola] /: Fix includes
From:       Laurent Montel <null () kde ! org>
Date:       2018-03-21 20:53:08
Message-ID: E1eykjM-0004kG-Dj () code ! kde ! org
[Download RAW message or body]

Git commit cd0a1b0598ea81354d646e02528a7d21eb0fe79c by Laurent Montel.
Committed on 21/03/2018 at 20:51.
Pushed by mlaurent into branch 'master'.

Fix includes

M  +1    -0    autotests/reactionstest.cpp
M  +0    -1    src/accountmanager.cpp
M  +0    -1    src/authenticationinfo.h
M  +0    -1    src/channel.h
M  +0    -1    src/file.h
M  +0    -1    src/managerdatapaths.h
M  +1    -0    src/model/inputcompletermodel.cpp
M  +1    -1    src/model/inputcompletermodel.h
M  +1    -0    src/model/loginmethodmodel.cpp
M  +1    -1    src/model/loginmethodmodel.h
M  +1    -0    src/model/usercompletermodel.cpp
M  +1    -1    src/model/usercompletermodel.h
M  +0    -1    src/notificationoptions.h
M  +0    -1    src/plugins/authentication/google/googlejob.cpp
M  +0    -2    src/reaction.h
M  +1    -0    src/reactions.cpp
M  +0    -4    src/restapi/channellistjob.cpp
M  +0    -1    src/restapi/chat/postmessagejob.cpp
M  +0    -1    src/restapi/chat/starmessagejob.cpp
M  +0    -3    src/restapi/downloadfilejob.cpp
M  +0    -1    src/restapi/getavatarjob.cpp
M  +0    -1    src/restapi/loginjob.cpp
M  +0    -1    src/restapi/logoutjob.cpp
M  +0    -3    src/restapi/misc/owninfojob.cpp
M  +0    -3    src/restapi/privateinfojob.cpp
M  +0    -7    src/restapi/restapirequest.cpp
M  +0    -1    src/restapi/serverinfojob.cpp
M  +0    -1    src/restapi/uploadfilejob.cpp
M  +0    -1    src/rocketchataccount.cpp
M  +0    -1    src/rocketchatcache.cpp
M  +0    -1    src/ruqolaserverconfig.h
M  +0    -1    src/searchmessage.h
M  +0    -1    src/user.h

https://commits.kde.org/ruqola/cd0a1b0598ea81354d646e02528a7d21eb0fe79c

diff --git a/autotests/reactionstest.cpp b/autotests/reactionstest.cpp
index 0c84ebd..f045d91 100644
--- a/autotests/reactionstest.cpp
+++ b/autotests/reactionstest.cpp
@@ -21,6 +21,7 @@
 #include "reactions.h"
 =

 #include <QJsonDocument>
+#include <QJsonObject>
 #include <QTest>
 #include <QDebug>
 QTEST_GUILESS_MAIN(ReactionsTest)
diff --git a/src/accountmanager.cpp b/src/accountmanager.cpp
index 8a12114..cedd236 100644
--- a/src/accountmanager.cpp
+++ b/src/accountmanager.cpp
@@ -24,7 +24,6 @@
 #include "ruqola_debug.h"
 #include <QDir>
 #include <QDirIterator>
-#include <QFileInfoList>
 =

 #include "model/rocketchataccountmodel.h"
 #include "model/rocketchataccountfilterproxymodel.h"
diff --git a/src/authenticationinfo.h b/src/authenticationinfo.h
index b160240..03d5855 100644
--- a/src/authenticationinfo.h
+++ b/src/authenticationinfo.h
@@ -23,7 +23,6 @@
 =

 #include "libruqola_private_export.h"
 #include "authenticationmanager.h"
-#include <QObject>
 #include <QDebug>
 class LIBRUQOLACORE_TESTS_EXPORT AuthenticationInfo
 {
diff --git a/src/channel.h b/src/channel.h
index a759485..d7739c1 100644
--- a/src/channel.h
+++ b/src/channel.h
@@ -23,7 +23,6 @@
 =

 #include "libruqola_private_export.h"
 #include "user.h"
-#include <QObject>
 #include <QDebug>
 //TODO rename it
 class LIBRUQOLACORE_TESTS_EXPORT Channel
diff --git a/src/file.h b/src/file.h
index a7faa27..f9fbb25 100644
--- a/src/file.h
+++ b/src/file.h
@@ -22,7 +22,6 @@
 =

 #include "libruqola_private_export.h"
 #include <QString>
-#include <QObject>
 #include <QDebug>
 #include <QJsonObject>
 =

diff --git a/src/managerdatapaths.h b/src/managerdatapaths.h
index 9579bb2..437249a 100644
--- a/src/managerdatapaths.h
+++ b/src/managerdatapaths.h
@@ -23,7 +23,6 @@
 =

 #include <QHash>
 #include <QString>
-#include <QObject>
 #include "libruqola_private_export.h"
 =

 class LIBRUQOLACORE_TESTS_EXPORT ManagerDataPaths
diff --git a/src/model/inputcompletermodel.cpp b/src/model/inputcompletermo=
del.cpp
index b317495..66ba7cc 100644
--- a/src/model/inputcompletermodel.cpp
+++ b/src/model/inputcompletermodel.cpp
@@ -26,6 +26,7 @@
 #include <QIcon>
 #include <QJsonArray>
 #include <QJsonObject>
+#include <QModelIndex>
 =

 InputCompleterModel::InputCompleterModel(QObject *parent)
     : QAbstractListModel(parent)
diff --git a/src/model/inputcompletermodel.h b/src/model/inputcompletermode=
l.h
index 5389a38..998adcb 100644
--- a/src/model/inputcompletermodel.h
+++ b/src/model/inputcompletermodel.h
@@ -21,10 +21,10 @@
 #ifndef INPUTCOMPLETERMODEL_H
 #define INPUTCOMPLETERMODEL_H
 =

-#include <QStringListModel>
 #include "libruqola_private_export.h"
 #include "channel.h"
 #include <QJsonObject>
+#include <QAbstractListModel>
 =

 class LIBRUQOLACORE_TESTS_EXPORT InputCompleterModel : public QAbstractLis=
tModel
 {
diff --git a/src/model/loginmethodmodel.cpp b/src/model/loginmethodmodel.cpp
index bf2dc01..d5cf7d9 100644
--- a/src/model/loginmethodmodel.cpp
+++ b/src/model/loginmethodmodel.cpp
@@ -20,6 +20,7 @@
 =

 #include "loginmethodmodel.h"
 #include "ruqola_debug.h"
+#include <QModelIndex>
 =

 LoginMethodModel::LoginMethodModel(QObject *parent)
     : QAbstractListModel(parent)
diff --git a/src/model/loginmethodmodel.h b/src/model/loginmethodmodel.h
index 0556377..088b961 100644
--- a/src/model/loginmethodmodel.h
+++ b/src/model/loginmethodmodel.h
@@ -21,9 +21,9 @@
 #ifndef LOGINMETHODMODEL_H
 #define LOGINMETHODMODEL_H
 =

-#include <QAbstractItemModel>
 #include "authenticationinfo.h"
 #include "libruqola_private_export.h"
+#include <QAbstractListModel>
 =

 class LIBRUQOLACORE_TESTS_EXPORT LoginMethodModel : public QAbstractListMo=
del
 {
diff --git a/src/model/usercompletermodel.cpp b/src/model/usercompletermode=
l.cpp
index 689cb4a..5e10d76 100644
--- a/src/model/usercompletermodel.cpp
+++ b/src/model/usercompletermodel.cpp
@@ -20,6 +20,7 @@
 =

 #include "usercompletermodel.h"
 #include "ruqola_debug.h"
+#include <QModelIndex>
 =

 UserCompleterModel::UserCompleterModel(QObject *parent)
     : QAbstractListModel(parent)
diff --git a/src/model/usercompletermodel.h b/src/model/usercompletermodel.h
index 6e36a8d..eb5506b 100644
--- a/src/model/usercompletermodel.h
+++ b/src/model/usercompletermodel.h
@@ -23,7 +23,7 @@
 =

 #include "user.h"
 #include "libruqola_private_export.h"
-#include <QStringListModel>
+#include <QAbstractListModel>
 =

 class LIBRUQOLACORE_TESTS_EXPORT UserCompleterModel : public QAbstractList=
Model
 {
diff --git a/src/notificationoptions.h b/src/notificationoptions.h
index 2edd146..9703843 100644
--- a/src/notificationoptions.h
+++ b/src/notificationoptions.h
@@ -22,7 +22,6 @@
 #define NOTIFICATIONOPTIONS_H
 =

 #include <QString>
-#include <QObject>
 #include <QDebug>
 #include <QJsonObject>
 #include "libruqola_private_export.h"
diff --git a/src/plugins/authentication/google/googlejob.cpp b/src/plugins/=
authentication/google/googlejob.cpp
index d7c83dc..3c1e8cf 100644
--- a/src/plugins/authentication/google/googlejob.cpp
+++ b/src/plugins/authentication/google/googlejob.cpp
@@ -29,7 +29,6 @@
 #include <QNetworkRequest>
 #include <QNetworkReply>
 #include <QDesktopServices>
-#include <QMetaEnum>
 #include <QJsonObject>
 #include <QJsonDocument>
 #include <QFile>
diff --git a/src/reaction.h b/src/reaction.h
index 71adc48..a9de4a6 100644
--- a/src/reaction.h
+++ b/src/reaction.h
@@ -21,9 +21,7 @@
 #define REACTION_H
 =

 #include "libruqola_private_export.h"
-#include <QObject>
 #include <QDebug>
-#include <QJsonObject>
 class LIBRUQOLACORE_TESTS_EXPORT Reaction
 {
     Q_GADGET
diff --git a/src/reactions.cpp b/src/reactions.cpp
index d0d5f75..16d722a 100644
--- a/src/reactions.cpp
+++ b/src/reactions.cpp
@@ -19,6 +19,7 @@
 =

 #include "reactions.h"
 #include <QJsonArray>
+#include <QJsonObject>
 =

 Reactions::Reactions()
 {
diff --git a/src/restapi/channellistjob.cpp b/src/restapi/channellistjob.cpp
index a70038b..b55d2fc 100644
--- a/src/restapi/channellistjob.cpp
+++ b/src/restapi/channellistjob.cpp
@@ -21,11 +21,7 @@
 #include "channellistjob.h"
 #include "ruqola_restapi_debug.h"
 #include "restapimethod.h"
-#include <QJsonDocument>
-#include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
-#include <QUrlQuery>
 =

 ChannelListJob::ChannelListJob(QObject *parent)
     : RestApiAbstractJob(parent)
diff --git a/src/restapi/chat/postmessagejob.cpp b/src/restapi/chat/postmes=
sagejob.cpp
index 72a1552..f8da9a3 100644
--- a/src/restapi/chat/postmessagejob.cpp
+++ b/src/restapi/chat/postmessagejob.cpp
@@ -23,7 +23,6 @@
 #include "ruqola_restapi_debug.h"
 #include <QJsonDocument>
 #include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 PostMessageJob::PostMessageJob(QObject *parent)
diff --git a/src/restapi/chat/starmessagejob.cpp b/src/restapi/chat/starmes=
sagejob.cpp
index 6d4733f..3564589 100644
--- a/src/restapi/chat/starmessagejob.cpp
+++ b/src/restapi/chat/starmessagejob.cpp
@@ -24,7 +24,6 @@
 #include "restapirequest.h"
 #include <QJsonDocument>
 #include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 StarMessageJob::StarMessageJob(QObject *parent)
diff --git a/src/restapi/downloadfilejob.cpp b/src/restapi/downloadfilejob.=
cpp
index a048602..e933cf3 100644
--- a/src/restapi/downloadfilejob.cpp
+++ b/src/restapi/downloadfilejob.cpp
@@ -21,9 +21,6 @@
 #include "downloadfilejob.h"
 #include "ruqola_restapi_debug.h"
 #include "restapimethod.h"
-#include <QJsonDocument>
-#include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 DownloadFileJob::DownloadFileJob(QObject *parent)
diff --git a/src/restapi/getavatarjob.cpp b/src/restapi/getavatarjob.cpp
index e919170..e7574a2 100644
--- a/src/restapi/getavatarjob.cpp
+++ b/src/restapi/getavatarjob.cpp
@@ -21,7 +21,6 @@
 #include "getavatarjob.h"
 #include "ruqola_restapi_debug.h"
 #include "restapimethod.h"
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 #include <QUrlQuery>
 =

diff --git a/src/restapi/loginjob.cpp b/src/restapi/loginjob.cpp
index 301c5c1..defa41b 100644
--- a/src/restapi/loginjob.cpp
+++ b/src/restapi/loginjob.cpp
@@ -24,7 +24,6 @@
 =

 #include <QJsonDocument>
 #include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 LoginJob::LoginJob(QObject *parent)
diff --git a/src/restapi/logoutjob.cpp b/src/restapi/logoutjob.cpp
index 14f28d0..68d7e55 100644
--- a/src/restapi/logoutjob.cpp
+++ b/src/restapi/logoutjob.cpp
@@ -24,7 +24,6 @@
 =

 #include <QJsonDocument>
 #include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 LogoutJob::LogoutJob(QObject *parent)
diff --git a/src/restapi/misc/owninfojob.cpp b/src/restapi/misc/owninfojob.=
cpp
index 0170e66..74061f3 100644
--- a/src/restapi/misc/owninfojob.cpp
+++ b/src/restapi/misc/owninfojob.cpp
@@ -21,9 +21,6 @@
 #include "owninfojob.h"
 #include "restapimethod.h"
 #include "ruqola_restapi_debug.h"
-#include <QJsonDocument>
-#include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 OwnInfoJob::OwnInfoJob(QObject *parent)
diff --git a/src/restapi/privateinfojob.cpp b/src/restapi/privateinfojob.cpp
index a68d737..a5cd091 100644
--- a/src/restapi/privateinfojob.cpp
+++ b/src/restapi/privateinfojob.cpp
@@ -21,9 +21,6 @@
 #include "privateinfojob.h"
 #include "ruqola_restapi_debug.h"
 #include "restapimethod.h"
-#include <QJsonDocument>
-#include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 PrivateInfoJob::PrivateInfoJob(QObject *parent)
diff --git a/src/restapi/restapirequest.cpp b/src/restapi/restapirequest.cpp
index 103fdc9..cadd77f 100644
--- a/src/restapi/restapirequest.cpp
+++ b/src/restapi/restapirequest.cpp
@@ -45,15 +45,8 @@
 #include <QNetworkAccessManager>
 #include <QNetworkReply>
 #include <QUrl>
-#include <QUrlQuery>
-#include <QJsonDocument>
-#include <QJsonObject>
 #include <QNetworkCookie>
 #include <QNetworkCookieJar>
-#include <QJsonArray>
-#include <QHttpMultiPart>
-#include <QFile>
-#include <QMimeDatabase>
 #include <ruqolalogger.h>
 =

 RestApiRequest::RestApiRequest(QObject *parent)
diff --git a/src/restapi/serverinfojob.cpp b/src/restapi/serverinfojob.cpp
index 9726bc6..165b43c 100644
--- a/src/restapi/serverinfojob.cpp
+++ b/src/restapi/serverinfojob.cpp
@@ -23,7 +23,6 @@
 #include "restapimethod.h"
 #include <QJsonDocument>
 #include <QJsonObject>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 ServerInfoJob::ServerInfoJob(QObject *parent)
diff --git a/src/restapi/uploadfilejob.cpp b/src/restapi/uploadfilejob.cpp
index 6916b13..32fc199 100644
--- a/src/restapi/uploadfilejob.cpp
+++ b/src/restapi/uploadfilejob.cpp
@@ -26,7 +26,6 @@
 #include <QJsonDocument>
 #include <QJsonObject>
 #include <QMimeDatabase>
-#include <QNetworkAccessManager>
 #include <QNetworkReply>
 =

 UploadFileJob::UploadFileJob(QObject *parent)
diff --git a/src/rocketchataccount.cpp b/src/rocketchataccount.cpp
index c015342..c6bf678 100644
--- a/src/rocketchataccount.cpp
+++ b/src/rocketchataccount.cpp
@@ -54,7 +54,6 @@
 #include "restapi/restapirequest.h"
 =

 #include <QDesktopServices>
-#include <QFile>
 #include <QRegularExpression>
 #include <QTimer>
 =

diff --git a/src/rocketchatcache.cpp b/src/rocketchatcache.cpp
index b44df7f..7cb69db 100644
--- a/src/rocketchatcache.cpp
+++ b/src/rocketchatcache.cpp
@@ -26,7 +26,6 @@
 #include <KIO/CopyJob>
 #include <QDateTime>
 #include <QDir>
-#include <QNetworkReply>
 #include <QSettings>
 =

 RocketChatCache::RocketChatCache(RocketChatAccount *account, QObject *pare=
nt)
diff --git a/src/ruqolaserverconfig.h b/src/ruqolaserverconfig.h
index 30f9d4b..77b865e 100644
--- a/src/ruqolaserverconfig.h
+++ b/src/ruqolaserverconfig.h
@@ -21,7 +21,6 @@
 #ifndef RUQOLASERVERCONFIG_H
 #define RUQOLASERVERCONFIG_H
 =

-#include <QObject>
 #include "libruqola_private_export.h"
 #include "authenticationmanager.h"
 #include <QString>
diff --git a/src/searchmessage.h b/src/searchmessage.h
index 5c0ba9a..8d80fd0 100644
--- a/src/searchmessage.h
+++ b/src/searchmessage.h
@@ -20,7 +20,6 @@
 #ifndef SEARCHMESSAGE_H
 #define SEARCHMESSAGE_H
 =

-#include <QObject>
 #include <QDebug>
 #include <QJsonObject>
 #include "libruqola_private_export.h"
diff --git a/src/user.h b/src/user.h
index 4e05596..68a4ea2 100644
--- a/src/user.h
+++ b/src/user.h
@@ -22,7 +22,6 @@
 #define USER_H
 =

 #include <QString>
-#include <QObject>
 #include <QDebug>
 #include "libruqola_private_export.h"
 class LIBRUQOLACORE_TESTS_EXPORT User

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic