← Back to team overview

touch-packages team mailing list archive

[Bug 1531380] Re: cannot get network status changes with connectivity-api

 

For at least the c++ example, it seems the example code connect call
should be at least:

    QObject::connect(ns.data(),
                     &NetworkingStatus::statusChanged,
                     [=](NetworkingStatus::Status value)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to indicator-network in
Ubuntu.
https://bugs.launchpad.net/bugs/1531380

Title:
  cannot get network status changes with connectivity-api

Status in indicator-network package in Ubuntu:
  New

Bug description:
  Using Nexus 4, Ubuntu 15.04 (r330) (rc-proposed)

  The bearer plugin that uses connectivity-api used to work (ubuntu touch) back in November :
  https://codereview.qt-project.org/#/c/140752/

  It still compiles, but now I get:

  2016-01-06T13:28:29 (unknown:0) - QObject::connect: Cannot queue arguments of type 'Status'
  (Make sure 'Status' is registered using qRegisterMetaType().)

  at the first time the next status changes.

  I also tried the connectivity-api example (after fixing up network-status.h include path)
  https://developer.ubuntu.com/api/devel/ubuntu-14.10/cplusplus/connectivity-api/networking-status.html

  and never receive network status change signal.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-network/+bug/1531380/+subscriptions


References