Merge lp:~tiagosh/telepathy-ofono/fix-voicemail-indicator into lp:telepathy-ofono

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 89
Merged at revision: 89
Proposed branch: lp:~tiagosh/telepathy-ofono/fix-voicemail-indicator
Merge into: lp:telepathy-ofono
Diff against target: 73 lines (+13/-0)
3 files modified
connection.cpp (+1/-0)
voicemailiface.cpp (+6/-0)
voicemailiface.h (+6/-0)
To merge this branch: bzr merge lp:~tiagosh/telepathy-ofono/fix-voicemail-indicator
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+227990@code.launchpad.net

Commit message

Add VoicemailNumberChanged() signal

Description of the change

Add VoicemailNumberChanged() signal

--Checklist--
Are there any related MPs required for this MP to build/function as expected? Please list.
No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/telepathy-ofono) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
N/A

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
Yes

Did CI run pass? If not, please explain why.
No, but not related to this MR.

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'connection.cpp'
2--- connection.cpp 2014-07-01 16:16:07 +0000
3+++ connection.cpp 2014-07-23 20:53:09 +0000
4@@ -264,6 +264,7 @@
5 QObject::connect(mOfonoNetworkRegistration, SIGNAL(statusChanged(QString)), SLOT(onOfonoNetworkRegistrationChanged(QString)));
6 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailMessageCountChanged(int)), voicemailIface.data(), SLOT(setVoicemailCount(int)));
7 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailWaitingChanged(bool)), voicemailIface.data(), SLOT(setVoicemailIndicator(bool)));
8+ QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailMailboxNumberChanged(QString)), voicemailIface.data(), SLOT(setVoicemailNumber(QString)));
9
10 QObject::connect(mMmsdManager, SIGNAL(serviceAdded(const QString&)), SLOT(onMMSDServiceAdded(const QString&)));
11 QObject::connect(mMmsdManager, SIGNAL(serviceRemoved(const QString&)), SLOT(onMMSDServiceRemoved(const QString&)));
12
13=== modified file 'voicemailiface.cpp'
14--- voicemailiface.cpp 2013-06-01 01:50:34 +0000
15+++ voicemailiface.cpp 2014-07-23 20:53:09 +0000
16@@ -122,6 +122,11 @@
17 Q_EMIT mPriv->adaptee->voicemailCountChanged(uint(count));
18 }
19
20+void BaseConnectionVoicemailInterface::setVoicemailNumber(const QString &voicemailNumber)
21+{
22+ Q_EMIT mPriv->adaptee->voicemailNumberChanged(voicemailNumber);
23+}
24+
25 void BaseConnectionVoicemailInterface::setVoicemailIndicator(bool active)
26 {
27 Q_EMIT mPriv->adaptee->voicemailIndicatorChanged(active);
28@@ -145,6 +150,7 @@
29 {
30 connect(adaptee, SIGNAL(voicemailCountChanged(uint)), SIGNAL(VoicemailCountChanged(uint)));
31 connect(adaptee, SIGNAL(voicemailIndicatorChanged(bool)), SIGNAL(VoicemailIndicatorChanged(bool)));
32+ connect(adaptee, SIGNAL(voicemailNumberChanged(QString)), SIGNAL(VoicemailNumberChanged(QString)));
33 }
34
35 ConnectionInterfaceVoicemailAdaptor::~ConnectionInterfaceVoicemailAdaptor()
36
37=== modified file 'voicemailiface.h'
38--- voicemailiface.h 2013-06-01 01:50:34 +0000
39+++ voicemailiface.h 2014-07-23 20:53:09 +0000
40@@ -61,6 +61,7 @@
41 public Q_SLOTS:
42 void setVoicemailCount(int count);
43 void setVoicemailIndicator(bool active);
44+ void setVoicemailNumber(const QString &voicemailNumber);
45
46 protected:
47 BaseConnectionVoicemailInterface();
48@@ -97,6 +98,9 @@
49 " <signal name=\"VoicemailIndicatorChanged\">\n"
50 " <arg type=\"b\" name=\"active\"/>\n"
51 " </signal>\n"
52+" <signal name=\"VoicemailNumberChanged\">\n"
53+" <arg type=\"s\" name=\"voicemailNumber\"/>\n"
54+" </signal>\n"
55 " </interface>\n"
56 "")
57
58@@ -116,6 +120,7 @@
59 Q_SIGNALS: // SIGNALS
60 void VoicemailCountChanged(uint count);
61 void VoicemailIndicatorChanged(bool active);
62+ void VoicemailNumberChanged(const QString &voicemailNumber);
63 };
64
65
66@@ -135,6 +140,7 @@
67 Q_SIGNALS:
68 void voicemailCountChanged(uint count);
69 void voicemailIndicatorChanged(bool active);
70+ void voicemailNumberChanged(const QString &voicemailNumber);
71
72 public:
73 BaseConnectionVoicemailInterface *mInterface;

Subscribers

People subscribed via source and target branches