Verified Commit 00cfb020 authored by Alexander Akulich's avatar Alexander Akulich
Browse files

[declarative] Make startChat() a slot

parent 9293ba6e
......@@ -100,7 +100,6 @@ public:
QHash<int, QByteArray> roleNames() const override;
Q_INVOKABLE bool canChat(const QString &accountId) const;
Q_INVOKABLE void startChat(const QString &accountId, const QString &contactId);
Q_INVOKABLE void setAccountManager(const Tp::AccountManagerPtr &accountManager);
Q_INVOKABLE QVariant data(int index, QByteArray role) const;
Q_INVOKABLE QObject* observerProxy() const;
......@@ -118,6 +117,9 @@ public:
void newRequestedChannel(const QModelIndex &index);
public Q_SLOTS:
void startChat(const QString &accountId, const QString &contactId);
private Q_SLOTS:
void handleChannel(const Tp::AccountPtr &account, const Tp::TextChannelPtr &channel);
void onConversationChanged();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment