Always use system-style includes for libQuotient
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "connection.h"
|
||||
#include "neochatroom.h"
|
||||
#include <connection.h>
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
@@ -40,20 +40,21 @@
|
||||
#include "neochataccountregistry.h"
|
||||
#endif
|
||||
|
||||
#include "csapi/account-data.h"
|
||||
#include "csapi/content-repo.h"
|
||||
#include "csapi/joining.h"
|
||||
#include "csapi/logout.h"
|
||||
#include "csapi/profile.h"
|
||||
#include "events/eventcontent.h"
|
||||
#include <csapi/account-data.h>
|
||||
#include <csapi/content-repo.h>
|
||||
#include <csapi/joining.h>
|
||||
#include <csapi/logout.h>
|
||||
#include <csapi/profile.h>
|
||||
#include <events/eventcontent.h>
|
||||
#include <qt_connection_util.h>
|
||||
#include <settings.h>
|
||||
|
||||
#include "neochatconfig.h"
|
||||
#include "neochatroom.h"
|
||||
#include "neochatuser.h"
|
||||
#include "roommanager.h"
|
||||
#include "settings.h"
|
||||
#include "utils.h"
|
||||
#include "windowcontroller.h"
|
||||
#include <qt_connection_util.h>
|
||||
|
||||
#include <KStandardShortcut>
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
class QKeySequences;
|
||||
|
||||
#include "connection.h"
|
||||
#include "csapi/list_public_rooms.h"
|
||||
#include "room.h"
|
||||
#include "settings.h"
|
||||
#include "user.h"
|
||||
#include <connection.h>
|
||||
#include <csapi/list_public_rooms.h>
|
||||
#include <room.h>
|
||||
#include <settings.h>
|
||||
#include <user.h>
|
||||
|
||||
class NeoChatRoom;
|
||||
class NeoChatUser;
|
||||
|
||||
@@ -2,11 +2,13 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "login.h"
|
||||
#include "connection.h"
|
||||
|
||||
#include <connection.h>
|
||||
#include <qt_connection_util.h>
|
||||
|
||||
#include "controller.h"
|
||||
|
||||
#include <QUrl>
|
||||
#include <qt_connection_util.h>
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "connection.h"
|
||||
#include "csapi/wellknown.h"
|
||||
#include <connection.h>
|
||||
#include <csapi/wellknown.h>
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
14
src/main.cpp
14
src/main.cpp
@@ -26,8 +26,8 @@
|
||||
#include <KDBusService>
|
||||
#endif
|
||||
#ifdef HAVE_WINDOWSYSTEM
|
||||
#include <kwindowsystem_version.h>
|
||||
#include <KWindowSystem>
|
||||
#include <kwindowsystem_version.h>
|
||||
#endif
|
||||
#include <KLocalizedContext>
|
||||
#include <KLocalizedString>
|
||||
@@ -36,11 +36,16 @@
|
||||
#include "neochat-version.h"
|
||||
|
||||
#ifdef QUOTIENT_07
|
||||
#include "accountregistry.h"
|
||||
#include <accountregistry.h>
|
||||
#else
|
||||
#include "neochataccountregistry.h"
|
||||
#endif
|
||||
|
||||
#include <csapi/joining.h>
|
||||
#include <csapi/leaving.h>
|
||||
#include <networkaccessmanager.h>
|
||||
#include <room.h>
|
||||
|
||||
#include "actionshandler.h"
|
||||
#include "blurhashimageprovider.h"
|
||||
#include "chatboxhelper.h"
|
||||
@@ -49,8 +54,6 @@
|
||||
#include "collapsestateproxymodel.h"
|
||||
#include "commandmodel.h"
|
||||
#include "controller.h"
|
||||
#include "csapi/joining.h"
|
||||
#include "csapi/leaving.h"
|
||||
#include "customemojimodel.h"
|
||||
#include "devicesmodel.h"
|
||||
#include "emojimodel.h"
|
||||
@@ -63,7 +66,6 @@
|
||||
#include "neochatconfig.h"
|
||||
#include "neochatroom.h"
|
||||
#include "neochatuser.h"
|
||||
#include "networkaccessmanager.h"
|
||||
#include "notificationsmanager.h"
|
||||
#include "publicroomlistmodel.h"
|
||||
#include "roomlistmodel.h"
|
||||
@@ -76,7 +78,6 @@
|
||||
#include "userlistmodel.h"
|
||||
#include "webshortcutmodel.h"
|
||||
#include "windowcontroller.h"
|
||||
#include <room.h>
|
||||
#ifdef HAVE_COLORSCHEME
|
||||
#include "colorschemer.h"
|
||||
#endif
|
||||
@@ -159,7 +160,6 @@ int main(int argc, char *argv[])
|
||||
KAboutData::setApplicationData(about);
|
||||
QGuiApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("org.kde.neochat")));
|
||||
|
||||
|
||||
#ifdef NEOCHAT_FLATPAK
|
||||
// Copy over the included FontConfig configuration to the
|
||||
// app's config dir:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <QAbstractListModel>
|
||||
|
||||
#include "neochatroom.h"
|
||||
#include "room.h"
|
||||
#include <room.h>
|
||||
|
||||
class MessageEventModel : public QAbstractListModel
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "neochataccountregistry.h"
|
||||
|
||||
#include "connection.h"
|
||||
#include <connection.h>
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
@@ -19,29 +19,30 @@
|
||||
#include <qcoro/qcorosignal.h>
|
||||
#include <qcoro/task.h>
|
||||
|
||||
#include "connection.h"
|
||||
#include "csapi/account-data.h"
|
||||
#include "csapi/content-repo.h"
|
||||
#include "csapi/leaving.h"
|
||||
#include "csapi/redaction.h"
|
||||
#include "csapi/room_state.h"
|
||||
#include "csapi/rooms.h"
|
||||
#include "csapi/typing.h"
|
||||
#include "events/accountdataevents.h"
|
||||
#include "events/reactionevent.h"
|
||||
#include "events/roomcanonicalaliasevent.h"
|
||||
#include "events/roomcreateevent.h"
|
||||
#include "events/roommessageevent.h"
|
||||
#include "events/roompowerlevelsevent.h"
|
||||
#include "events/typingevent.h"
|
||||
#include "jobs/downloadfilejob.h"
|
||||
#include <connection.h>
|
||||
#include <csapi/account-data.h>
|
||||
#include <csapi/content-repo.h>
|
||||
#include <csapi/leaving.h>
|
||||
#include <csapi/redaction.h>
|
||||
#include <csapi/room_state.h>
|
||||
#include <csapi/rooms.h>
|
||||
#include <csapi/typing.h>
|
||||
#include <events/accountdataevents.h>
|
||||
#include <events/eventcontent.h>
|
||||
#include <events/reactionevent.h>
|
||||
#include <events/roomcanonicalaliasevent.h>
|
||||
#include <events/roomcreateevent.h>
|
||||
#include <events/roommessageevent.h>
|
||||
#include <events/roompowerlevelsevent.h>
|
||||
#include <events/typingevent.h>
|
||||
#include <jobs/downloadfilejob.h>
|
||||
#include <qt_connection_util.h>
|
||||
#include <user.h>
|
||||
|
||||
#include "neochatconfig.h"
|
||||
#include "notificationsmanager.h"
|
||||
#include "stickerevent.h"
|
||||
#include "user.h"
|
||||
#include "utils.h"
|
||||
#include <events/eventcontent.h>
|
||||
#include <qt_connection_util.h>
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <events/roommemberevent.h>
|
||||
#include <events/roommessageevent.h>
|
||||
#include <events/simplestateevents.h>
|
||||
#include <room.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QPointer>
|
||||
@@ -19,7 +20,6 @@
|
||||
#include <qcoro/task.h>
|
||||
|
||||
#include "neochatuser.h"
|
||||
#include "room.h"
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "user.h"
|
||||
#include <user.h>
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
#include <QAbstractListModel>
|
||||
#include <QObject>
|
||||
|
||||
#include "connection.h"
|
||||
#include "csapi/definitions/public_rooms_response.h"
|
||||
#include "csapi/list_public_rooms.h"
|
||||
#include <connection.h>
|
||||
#include <csapi/list_public_rooms.h>
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include <QGuiApplication>
|
||||
#include <utility>
|
||||
|
||||
#include "csapi/notifications.h"
|
||||
#include "notificationsmanager.h"
|
||||
#include "roommanager.h"
|
||||
#include <csapi/notifications.h>
|
||||
|
||||
Q_DECLARE_METATYPE(Quotient::JoinState)
|
||||
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "connection.h"
|
||||
#include "events/roomevent.h"
|
||||
#include <connection.h>
|
||||
#include <events/roomevent.h>
|
||||
#include <room.h>
|
||||
|
||||
#include "neochatroom.h"
|
||||
#include "room.h"
|
||||
|
||||
#include <QAbstractListModel>
|
||||
|
||||
|
||||
@@ -166,4 +166,3 @@ private:
|
||||
SortFilterRoomListModel m_model;
|
||||
RoomListModel m_sourceModel;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "controller.h"
|
||||
#ifdef QUOTIENT_07
|
||||
#include "csapi/space_hierarchy.h"
|
||||
#include <csapi/space_hierarchy.h>
|
||||
#endif
|
||||
#include "neochatroom.h"
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "events/eventcontent.h"
|
||||
#include "events/roomevent.h"
|
||||
#include <events/eventcontent.h>
|
||||
#include <events/roomevent.h>
|
||||
|
||||
namespace Quotient
|
||||
{
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include <QAbstractListModel>
|
||||
#include <QObject>
|
||||
|
||||
#include "connection.h"
|
||||
#include "csapi/users.h"
|
||||
#include <connection.h>
|
||||
#include <csapi/users.h>
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
#include "userlistmodel.h"
|
||||
|
||||
#include <connection.h>
|
||||
#include <events/roompowerlevelsevent.h>
|
||||
#include <room.h>
|
||||
#include <user.h>
|
||||
|
||||
#include "events/roompowerlevelsevent.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QElapsedTimer>
|
||||
#include <QPixmap>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "room.h"
|
||||
#include <room.h>
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QObject>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "room.h"
|
||||
#include "user.h"
|
||||
#include <room.h>
|
||||
#include <user.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <QRegularExpression>
|
||||
|
||||
Reference in New Issue
Block a user