Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
SoftwareAndServices::Library::Common::Qt5::IPv6 Class Reference

Implements a Qt5 IPv6 input widget. More...

#include </home/doug/src/SoftwareAndServices/libSaSCommon/Qt/Qt5/lib/IPv6/IPv6.hpp>

+ Inheritance diagram for SoftwareAndServices::Library::Common::Qt5::IPv6:
+ Collaboration diagram for SoftwareAndServices::Library::Common::Qt5::IPv6:

Public Slots

void Set (const in6_addr &TheIpV6Address)
 Set the IPv6 address. More...
 
void Set (const sockaddr_in6 &TheIPv6Address)
 Set the IPv6 address. More...
 
void Set (const char *TheIPv6Address)
 Set the IPv6 address. More...
 
void Set (const in_addr_t &TheIpV4Address)
 Set the IPv6 address. More...
 
void Set (const sockaddr &TheIpV4Address)
 Set the IPv6 address. More...
 
void Set (const sockaddr_in &TheIpV4Address)
 Set the IPv6 address. More...
 
void Set (const QString &TheIPv6Address)
 Set the IPv6 address. More...
 
void Set (const String &TheIPv6Address)
 Set the IPv6 address. More...
 
void Set (const QHostAddress &TheIPv6Address)
 Set the IPv6 address from a QHostAddress. More...
 

Signals

void Changed (const QString &TheText)
 This method will be called when the IPv6 value has changed. More...
 
void ErrorMessage (const QString &ErrorText)
 Sends any error message. More...
 
void RangeError ()
 Range error, value is not valid for an IP address octet. More...
 
void ValueError ()
 Value error, value is not valid for an IP address octet. More...
 

Public Member Functions

 IPv6 (QWidget *parent=0)
 IPv6 - Constructor. More...
 
virtual ~IPv6 ()
 IPv6 - Destructor. More...
 
QFrame & Frame () const
 Get the IPv6 frame. More...
 
in_addr_t GetAsIPv4 () const
 Test if this object is an IPv4 address represented as a IPv6 address. More...
 
 operator const char * () const
 Cast and return the value as a (char*). More...
 
 operator in6_addr () const
 Cast and return the value as a in6_addr. More...
 
 operator IpAddress & () const
 Cast and return the value as a SoftwareAndServices::Library::Common::IpAddress. More...
 
 operator sockaddr_in6 & () const
 Cast and return the value as a sockaddr_in. More...
 

Private Member Functions

void retranslateUi (QWidget *SoftwareAndServices__Library__Common__Qt5__IPv6)
 
void retranslateUi (QWidget *SoftwareAndServices__Library__Common__Qt5__IPv6)
 
void setupUi (QWidget *SoftwareAndServices__Library__Common__Qt5__IPv6)
 
void setupUi (QWidget *SoftwareAndServices__Library__Common__Qt5__IPv6)
 

Private Attributes

QFrame * AAAAFrame
 
QLabel * colon1
 
QLabel * colon2
 
QLabel * colon3
 
QLabel * colon4
 
QLabel * colon5
 
QLabel * colon6
 
QLabel * colon7
 
QHBoxLayout * horizontalLayout
 
QHBoxLayout * horizontalLayout_2
 
QLineEdit * IPv6_1
 
QLineEdit * IPv6_2
 
QLineEdit * IPv6_3
 
QLineEdit * IPv6_4
 
QLineEdit * IPv6_5
 
QLineEdit * IPv6_6
 
QLineEdit * IPv6_7
 
QLineEdit * IPv6_8
 

Detailed Description

Implements a Qt5 IPv6 input widget.

IPv6_Image.png
HostName Widget

Definition at line 82 of file IPv6.hpp.

Constructor & Destructor Documentation

◆ IPv6()

SoftwareAndServices::Library::Common::Qt5::IPv6::IPv6 ( QWidget *  parent = 0)

IPv6 - Constructor.

◆ ~IPv6()

virtual SoftwareAndServices::Library::Common::Qt5::IPv6::~IPv6 ( )
virtual

IPv6 - Destructor.

Member Function Documentation

◆ Changed

void SoftwareAndServices::Library::Common::Qt5::IPv6::Changed ( const QString &  TheText)
signal

This method will be called when the IPv6 value has changed.

Parameters
TheTextIPv6 current value.

◆ ErrorMessage

void SoftwareAndServices::Library::Common::Qt5::IPv6::ErrorMessage ( const QString &  ErrorText)
signal

Sends any error message.

Parameters
ErrorTextThe error message.

◆ Frame()

QFrame& SoftwareAndServices::Library::Common::Qt5::IPv6::Frame ( ) const

Get the IPv6 frame.

Used by upper layers to turn on/off or alter the border.

Returns
This objects QFrame.

◆ GetAsIPv4()

in_addr_t SoftwareAndServices::Library::Common::Qt5::IPv6::GetAsIPv4 ( ) const

Test if this object is an IPv4 address represented as a IPv6 address.

Note
The IPv4 address 93.184.216.34 IPv4 address is represended as ::FFFF:93.184.216.34 .
Returns
The IPv4 address, or zero if not convertable.

◆ operator const char *()

SoftwareAndServices::Library::Common::Qt5::IPv6::operator const char * ( ) const

Cast and return the value as a (char*).

Note
The value will be freed when this object is deleted, caller should make a copy if the value is needed past this objects instance.

◆ operator in6_addr()

SoftwareAndServices::Library::Common::Qt5::IPv6::operator in6_addr ( ) const

Cast and return the value as a in6_addr.

◆ operator IpAddress &()

SoftwareAndServices::Library::Common::Qt5::IPv6::operator IpAddress & ( ) const

Cast and return the value as a SoftwareAndServices::Library::Common::IpAddress.

◆ operator sockaddr_in6 &()

SoftwareAndServices::Library::Common::Qt5::IPv6::operator sockaddr_in6 & ( ) const

Cast and return the value as a sockaddr_in.

◆ RangeError

void SoftwareAndServices::Library::Common::Qt5::IPv6::RangeError ( )
signal

Range error, value is not valid for an IP address octet.

Can only be 0-255.

Note
This is only reported for each octet entered when the value of the octet is more than 255.

◆ Set [1/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const in6_addr &  TheIpV6Address)
slot

Set the IPv6 address.

Parameters
TheIpV4AddressSet this object to this IPv6 address.

◆ Set [2/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const sockaddr_in6 &  TheIPv6Address)
slot

Set the IPv6 address.

Parameters
TheIPv6AddressSet this object to this IPv6 address.

◆ Set [3/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const char *  TheIPv6Address)
slot

Set the IPv6 address.

The address is expected to be in the form aaa.bbb.ccc.ddd. (Example: 192.168.1.10)

Parameters
TheIPv6AddressSet this object to this IPv6 address.

◆ Set [4/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const in_addr_t &  TheIpV4Address)
slot

Set the IPv6 address.

Parameters
TheIpV4AddressSet this object to this IPv4 address.
Note
The IPv4 address 93.184.216.34 IPv4 address is represended as ::FFFF:93.184.216.34 .

◆ Set [5/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const sockaddr &  TheIpV4Address)
slot

Set the IPv6 address.

Parameters
TheIpV4AddressSet this object to this IPv4 address.
Note
The IPv4 address 93.184.216.34 IPv4 address is represended as ::FFFF:93.184.216.34 .

◆ Set [6/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const sockaddr_in &  TheIpV4Address)
slot

Set the IPv6 address.

Parameters
TheIpV4AddressSet this object to this IPv4 address.
Note
The IPv4 address 93.184.216.34 IPv4 address is represended as ::FFFF:93.184.216.34 .

◆ Set [7/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const QString &  TheIPv6Address)
slot

Set the IPv6 address.

The address is expected to be in the form aaa.bbb.ccc.ddd. (Example: 192.168.1.10)

Parameters
TheIPv6AddressSet this object to this IPv6 address. It can also be an IPv4 address in dot notation.

◆ Set [8/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const String TheIPv6Address)
slot

Set the IPv6 address.

The address is expected to be in the form aaa.bbb.ccc.ddd. (Example: 192.168.1.10)

Parameters
TheIPv6AddressSet this object to this IPv6 address. It can also be an IPv4 address in dot notation.

◆ Set [9/9]

void SoftwareAndServices::Library::Common::Qt5::IPv6::Set ( const QHostAddress &  TheIPv6Address)
slot

Set the IPv6 address from a QHostAddress.

Parameters
TheIPv6AddressSet this object to this IPv6 address. If a IPv4 address, it will be converted and saved.

◆ ValueError

void SoftwareAndServices::Library::Common::Qt5::IPv6::ValueError ( )
signal

Value error, value is not valid for an IP address octet.

Only the digits 0-9 can be entered.

Note
This is reported for each character that is entered that is not 0-9.

The documentation for this class was generated from the following file: