Library to get public network IP using myip.com service. Based on Qt libraries. Written in C++.
Enter in directory myIP:
$> qmake
$> make
$> sudo make install
To use libmyIP in classic widgets application, you must connect the lybrary's signal IPready to a private or public slot created in the window/widget class. The slot will receive an ipdata class from IPready signal. Please, look the ipdata structure in myip.h file for more informations. Example:
// initialize the library and contact myip.com site
MyIP *mip = new MyIP();
// now connect the library IPready signal to slot printIP of myQCoreApplication
QObject::connect(mip, SIGNAL(IPready(ipdata)), &a, SLOT(printIP(ipdata)));
To use libmyIP in QTConsole application (like in the example), we have to subclass QCoreApplication in order to add printIP(ipdata) slot, which will print out the IP. Please, look at myqcoreapplication.h and myqcoreapplication.cpp
This software is released under LGPL V 3.0 license. See "LICENSE" file for more informations.
Nothing here.