Changeset View
Changeset View
Standalone View
Standalone View
plugins/sms/smsplugin.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 102 | public Q_SLOTS: | |||
---|---|---|---|---|---|
104 | 104 | | |||
105 | /** | 105 | /** | ||
106 | * Send a request to the remote for all of its conversations | 106 | * Send a request to the remote for all of its conversations | ||
107 | */ | 107 | */ | ||
108 | Q_SCRIPTABLE void requestAllConversations(); | 108 | Q_SCRIPTABLE void requestAllConversations(); | ||
109 | 109 | | |||
110 | /** | 110 | /** | ||
111 | * Send a request to the remote for a particular conversation | 111 | * Send a request to the remote for a particular conversation | ||
112 | * | ||||
113 | * 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 | |||||
112 | */ | 114 | */ | ||
113 | Q_SCRIPTABLE void requestConversation(const QString& conversationID) const; | 115 | Q_SCRIPTABLE void requestConversation(const QString& conversationID) const; | ||
114 | 116 | | |||
115 | private: | 117 | private: | ||
116 | 118 | | |||
117 | /** | 119 | /** | ||
118 | * Send to the telepathy plugin if it is available | 120 | * Send to the telepathy plugin if it is available | ||
119 | */ | 121 | */ | ||
120 | void forwardToTelepathy(const ConversationMessage& message); | 122 | void forwardToTelepathy(const ConversationMessage& message); | ||
121 | 123 | | |||
122 | /** | 124 | /** | ||
123 | * Handle a packet which contains many messages, such as PACKET_TYPE_TELEPHONY_MESSAGE | 125 | * Handle a packet which contains many messages, such as PACKET_TYPE_TELEPHONY_MESSAGE | ||
124 | */ | 126 | */ | ||
125 | bool handleBatchMessages(const NetworkPacket& np); | 127 | bool handleBatchMessages(const NetworkPacket& np); | ||
126 | 128 | | |||
127 | QDBusInterface m_telepathyInterface; | 129 | QDBusInterface m_telepathyInterface; | ||
128 | ConversationsDbusInterface* m_conversationInterface; | 130 | ConversationsDbusInterface* m_conversationInterface; | ||
129 | | ||||
130 | }; | 131 | }; | ||
131 | 132 | | |||
132 | #endif | 133 | #endif |
Would it be very hard to just do it now?