Files
neochat/src/app/sharehandler.cpp
James Graham b6791485c4 Move remaining code to app module
There's still some stuff that could potentially go elsewhere but I think it's enough for now.
2025-04-18 09:26:17 +00:00

40 lines
661 B
C++

// SPDX-FileCopyrightText: 2023 Tobias Fella <tobias.fella@kde.org>
// SPDX-License-Identifier: LGPL-2.0-or-later
#include "sharehandler.h"
ShareHandler::ShareHandler(QObject *parent)
: QObject(parent)
{
}
QString ShareHandler::text() const
{
return m_text;
}
void ShareHandler::setText(const QString &text)
{
if (text == m_text) {
return;
}
m_text = text;
Q_EMIT textChanged();
}
QString ShareHandler::room() const
{
return m_room;
}
void ShareHandler::setRoom(const QString &roomId)
{
if (roomId == m_room) {
return;
}
m_room = roomId;
Q_EMIT roomChanged();
}
#include "moc_sharehandler.cpp"