Skip to content
/ myIP Public

Library to get public network IP using myip.com service. Based on Qt libraries. Written in C++.

License

Notifications You must be signed in to change notification settings

felmur/myIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myIP

Library to get public network IP using myip.com service. Based on Qt libraries. Written in C++.

Installation

Enter in directory myIP:

$> qmake

$> make

$> sudo make install

Usage:

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

License:

This software is released under LGPL V 3.0 license. See "LICENSE" file for more informations.

Credits:

Nothing here.

About

Library to get public network IP using myip.com service. Based on Qt libraries. Written in C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published