File: using.dox

package info (click to toggle)
lomiri-indicator-network 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,164 kB
  • sloc: cpp: 23,705; xml: 2,868; python: 652; ansic: 224; sh: 54; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*!
\page using-cpp Using the C++ API

Install the development headers:

\code{.txt}
sudo apt-get install liblomiri-connectivity-qt1-dev
\endcode

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

\code{.txt}
$ g++ myapp.cpp -std=c++11 `pkg-config --cflags --libs lomiri-connectivity-qt1` -o myapp
\endcode

The headers can then be included as:

\code{.cpp}
// includes the lomiri::connectivity::NetworkingStatus class
#include <lomiri/connectivity/networking-status.h>
\endcode

<b>note:</b><br />
Accessing the networking status from confined applications requires the <i>connectivity</i> policy group.

*/