~system-settings-touch/ubuntu-system-settings/trunk

« back to all changes in this revision

Viewing changes to plugins/bluetooth/agent.h

  • Committer: CI Train Bot
  • Author(s): Simon Fels
  • Date: 2015-11-20 08:48:49 UTC
  • mfrom: (1528.2.42 uss-bluez5-support)
  • Revision ID: ci-train-bot@canonical.com-20151120084849-fbm0rt429fjd4ir5
Ported the Bluetooth plugin to the changed BlueZ API which comes with version 5.x. The overall device management gets a lot more reliable with this. Superfluous code was dropped when possible. Also the unit tests got a rework and all pass now. Fixes: #1499789
Approved by: Jonas G. Drange, Sebastien Bacher

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    Q_INVOKABLE void confirmPasskey(uint tag, bool confirmed);
42
42
    Q_INVOKABLE void providePasskey(uint tag, bool provided, uint passkey);
43
43
    Q_INVOKABLE void providePinCode(uint tag, bool provided, QString pinCode);
 
44
    Q_INVOKABLE void displayPinCodeCallback(uint tag);
44
45
    Q_INVOKABLE void displayPasskeyCallback(uint tag);
 
46
    Q_INVOKABLE void authorizationRequestCallback(uint tag, bool allow);
45
47
 
46
48
public Q_SLOTS: // received from the system's bluez service
47
49
    void Cancel();
 
50
    void DisplayPinCode(const QDBusObjectPath &path, QString pincode);
48
51
    void DisplayPasskey(const QDBusObjectPath &path, uint passkey, ushort entered);
49
52
    void Release();
50
53
    void RequestConfirmation(const QDBusObjectPath &path, uint passkey);
51
54
    uint RequestPasskey(const QDBusObjectPath &path);
52
55
    QString RequestPinCode(const QDBusObjectPath &path);
 
56
    void RequestAuthorization(const QDBusObjectPath &path);
53
57
 
54
58
Q_SIGNALS:
55
59
    void pinCodeNeeded(int tag, Device* device);
56
60
    void passkeyNeeded(int tag, Device* device);
57
61
    void passkeyConfirmationNeeded(int tag, Device* device, QString passkey);
58
 
    void displayPasskeyNeeded(int tag, Device* device, QString passkey, ushort entered);
59
 
    void pairingDone();
 
62
    void displayPinCodeNeeded(Device* device, QString pincode);
 
63
    void displayPasskeyNeeded(Device* device, QString passkey, ushort entered);
 
64
    void releaseNeeded();
 
65
    void cancelNeeded();
 
66
    void authorizationRequested(int tag, Device* device);
60
67
 
61
68
private:
62
69
    Q_DISABLE_COPY(Agent)