~unity-api-team/indicator-network/connectivity-service-source-package-shuffle

« back to all changes in this revision

Viewing changes to doc/qt/cpp/pages/using-cpp.dox

  • Committer: Antti Kaijanmäki
  • Date: 2014-08-14 22:07:10 UTC
  • Revision ID: antti.kaijanmaki@canonical.com-20140814220710-f9m3cvc58u64k1xv
rip out docs for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
\page using-cpp Using the C++ API
3
 
 
4
 
Install the development headers:
5
 
 
6
 
\code{.txt}
7
 
sudo apt-get install libunity-action-qt1-dev
8
 
\endcode
9
 
 
10
 
Use pkg-config to get the necessary compilation flags:
11
 
 
12
 
\code{.txt}
13
 
$ g++ myapp.cpp `pkg-config --cflags --libs unity-action-qt-1` -o myapp
14
 
\endcode
15
 
 
16
 
The headers can then be included as:
17
 
 
18
 
\code{.cpp}
19
 
// includes the unity::action::Action class
20
 
#include <unity/action/Action> 
21
 
\endcode
22
 
 
23
 
*/