using-cpp

# Using the C++ API

Install the development headers:

    sudoapt-getinstalllibconnectivity-qt1-dev

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

    $g++myapp.cpp-std=c++11`pkg-config--cflags--libsconnectivity-qt1`-omyapp

The headers can then be included as:

    //includestheubuntu::connectivity::NetworkingStatusclass
    #include<ubuntu/connectivity/networking-status.h>

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