Changeset View
Changeset View
Standalone View
Standalone View
plugins/sms/smsplugin.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 105 | public Q_SLOTS: | |||
---|---|---|---|---|---|
107 | 107 | | |||
108 | /** | 108 | /** | ||
109 | * Send a request to the remote for all of its conversations | 109 | * Send a request to the remote for all of its conversations | ||
110 | */ | 110 | */ | ||
111 | Q_SCRIPTABLE void requestAllConversations(); | 111 | Q_SCRIPTABLE void requestAllConversations(); | ||
112 | 112 | | |||
113 | /** | 113 | /** | ||
114 | * Send a request to the remote for a particular conversation | 114 | * Send a request to the remote for a particular conversation | ||
115 | * | ||||
116 | * TODO: Make interface capable of requesting limited window of messages | ||||
apol: Would it be very hard to just do it now? | |||||
I am actually working on this right now. I hope it is not too difficult sredman: I am actually working on this right now. I hope it is not too difficult | |||||
115 | */ | 117 | */ | ||
116 | Q_SCRIPTABLE void requestConversation(const QString& conversationID) const; | 118 | Q_SCRIPTABLE void requestConversation(const qint32& conversationID) const; | ||
117 | 119 | | |||
118 | private: | 120 | private: | ||
119 | 121 | | |||
120 | /** | 122 | /** | ||
121 | * Send to the telepathy plugin if it is available | 123 | * Send to the telepathy plugin if it is available | ||
122 | */ | 124 | */ | ||
123 | void forwardToTelepathy(const ConversationMessage& message); | 125 | void forwardToTelepathy(const ConversationMessage& message); | ||
124 | 126 | | |||
125 | /** | 127 | /** | ||
126 | * Handle a packet which contains many messages, such as PACKET_TYPE_TELEPHONY_MESSAGE | 128 | * Handle a packet which contains many messages, such as PACKET_TYPE_TELEPHONY_MESSAGE | ||
127 | */ | 129 | */ | ||
128 | bool handleBatchMessages(const NetworkPacket& np); | 130 | bool handleBatchMessages(const NetworkPacket& np); | ||
129 | 131 | | |||
130 | QDBusInterface m_telepathyInterface; | 132 | QDBusInterface m_telepathyInterface; | ||
131 | ConversationsDbusInterface* m_conversationInterface; | 133 | ConversationsDbusInterface* m_conversationInterface; | ||
132 | | ||||
133 | }; | 134 | }; | ||
134 | 135 | | |||
135 | #endif | 136 | #endif |
Would it be very hard to just do it now?