Using the C++ API

Install the development headers:

sudo apt-get install liblomiri-connectivity-qt1-dev

Enable c++11 and use pkg-config to get the necessary compilation flags:

$ g++ myapp.cpp -std=c++11 `pkg-config --cflags --libs lomiri-connectivity-qt1` -o myapp
lomiri
Definition networking-status.cpp:28

The headers can then be included as:

// includes the lomiri::connectivity::NetworkingStatus class
#include <lomiri/connectivity/networking-status.h>
networking-status.h

note:
Accessing the networking status from confined applications requires the connectivity policy group.