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
=== modified file 'connection.cpp'
--- connection.cpp 2014-07-01 16:16:07 +0000
+++ connection.cpp 2014-07-23 20:53:09 +0000
@@ -264,6 +264,7 @@
264 QObject::connect(mOfonoNetworkRegistration, SIGNAL(statusChanged(QString)), SLOT(onOfonoNetworkRegistrationChanged(QString)));264 QObject::connect(mOfonoNetworkRegistration, SIGNAL(statusChanged(QString)), SLOT(onOfonoNetworkRegistrationChanged(QString)));
265 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailMessageCountChanged(int)), voicemailIface.data(), SLOT(setVoicemailCount(int)));265 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailMessageCountChanged(int)), voicemailIface.data(), SLOT(setVoicemailCount(int)));
266 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailWaitingChanged(bool)), voicemailIface.data(), SLOT(setVoicemailIndicator(bool)));266 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailWaitingChanged(bool)), voicemailIface.data(), SLOT(setVoicemailIndicator(bool)));
267 QObject::connect(mOfonoMessageWaiting, SIGNAL(voicemailMailboxNumberChanged(QString)), voicemailIface.data(), SLOT(setVoicemailNumber(QString)));
267268
268 QObject::connect(mMmsdManager, SIGNAL(serviceAdded(const QString&)), SLOT(onMMSDServiceAdded(const QString&)));269 QObject::connect(mMmsdManager, SIGNAL(serviceAdded(const QString&)), SLOT(onMMSDServiceAdded(const QString&)));
269 QObject::connect(mMmsdManager, SIGNAL(serviceRemoved(const QString&)), SLOT(onMMSDServiceRemoved(const QString&)));270 QObject::connect(mMmsdManager, SIGNAL(serviceRemoved(const QString&)), SLOT(onMMSDServiceRemoved(const QString&)));
270271
=== modified file 'voicemailiface.cpp'
--- voicemailiface.cpp 2013-06-01 01:50:34 +0000
+++ voicemailiface.cpp 2014-07-23 20:53:09 +0000
@@ -122,6 +122,11 @@
122 Q_EMIT mPriv->adaptee->voicemailCountChanged(uint(count));122 Q_EMIT mPriv->adaptee->voicemailCountChanged(uint(count));
123}123}
124124
125void BaseConnectionVoicemailInterface::setVoicemailNumber(const QString &voicemailNumber)
126{
127 Q_EMIT mPriv->adaptee->voicemailNumberChanged(voicemailNumber);
128}
129
125void BaseConnectionVoicemailInterface::setVoicemailIndicator(bool active)130void BaseConnectionVoicemailInterface::setVoicemailIndicator(bool active)
126{131{
127 Q_EMIT mPriv->adaptee->voicemailIndicatorChanged(active);132 Q_EMIT mPriv->adaptee->voicemailIndicatorChanged(active);
@@ -145,6 +150,7 @@
145{150{
146 connect(adaptee, SIGNAL(voicemailCountChanged(uint)), SIGNAL(VoicemailCountChanged(uint)));151 connect(adaptee, SIGNAL(voicemailCountChanged(uint)), SIGNAL(VoicemailCountChanged(uint)));
147 connect(adaptee, SIGNAL(voicemailIndicatorChanged(bool)), SIGNAL(VoicemailIndicatorChanged(bool)));152 connect(adaptee, SIGNAL(voicemailIndicatorChanged(bool)), SIGNAL(VoicemailIndicatorChanged(bool)));
153 connect(adaptee, SIGNAL(voicemailNumberChanged(QString)), SIGNAL(VoicemailNumberChanged(QString)));
148}154}
149155
150ConnectionInterfaceVoicemailAdaptor::~ConnectionInterfaceVoicemailAdaptor()156ConnectionInterfaceVoicemailAdaptor::~ConnectionInterfaceVoicemailAdaptor()
151157
=== modified file 'voicemailiface.h'
--- voicemailiface.h 2013-06-01 01:50:34 +0000
+++ voicemailiface.h 2014-07-23 20:53:09 +0000
@@ -61,6 +61,7 @@
61public Q_SLOTS:61public Q_SLOTS:
62 void setVoicemailCount(int count);62 void setVoicemailCount(int count);
63 void setVoicemailIndicator(bool active);63 void setVoicemailIndicator(bool active);
64 void setVoicemailNumber(const QString &voicemailNumber);
6465
65protected:66protected:
66 BaseConnectionVoicemailInterface();67 BaseConnectionVoicemailInterface();
@@ -97,6 +98,9 @@
97" <signal name=\"VoicemailIndicatorChanged\">\n"98" <signal name=\"VoicemailIndicatorChanged\">\n"
98" <arg type=\"b\" name=\"active\"/>\n"99" <arg type=\"b\" name=\"active\"/>\n"
99" </signal>\n"100" </signal>\n"
101" <signal name=\"VoicemailNumberChanged\">\n"
102" <arg type=\"s\" name=\"voicemailNumber\"/>\n"
103" </signal>\n"
100" </interface>\n"104" </interface>\n"
101"")105"")
102106
@@ -116,6 +120,7 @@
116Q_SIGNALS: // SIGNALS120Q_SIGNALS: // SIGNALS
117 void VoicemailCountChanged(uint count);121 void VoicemailCountChanged(uint count);
118 void VoicemailIndicatorChanged(bool active);122 void VoicemailIndicatorChanged(bool active);
123 void VoicemailNumberChanged(const QString &voicemailNumber);
119};124};
120125
121126
@@ -135,6 +140,7 @@
135Q_SIGNALS:140Q_SIGNALS:
136 void voicemailCountChanged(uint count);141 void voicemailCountChanged(uint count);
137 void voicemailIndicatorChanged(bool active);142 void voicemailIndicatorChanged(bool active);
143 void voicemailNumberChanged(const QString &voicemailNumber);
138144
139public:145public:
140 BaseConnectionVoicemailInterface *mInterface;146 BaseConnectionVoicemailInterface *mInterface;

Subscribers

People subscribed via source and target branches