nextcloud-desktop/src/gui/tray/talkreply.h
Camila 73bae8cd30
Add TalkReply class and tests.
- Add struct TalkNotificationData to handle token and messageId.
- Handle chat and call notifications with the new struct.
- Add talk token and messageId to data roles in ActivityListModel.
- Add Talk Reply component to the ActivityList.
- User Loader to display the TalkReply component.
- Move Talk Reply from ActivityItem to ActivityItemContent due to PR #4186.
- Use TextField instead of Text.
- Disable send reply button instead of changing border color when field is empty.

Signed-off-by: Camila <hello@camila.codes>
2022-03-17 17:50:33 +01:00

24 lines
460 B
C++

#pragma once
#include <QtCore>
#include <QPointer>
namespace OCC {
class AccountState;
class TalkReply : public QObject
{
Q_OBJECT
public:
explicit TalkReply(AccountState *accountState, QObject *parent = nullptr);
void sendReplyMessage(const QString &conversationToken, const QString &message, const QString &replyTo = {});
signals:
void replyMessageSent(const QString &message);
private:
AccountState *_accountState = nullptr;
};
}