Merge lp:~boiko/telephony-service/metrics into lp:telephony-service
- metrics
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Bill Filler |
Approved revision: | 753 |
Merged at revision: | 746 |
Proposed branch: | lp:~boiko/telephony-service/metrics |
Merge into: | lp:telephony-service |
Diff against target: |
315 lines (+151/-7) 9 files modified
CMakeLists.txt (+1/-0) debian/control (+2/-0) indicator/CMakeLists.txt (+3/-0) indicator/callchannelobserver.cpp (+12/-0) indicator/main.cpp (+4/-0) indicator/metrics.cpp (+60/-0) indicator/metrics.h (+53/-0) indicator/textchannelobserver.cpp (+15/-7) indicator/textchannelobserver.h (+1/-0) |
To merge this branch: | bzr merge lp:~boiko/telephony-service/metrics |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bill Filler (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email:
|
Commit message
Add support for user metrics.
Description of the change
Add support for user metrics.
- 751. By Gustavo Pichorim Boiko
-
Remove leftover return statement.
- 752. By Gustavo Pichorim Boiko
-
Add Ugo to the authors section, as he did most of the code.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
- 753. By Gustavo Pichorim Boiko
-
Make ir float point.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:752
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:753
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2013-08-22 17:51:46 +0000 | |||
3 | +++ CMakeLists.txt 2013-09-25 22:22:00 +0000 | |||
4 | @@ -60,6 +60,7 @@ | |||
5 | 60 | pkg_check_modules(NOTIFY REQUIRED libnotify) | 60 | pkg_check_modules(NOTIFY REQUIRED libnotify) |
6 | 61 | pkg_check_modules(MESSAGING_MENU REQUIRED messaging-menu) | 61 | pkg_check_modules(MESSAGING_MENU REQUIRED messaging-menu) |
7 | 62 | pkg_check_modules(GSETTINGS REQUIRED gsettings-qt) | 62 | pkg_check_modules(GSETTINGS REQUIRED gsettings-qt) |
8 | 63 | pkg_check_modules(UserMetrics REQUIRED libusermetricsinput-1) | ||
9 | 63 | 64 | ||
10 | 64 | # Check if the messaging menu has the message header | 65 | # Check if the messaging menu has the message header |
11 | 65 | set(CMAKE_REQUIRED_INCLUDES ${MESSAGING_MENU_INCLUDE_DIRS}) | 66 | set(CMAKE_REQUIRED_INCLUDES ${MESSAGING_MENU_INCLUDE_DIRS}) |
12 | 66 | 67 | ||
13 | === modified file 'debian/control' | |||
14 | --- debian/control 2013-08-29 23:14:15 +0000 | |||
15 | +++ debian/control 2013-09-25 22:22:00 +0000 | |||
16 | @@ -23,6 +23,7 @@ | |||
17 | 23 | qtdeclarative5-test-plugin (>= 5.0), | 23 | qtdeclarative5-test-plugin (>= 5.0), |
18 | 24 | qtmultimedia5-dev (>= 5.0), | 24 | qtmultimedia5-dev (>= 5.0), |
19 | 25 | qtpim5-dev (>= 5), | 25 | qtpim5-dev (>= 5), |
20 | 26 | libusermetricsinput1-dev, | ||
21 | 26 | Standards-Version: 3.9.4 | 27 | Standards-Version: 3.9.4 |
22 | 27 | Homepage: https://launchpad.net/telephony-service | 28 | Homepage: https://launchpad.net/telephony-service |
23 | 28 | # If you aren't a member of ~phablet-team but need to upload packaging changes, | 29 | # If you aren't a member of ~phablet-team but need to upload packaging changes, |
24 | @@ -41,6 +42,7 @@ | |||
25 | 41 | telepathy-mission-control-5, | 42 | telepathy-mission-control-5, |
26 | 42 | telepathy-ofono, | 43 | telepathy-ofono, |
27 | 43 | ubuntu-sounds, | 44 | ubuntu-sounds, |
28 | 45 | libusermetricsinput1, | ||
29 | 44 | dconf-cli, | 46 | dconf-cli, |
30 | 45 | ${misc:Depends}, | 47 | ${misc:Depends}, |
31 | 46 | ${shlibs:Depends}, | 48 | ${shlibs:Depends}, |
32 | 47 | 49 | ||
33 | === modified file 'indicator/CMakeLists.txt' | |||
34 | --- indicator/CMakeLists.txt 2013-08-22 17:51:46 +0000 | |||
35 | +++ indicator/CMakeLists.txt 2013-09-25 22:22:00 +0000 | |||
36 | @@ -2,6 +2,7 @@ | |||
37 | 2 | set(qt_SRCS | 2 | set(qt_SRCS |
38 | 3 | callchannelobserver.cpp | 3 | callchannelobserver.cpp |
39 | 4 | messagingmenu.cpp | 4 | messagingmenu.cpp |
40 | 5 | metrics.cpp | ||
41 | 5 | textchannelobserver.cpp | 6 | textchannelobserver.cpp |
42 | 6 | voicemailindicator.cpp | 7 | voicemailindicator.cpp |
43 | 7 | ) | 8 | ) |
44 | @@ -15,6 +16,7 @@ | |||
45 | 15 | ${GSETTINGS_INCLUDE_DIRS} | 16 | ${GSETTINGS_INCLUDE_DIRS} |
46 | 16 | ${CMAKE_SOURCE_DIR}/libtelephonyservice | 17 | ${CMAKE_SOURCE_DIR}/libtelephonyservice |
47 | 17 | ${CMAKE_CURRENT_BINARY_DIR} | 18 | ${CMAKE_CURRENT_BINARY_DIR} |
48 | 19 | ${UserMetrics_INCLUDE_DIRS} | ||
49 | 18 | ) | 20 | ) |
50 | 19 | 21 | ||
51 | 20 | link_directories(${MESSAGING_MENU_LIBRARY_DIRS}) | 22 | link_directories(${MESSAGING_MENU_LIBRARY_DIRS}) |
52 | @@ -27,6 +29,7 @@ | |||
53 | 27 | ${NOTIFY_LIBRARIES} | 29 | ${NOTIFY_LIBRARIES} |
54 | 28 | ${MESSAGING_MENU_LIBRARIES} | 30 | ${MESSAGING_MENU_LIBRARIES} |
55 | 29 | ${GSETTINGS_LIBRARIES} | 31 | ${GSETTINGS_LIBRARIES} |
56 | 32 | ${UserMetrics_LIBRARIES} | ||
57 | 30 | telephonyservice | 33 | telephonyservice |
58 | 31 | ) | 34 | ) |
59 | 32 | 35 | ||
60 | 33 | 36 | ||
61 | === modified file 'indicator/callchannelobserver.cpp' | |||
62 | --- indicator/callchannelobserver.cpp 2013-08-22 17:51:46 +0000 | |||
63 | +++ indicator/callchannelobserver.cpp 2013-09-25 22:22:00 +0000 | |||
64 | @@ -21,6 +21,8 @@ | |||
65 | 21 | 21 | ||
66 | 22 | #include "callchannelobserver.h" | 22 | #include "callchannelobserver.h" |
67 | 23 | #include "messagingmenu.h" | 23 | #include "messagingmenu.h" |
68 | 24 | #include "metrics.h" | ||
69 | 25 | #include "telepathyhelper.h" | ||
70 | 24 | #include <TelepathyQt/Contact> | 26 | #include <TelepathyQt/Contact> |
71 | 25 | 27 | ||
72 | 26 | CallChannelObserver::CallChannelObserver(QObject *parent) : | 28 | CallChannelObserver::CallChannelObserver(QObject *parent) : |
73 | @@ -51,6 +53,9 @@ | |||
74 | 51 | return; | 53 | return; |
75 | 52 | } | 54 | } |
76 | 53 | 55 | ||
77 | 56 | bool incoming = channel->initiatorContact() != TelepathyHelper::instance()->account()->connection()->selfContact(); | ||
78 | 57 | QDateTime activeTimestamp = channel->property("activeTimestamp").toDateTime(); | ||
79 | 58 | |||
80 | 54 | switch (state) { | 59 | switch (state) { |
81 | 55 | case Tp::CallStateEnded: | 60 | case Tp::CallStateEnded: |
82 | 56 | Q_EMIT callEnded(channel); | 61 | Q_EMIT callEnded(channel); |
83 | @@ -58,6 +63,13 @@ | |||
84 | 58 | // FIXME: handle conf call | 63 | // FIXME: handle conf call |
85 | 59 | MessagingMenu::instance()->addCall(channel->targetContact()->id(), QDateTime::currentDateTime()); | 64 | MessagingMenu::instance()->addCall(channel->targetContact()->id(), QDateTime::currentDateTime()); |
86 | 60 | mChannels.removeOne(channel); | 65 | mChannels.removeOne(channel); |
87 | 66 | |||
88 | 67 | // update the metrics | ||
89 | 68 | Metrics::instance()->increment(incoming ? Metrics::IncomingCalls : Metrics::OutgoingCalls); | ||
90 | 69 | if (activeTimestamp.isValid()) { | ||
91 | 70 | double minutes = activeTimestamp.secsTo(QDateTime::currentDateTime()) / 60.; | ||
92 | 71 | Metrics::instance()->increment(Metrics::CallDurations, qRound(minutes * 100) / 100); | ||
93 | 72 | } | ||
94 | 61 | break; | 73 | break; |
95 | 62 | case Tp::CallStateActive: | 74 | case Tp::CallStateActive: |
96 | 63 | channel->setProperty("activeTimestamp", QDateTime::currentDateTime()); | 75 | channel->setProperty("activeTimestamp", QDateTime::currentDateTime()); |
97 | 64 | 76 | ||
98 | === modified file 'indicator/main.cpp' | |||
99 | --- indicator/main.cpp 2013-08-22 21:51:42 +0000 | |||
100 | +++ indicator/main.cpp 2013-09-25 22:22:00 +0000 | |||
101 | @@ -24,6 +24,7 @@ | |||
102 | 24 | 24 | ||
103 | 25 | #include "applicationutils.h" | 25 | #include "applicationutils.h" |
104 | 26 | #include "callchannelobserver.h" | 26 | #include "callchannelobserver.h" |
105 | 27 | #include "metrics.h" | ||
106 | 27 | #include "telepathyhelper.h" | 28 | #include "telepathyhelper.h" |
107 | 28 | #include "textchannelobserver.h" | 29 | #include "textchannelobserver.h" |
108 | 29 | #include "voicemailindicator.h" | 30 | #include "voicemailindicator.h" |
109 | @@ -69,5 +70,8 @@ | |||
110 | 69 | VoiceMailIndicator voiceMailIndicator; | 70 | VoiceMailIndicator voiceMailIndicator; |
111 | 70 | Q_UNUSED(voiceMailIndicator); | 71 | Q_UNUSED(voiceMailIndicator); |
112 | 71 | 72 | ||
113 | 73 | // instanciate the metrics helper | ||
114 | 74 | Metrics::instance(); | ||
115 | 75 | |||
116 | 72 | return app.exec(); | 76 | return app.exec(); |
117 | 73 | } | 77 | } |
118 | 74 | 78 | ||
119 | === added file 'indicator/metrics.cpp' | |||
120 | --- indicator/metrics.cpp 1970-01-01 00:00:00 +0000 | |||
121 | +++ indicator/metrics.cpp 2013-09-25 22:22:00 +0000 | |||
122 | @@ -0,0 +1,60 @@ | |||
123 | 1 | /* | ||
124 | 2 | * Copyright (C) 2013 Canonical, Ltd. | ||
125 | 3 | * | ||
126 | 4 | * Authors: | ||
127 | 5 | * Gustavo Pichorim Boiko <gustavo.boiko@canonical.com> | ||
128 | 6 | * Ugo Riboni <ugo.riboni@canonical.com> | ||
129 | 7 | * | ||
130 | 8 | * This file is part of telephony-service. | ||
131 | 9 | * | ||
132 | 10 | * telephony-service is free software; you can redistribute it and/or modify | ||
133 | 11 | * it under the terms of the GNU General Public License as published by | ||
134 | 12 | * the Free Software Foundation; version 3. | ||
135 | 13 | * | ||
136 | 14 | * telephony-service is distributed in the hope that it will be useful, | ||
137 | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
138 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
139 | 17 | * GNU General Public License for more details. | ||
140 | 18 | * | ||
141 | 19 | * You should have received a copy of the GNU General Public License | ||
142 | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
143 | 21 | */ | ||
144 | 22 | |||
145 | 23 | #include "metrics.h" | ||
146 | 24 | #include <QDebug> | ||
147 | 25 | |||
148 | 26 | const QString APP_ID = QString("telephony-service"); | ||
149 | 27 | const QString MESSAGES_RECEIVED_STATISTICS_ID = QString("text-messages-received"); | ||
150 | 28 | const QString MESSAGES_SENT_STATISTICS_ID = QString("text-messages-sent"); | ||
151 | 29 | const QString DIALER_INCOMING_STATISTICS_ID = QString("dialer-calls-incoming"); | ||
152 | 30 | const QString DIALER_OUTGOING_STATISTICS_ID = QString("dialer-calls-outgoing"); | ||
153 | 31 | const QString DIALER_CALL_DURATION_STATISTICS_ID = QString("dialer-calls-duration"); | ||
154 | 32 | |||
155 | 33 | using namespace UserMetricsInput; | ||
156 | 34 | |||
157 | 35 | Metrics::Metrics(QObject *parent) : | ||
158 | 36 | QObject(parent), | ||
159 | 37 | mMetricManager(MetricManager::getInstance()) | ||
160 | 38 | { | ||
161 | 39 | mMetrics[SentMessages] = mMetricManager->add(MetricParameters(MESSAGES_SENT_STATISTICS_ID).formatString("<b>%1</b> text messages sent today") | ||
162 | 40 | .emptyDataString("No text messages sent today").textDomain(APP_ID).minimum(0.0)); | ||
163 | 41 | mMetrics[ReceivedMessages] = mMetricManager->add(MetricParameters(MESSAGES_RECEIVED_STATISTICS_ID).formatString("<b>%1</b> text messages received today") | ||
164 | 42 | .emptyDataString("No text messages received today").textDomain(APP_ID).minimum(0.0)); | ||
165 | 43 | mMetrics[IncomingCalls] = mMetricManager->add(MetricParameters(DIALER_INCOMING_STATISTICS_ID).formatString("<b>%1</b> calls received today") | ||
166 | 44 | .emptyDataString("No calls received today").textDomain(APP_ID).minimum(0.0)); | ||
167 | 45 | mMetrics[OutgoingCalls] = mMetricManager->add(MetricParameters(DIALER_OUTGOING_STATISTICS_ID).formatString("<b>%1</b> calls made today") | ||
168 | 46 | .emptyDataString("No calls made today").textDomain(APP_ID).minimum(0.0)); | ||
169 | 47 | mMetrics[CallDurations] = mMetricManager->add(MetricParameters(DIALER_CALL_DURATION_STATISTICS_ID).formatString("Spent <b>%1</b> minutes in calls today") | ||
170 | 48 | .emptyDataString("No calls made today").textDomain(APP_ID).minimum(0.0)); | ||
171 | 49 | } | ||
172 | 50 | |||
173 | 51 | Metrics *Metrics::instance() | ||
174 | 52 | { | ||
175 | 53 | static Metrics *self = new Metrics(); | ||
176 | 54 | return self; | ||
177 | 55 | } | ||
178 | 56 | |||
179 | 57 | void Metrics::increment(Metrics::MetricType metric, double amount) | ||
180 | 58 | { | ||
181 | 59 | mMetrics[metric]->increment(amount); | ||
182 | 60 | } | ||
183 | 0 | 61 | ||
184 | === added file 'indicator/metrics.h' | |||
185 | --- indicator/metrics.h 1970-01-01 00:00:00 +0000 | |||
186 | +++ indicator/metrics.h 2013-09-25 22:22:00 +0000 | |||
187 | @@ -0,0 +1,53 @@ | |||
188 | 1 | /* | ||
189 | 2 | * Copyright (C) 2013 Canonical, Ltd. | ||
190 | 3 | * | ||
191 | 4 | * Authors: | ||
192 | 5 | * Gustavo Pichorim Boiko <gustavo.boiko@canonical.com> | ||
193 | 6 | * Ugo Riboni <ugo.riboni@canonical.com> | ||
194 | 7 | * | ||
195 | 8 | * This file is part of telephony-service. | ||
196 | 9 | * | ||
197 | 10 | * telephony-service is free software; you can redistribute it and/or modify | ||
198 | 11 | * it under the terms of the GNU General Public License as published by | ||
199 | 12 | * the Free Software Foundation; version 3. | ||
200 | 13 | * | ||
201 | 14 | * telephony-service is distributed in the hope that it will be useful, | ||
202 | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
203 | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
204 | 17 | * GNU General Public License for more details. | ||
205 | 18 | * | ||
206 | 19 | * You should have received a copy of the GNU General Public License | ||
207 | 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
208 | 21 | */ | ||
209 | 22 | |||
210 | 23 | #ifndef METRICS_H | ||
211 | 24 | #define METRICS_H | ||
212 | 25 | |||
213 | 26 | #include <QObject> | ||
214 | 27 | #include <QMap> | ||
215 | 28 | #include <libusermetricsinput/MetricManager.h> | ||
216 | 29 | |||
217 | 30 | using namespace UserMetricsInput; | ||
218 | 31 | |||
219 | 32 | class Metrics : public QObject | ||
220 | 33 | { | ||
221 | 34 | Q_OBJECT | ||
222 | 35 | public: | ||
223 | 36 | enum MetricType { | ||
224 | 37 | SentMessages, | ||
225 | 38 | ReceivedMessages, | ||
226 | 39 | IncomingCalls, | ||
227 | 40 | OutgoingCalls, | ||
228 | 41 | CallDurations | ||
229 | 42 | }; | ||
230 | 43 | |||
231 | 44 | static Metrics *instance(); | ||
232 | 45 | void increment(MetricType metric, double amount = 1.0f); | ||
233 | 46 | |||
234 | 47 | private: | ||
235 | 48 | explicit Metrics(QObject *parent = 0); | ||
236 | 49 | QMap<MetricType, UserMetricsInput::MetricPtr> mMetrics; | ||
237 | 50 | UserMetricsInput::MetricManagerPtr mMetricManager; | ||
238 | 51 | }; | ||
239 | 52 | |||
240 | 53 | #endif // METRICS_H | ||
241 | 0 | 54 | ||
242 | === modified file 'indicator/textchannelobserver.cpp' | |||
243 | --- indicator/textchannelobserver.cpp 2013-08-22 17:51:46 +0000 | |||
244 | +++ indicator/textchannelobserver.cpp 2013-09-25 22:22:00 +0000 | |||
245 | @@ -22,6 +22,7 @@ | |||
246 | 22 | #include <libnotify/notify.h> | 22 | #include <libnotify/notify.h> |
247 | 23 | #include "textchannelobserver.h" | 23 | #include "textchannelobserver.h" |
248 | 24 | #include "messagingmenu.h" | 24 | #include "messagingmenu.h" |
249 | 25 | #include "metrics.h" | ||
250 | 25 | #include "chatmanager.h" | 26 | #include "chatmanager.h" |
251 | 26 | #include "config.h" | 27 | #include "config.h" |
252 | 27 | #include "contactutils.h" | 28 | #include "contactutils.h" |
253 | @@ -53,11 +54,6 @@ | |||
254 | 53 | 54 | ||
255 | 54 | void TextChannelObserver::showNotificationForMessage(const Tp::ReceivedMessage &message) | 55 | void TextChannelObserver::showNotificationForMessage(const Tp::ReceivedMessage &message) |
256 | 55 | { | 56 | { |
257 | 56 | // do not place notification items for scrollback messages | ||
258 | 57 | if (message.isScrollback() || message.isDeliveryReport() || message.isRescued()) { | ||
259 | 58 | return; | ||
260 | 59 | } | ||
261 | 60 | |||
262 | 61 | Tp::ContactPtr contact = message.sender(); | 57 | Tp::ContactPtr contact = message.sender(); |
263 | 62 | 58 | ||
264 | 63 | // try to match the contact info | 59 | // try to match the contact info |
265 | @@ -131,12 +127,15 @@ | |||
266 | 131 | connect(textChannel.data(), | 127 | connect(textChannel.data(), |
267 | 132 | SIGNAL(pendingMessageRemoved(const Tp::ReceivedMessage&)), | 128 | SIGNAL(pendingMessageRemoved(const Tp::ReceivedMessage&)), |
268 | 133 | SLOT(onPendingMessageRemoved(const Tp::ReceivedMessage&))); | 129 | SLOT(onPendingMessageRemoved(const Tp::ReceivedMessage&))); |
269 | 130 | connect(textChannel.data(), | ||
270 | 131 | SIGNAL(messageSent(Tp::Message,Tp::MessageSendingFlags,QString)), | ||
271 | 132 | SLOT(onMessageSent(Tp::Message,Tp::MessageSendingFlags,QString))); | ||
272 | 134 | 133 | ||
273 | 135 | mChannels.append(textChannel); | 134 | mChannels.append(textChannel); |
274 | 136 | 135 | ||
275 | 137 | // notify all the messages from the channel | 136 | // notify all the messages from the channel |
276 | 138 | Q_FOREACH(Tp::ReceivedMessage message, textChannel->messageQueue()) { | 137 | Q_FOREACH(Tp::ReceivedMessage message, textChannel->messageQueue()) { |
278 | 139 | showNotificationForMessage(message); | 138 | onMessageReceived(message); |
279 | 140 | } | 139 | } |
280 | 141 | } | 140 | } |
281 | 142 | 141 | ||
282 | @@ -148,7 +147,11 @@ | |||
283 | 148 | 147 | ||
284 | 149 | void TextChannelObserver::onMessageReceived(const Tp::ReceivedMessage &message) | 148 | void TextChannelObserver::onMessageReceived(const Tp::ReceivedMessage &message) |
285 | 150 | { | 149 | { |
287 | 151 | showNotificationForMessage(message); | 150 | // do not place notification items for scrollback messages |
288 | 151 | if (!message.isScrollback() && !message.isDeliveryReport() && !message.isRescued()) { | ||
289 | 152 | showNotificationForMessage(message); | ||
290 | 153 | Metrics::instance()->increment(Metrics::ReceivedMessages); | ||
291 | 154 | } | ||
292 | 152 | } | 155 | } |
293 | 153 | 156 | ||
294 | 154 | void TextChannelObserver::onPendingMessageRemoved(const Tp::ReceivedMessage &message) | 157 | void TextChannelObserver::onPendingMessageRemoved(const Tp::ReceivedMessage &message) |
295 | @@ -166,3 +169,8 @@ | |||
296 | 166 | QString messageId(QByteArray::fromHex(encodedMessageId.toUtf8())); | 169 | QString messageId(QByteArray::fromHex(encodedMessageId.toUtf8())); |
297 | 167 | ChatManager::instance()->acknowledgeMessage(phoneNumber, messageId); | 170 | ChatManager::instance()->acknowledgeMessage(phoneNumber, messageId); |
298 | 168 | } | 171 | } |
299 | 172 | |||
300 | 173 | void TextChannelObserver::onMessageSent(Tp::Message, Tp::MessageSendingFlags, QString) | ||
301 | 174 | { | ||
302 | 175 | Metrics::instance()->increment(Metrics::SentMessages); | ||
303 | 176 | } | ||
304 | 169 | 177 | ||
305 | === modified file 'indicator/textchannelobserver.h' | |||
306 | --- indicator/textchannelobserver.h 2013-08-22 17:51:46 +0000 | |||
307 | +++ indicator/textchannelobserver.h 2013-09-25 22:22:00 +0000 | |||
308 | @@ -45,6 +45,7 @@ | |||
309 | 45 | void onPendingMessageRemoved(const Tp::ReceivedMessage &message); | 45 | void onPendingMessageRemoved(const Tp::ReceivedMessage &message); |
310 | 46 | void onReplyReceived(const QString &phoneNumber, const QString &reply); | 46 | void onReplyReceived(const QString &phoneNumber, const QString &reply); |
311 | 47 | void onMessageRead(const QString &phoneNumber, const QString &encodedMessageId); | 47 | void onMessageRead(const QString &phoneNumber, const QString &encodedMessageId); |
312 | 48 | void onMessageSent(Tp::Message, Tp::MessageSendingFlags, QString); | ||
313 | 48 | 49 | ||
314 | 49 | private: | 50 | private: |
315 | 50 | QList<Tp::TextChannelPtr> mChannels; | 51 | QList<Tp::TextChannelPtr> mChannels; |
PASSED: Continuous integration, rev:751 jenkins. qa.ubuntu. com/job/ telephony- service- ci/43/ jenkins. qa.ubuntu. com/job/ telephony- service- saucy-amd64- ci/43 jenkins. qa.ubuntu. com/job/ telephony- service- saucy-armhf- ci/43 jenkins. qa.ubuntu. com/job/ telephony- service- saucy-armhf- ci/43/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ telephony- service- saucy-i386- ci/43
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ telephony- service- ci/43/rebuild
http://