Move Neochat specific libQuotient events to their own folder
This commit is contained in:
committed by
Tobias Fella
parent
e0983fcc8c
commit
4b993775c6
@@ -30,11 +30,9 @@ add_library(neochat STATIC
|
||||
models/devicesmodel.cpp
|
||||
filetypesingleton.cpp
|
||||
login.cpp
|
||||
stickerevent.cpp
|
||||
models/webshortcutmodel.cpp
|
||||
blurhash.cpp
|
||||
blurhashimageprovider.cpp
|
||||
joinrulesevent.cpp
|
||||
models/collapsestateproxymodel.cpp
|
||||
urlhelper.cpp
|
||||
windowcontroller.cpp
|
||||
@@ -49,9 +47,11 @@ add_library(neochat STATIC
|
||||
models/searchmodel.cpp
|
||||
texthandler.cpp
|
||||
logger.cpp
|
||||
imagepackevent.cpp
|
||||
stickermodel.cpp
|
||||
imagepacksmodel.cpp
|
||||
events/imagepackevent.cpp
|
||||
events/joinrulesevent.cpp
|
||||
events/stickerevent.cpp
|
||||
)
|
||||
|
||||
add_executable(neochat-app
|
||||
@@ -67,7 +67,7 @@ target_link_libraries(neochat-app PRIVATE
|
||||
|
||||
if(Quotient_VERSION_MINOR GREATER 6)
|
||||
target_compile_definitions(neochat PUBLIC QUOTIENT_07)
|
||||
target_sources(neochat PRIVATE pollevent.cpp pollhandler.cpp)
|
||||
target_sources(neochat PRIVATE events/pollevent.cpp pollhandler.cpp)
|
||||
else()
|
||||
target_compile_definitions(neochat PUBLIC QUOTIENT_VERSION=\"${Quotient_VERSION}\")
|
||||
target_sources(neochat PRIVATE neochataccountregistry.cpp)
|
||||
|
||||
@@ -8,7 +8,7 @@ using namespace Quotient;
|
||||
|
||||
ImagePackEventContent::ImagePackEventContent(const QJsonObject &json)
|
||||
{
|
||||
if(json.contains(QStringLiteral("pack"))) {
|
||||
if (json.contains(QStringLiteral("pack"))) {
|
||||
pack = ImagePackEventContent::Pack{
|
||||
fromJson<Omittable<QString>>(json["pack"].toObject()["display_name"]),
|
||||
#ifdef QUOTIENT_07
|
||||
@@ -49,6 +49,7 @@ ImagePackEventContent::ImagePackEventContent(const QJsonObject &json)
|
||||
}
|
||||
}
|
||||
|
||||
void ImagePackEventContent::fillJson(QJsonObject* o) const {
|
||||
void ImagePackEventContent::fillJson(QJsonObject *o) const
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
// SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
|
||||
#include "imagepacksmodel.h"
|
||||
#include "imagepackevent.h"
|
||||
#include "neochatroom.h"
|
||||
|
||||
#include <KLocalizedString>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "imagepackevent.h"
|
||||
#include "events/imagepackevent.h"
|
||||
#include <QAbstractListModel>
|
||||
#include <QPointer>
|
||||
#include <QVector>
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
#include <user.h>
|
||||
|
||||
#ifdef QUOTIENT_07
|
||||
#include "pollevent.h"
|
||||
#include "events/pollevent.h"
|
||||
#endif
|
||||
#include "stickerevent.h"
|
||||
#include "events/stickerevent.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QGuiApplication>
|
||||
|
||||
@@ -38,16 +38,16 @@
|
||||
#include <qt_connection_util.h>
|
||||
|
||||
#include "controller.h"
|
||||
#include "joinrulesevent.h"
|
||||
#include "events/joinrulesevent.h"
|
||||
#include "neochatconfig.h"
|
||||
#include "neochatuser.h"
|
||||
#include "notificationsmanager.h"
|
||||
#ifdef QUOTIENT_07
|
||||
#include "pollevent.h"
|
||||
#include "events/pollevent.h"
|
||||
#include "pollhandler.h"
|
||||
#endif
|
||||
#include "events/stickerevent.h"
|
||||
#include "filetransferpseudojob.h"
|
||||
#include "stickerevent.h"
|
||||
#include "texthandler.h"
|
||||
|
||||
#ifndef Q_OS_ANDROID
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
|
||||
#include "pollhandler.h"
|
||||
#include "events/pollevent.h"
|
||||
#include "neochatroom.h"
|
||||
#include "pollevent.h"
|
||||
#include <algorithm>
|
||||
#include <csapi/relations.h>
|
||||
#include <events/roompowerlevelsevent.h>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "stickermodel.h"
|
||||
|
||||
#include "imagepackevent.h"
|
||||
#include "imagepacksmodel.h"
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "imagepackevent.h"
|
||||
#include "events/imagepackevent.h"
|
||||
#include "neochatroom.h"
|
||||
#include <QAbstractListModel>
|
||||
#include <QObject>
|
||||
|
||||
Reference in New Issue
Block a user