Changeset View
Changeset View
Standalone View
Standalone View
smsapp/conversationmodel.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 39 | public: | |||
---|---|---|---|---|---|
49 | 49 | | |||
50 | QString threadId() const; | 50 | QString threadId() const; | ||
51 | void setThreadId(const QString &threadId); | 51 | void setThreadId(const QString &threadId); | ||
52 | 52 | | |||
53 | QString deviceId() const { return m_deviceId; } | 53 | QString deviceId() const { return m_deviceId; } | ||
54 | void setDeviceId(const QString &/*deviceId*/); | 54 | void setDeviceId(const QString &/*deviceId*/); | ||
55 | 55 | | |||
56 | Q_INVOKABLE void sendReplyToConversation(const QString& message); | 56 | Q_INVOKABLE void sendReplyToConversation(const QString& message); | ||
57 | Q_INVOKABLE void requestMoreMessages(const quint32& howMany = 10); | ||||
57 | 58 | | |||
58 | private Q_SLOTS: | 59 | private Q_SLOTS: | ||
59 | void createRowFromMessage(const QVariantMap &msg, int pos); | 60 | void createRowFromMessage(const QVariantMap &msg, int pos); | ||
60 | void handleConversationUpdate(const QVariantMap &msg); | 61 | void handleConversationUpdate(const QVariantMap &msg); | ||
61 | 62 | | |||
62 | private: | 63 | private: | ||
63 | DeviceConversationsDbusInterface* m_conversationsInterface; | 64 | DeviceConversationsDbusInterface* m_conversationsInterface; | ||
64 | QString m_deviceId; | 65 | QString m_deviceId; | ||
65 | QString m_threadId; | 66 | QString m_threadId; | ||
66 | }; | 67 | }; | ||
67 | 68 | | |||
68 | #endif // CONVERSATIONMODEL_H | 69 | #endif // CONVERSATIONMODEL_H |