Changeset View
Changeset View
Standalone View
Standalone View
plugins/sms/conversationsdbusinterface.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 55 | public Q_SLOTS: | |||
---|---|---|---|---|---|
56 | /** | 56 | /** | ||
57 | * Return a list of the first message in every conversation | 57 | * Return a list of the first message in every conversation | ||
58 | * | 58 | * | ||
59 | * Note that the return value is a list of QVariants, which in turn have a value of | 59 | * Note that the return value is a list of QVariants, which in turn have a value of | ||
60 | * QVariantMap created from each message | 60 | * QVariantMap created from each message | ||
61 | */ | 61 | */ | ||
62 | QVariantList activeConversations(); | 62 | QVariantList activeConversations(); | ||
63 | 63 | | |||
64 | /** | ||||
65 | * Request the specified range of the specified conversation | ||||
66 | * | ||||
67 | * Emit conversationUpdated for every requested message | ||||
68 | * | ||||
69 | * If the conversation does not have enough messages to fill the request, | ||||
70 | * this method may return fewer messages | ||||
71 | * | ||||
72 | */ | ||||
64 | void requestConversation(const QString &conversationID, int start, int end); | 73 | void requestConversation(const QString &conversationID, int start, int end); | ||
65 | 74 | | |||
66 | /** | 75 | /** | ||
67 | * Send a new message to this conversation | 76 | * Send a new message to this conversation | ||
68 | */ | 77 | */ | ||
69 | void replyToConversation(const QString& conversationID, const QString& message); | 78 | void replyToConversation(const QString& conversationID, const QString& message); | ||
70 | 79 | | |||
71 | /** | 80 | /** | ||
72 | * Send the request to the Telephony plugin to update the list of conversation threads | 81 | * Send the request to the Telephony plugin to update the list of conversation threads | ||
73 | */ | 82 | */ | ||
74 | void requestAllConversationThreads(); | 83 | void requestAllConversationThreads(); | ||
75 | 84 | | |||
76 | Q_SIGNALS: | 85 | Q_SIGNALS: | ||
77 | Q_SCRIPTABLE void conversationCreated(const QVariantMap& msg); | 86 | Q_SCRIPTABLE void conversationCreated(const QVariantMap& msg); | ||
78 | Q_SCRIPTABLE void conversationRemoved(const QString& threadID); | 87 | Q_SCRIPTABLE void conversationRemoved(const QString& threadID); | ||
79 | Q_SCRIPTABLE void conversationUpdated(const QVariantMap& msg) const; | 88 | Q_SCRIPTABLE void conversationUpdated(const QVariantMap& msg) const; | ||
80 | Q_SCRIPTABLE void conversationMessageReceived(const QVariantMap& msg, int pos) const; | | |||
81 | 89 | | |||
82 | private /*methods*/: | 90 | private /*methods*/: | ||
83 | QString newId(); //Generates successive identifitiers to use as public ids | 91 | QString newId(); //Generates successive identifitiers to use as public ids | ||
84 | 92 | | |||
85 | private /*attributes*/: | 93 | private /*attributes*/: | ||
86 | const Device* m_device; | 94 | const Device* m_device; | ||
87 | KdeConnectPlugin* m_plugin; | 95 | KdeConnectPlugin* m_plugin; | ||
88 | 96 | | |||
Show All 19 Lines |