~mzanetti/ubuntu-system-settings/bt-input

« back to all changes in this revision

Viewing changes to plugins/bluetooth/agent.cpp

  • Committer: Michael Zanetti
  • Date: 2014-12-05 13:30:58 UTC
  • Revision ID: michael.zanetti@canonical.com-20141205133058-blpsj8t6uuu1vdnw
drop debug prints

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <cassert>
24
24
 
25
 
#include <QDebug>
26
25
 
27
26
/***
28
27
****
78
77
 */
79
78
void Agent::RequestConfirmation(const QDBusObjectPath &objectPath, uint passkey)
80
79
{
81
 
    qWarning() << "*** requestconfirmation";
82
80
    auto device = m_devices.getDeviceFromPath(objectPath.path());
83
81
    if (device) {
84
82
        const uint tag = m_tag++;
103
101
 */
104
102
void Agent::confirmPasskey(uint tag, bool confirmed)
105
103
{
106
 
    qWarning() << "*** confirm passkey";
107
104
    if (m_delayedReplies.contains(tag)) {
108
105
        QDBusMessage message = m_delayedReplies[tag];
109
106
 
131
128
 */
132
129
unsigned int Agent::RequestPasskey(const QDBusObjectPath &objectPath)
133
130
{
134
 
    qWarning() << "*** request passkey";
135
131
    auto device = m_devices.getDeviceFromPath(objectPath.path());
136
132
    if (device) {
137
133
        const uint tag = m_tag++;
159
155
 */
160
156
void Agent::providePasskey(uint tag, bool provided, uint passkey)
161
157
{
162
 
    qWarning() << "*** providePassKey";
163
158
    if (m_delayedReplies.contains(tag)) {
164
159
        if (provided)
165
160
            m_connection.send(m_delayedReplies[tag].createReply(passkey));
186
181
 */
187
182
QString Agent::RequestPinCode(const QDBusObjectPath &objectPath)
188
183
{
189
 
    qWarning() << "*** should request pin code";
190
184
    auto device = m_devices.getDeviceFromPath(objectPath.path());
191
185
    if (device) {
192
186
        const uint tag = m_tag++;
213
207
 */
214
208
void Agent::providePinCode(uint tag, bool confirmed, QString pinCode)
215
209
{
216
 
    qWarning() << "*** privide pin code" << pinCode;
217
210
    if (m_delayedReplies.contains(tag)) {
218
211
        QDBusMessage message = m_delayedReplies[tag];
219
212
 
236
229
    Q_UNUSED(passkey);
237
230
    Q_UNUSED(entered);
238
231
 
239
 
    qWarning() << "*** should display pin code" << objectPath.path() << passkey << entered;
240
232
    // unimplemented -- unneeded for headsets
241
233
}
242
234