ArnLib
4.0.x
Active Registry Network
|
Class for holding current discover info of one service. More...
#include <ArnDiscover.hpp>
Classes | |
struct | State |
State of Arn discover browse data. Can be tested by relative order. More... | |
Public Member Functions | |
ArnDiscoverInfo () | |
ArnDiscoverInfo (const ArnDiscoverInfo &other) | |
ArnDiscoverInfo & | operator= (const ArnDiscoverInfo &other) |
~ArnDiscoverInfo () | |
bool | inProgress () const |
Is discover in progress for this service. More... | |
bool | isError () const |
Is in an error state for this service. More... | |
State | state () const |
Return the state for this service. More... | |
State | stopState () const |
Return the stop state for this service. More... | |
ArnDiscover::Type | type () const |
Return the discover type for this service. More... | |
QStringList | groups () const |
Return the groups for this service. More... | |
QString | serviceName () const |
Return the service name for this service. More... | |
QString | domain () const |
Return the domain for this service. More... | |
QString | hostName () const |
Return the host name for this service. More... | |
quint16 | hostPort () const |
Return the port for this service. More... | |
QHostAddress | hostIp () const |
Return the host ip-address for this service. More... | |
Arn::XStringMap | properties () const |
Return the properties for this service. More... | |
QString | typeString () const |
Return the printable type for this service. More... | |
QString | hostPortString () const |
Return the printable host port for this service. More... | |
QString | hostIpString () const |
Return the printable host ip-address for this service. More... | |
QString | hostWithInfo () const |
Get the the HostWithInfo string. More... | |
int | resolvCode () const |
Return the latest resolv error code for this service. More... | |
Friends | |
class | ArnDiscoverBrowserB |
Class for holding current discover info of one service.
This class holds the service info and its discover state.
Definition at line 72 of file ArnDiscover.hpp.
ArnDiscoverInfo::ArnDiscoverInfo | ( | ) |
Definition at line 60 of file ArnDiscover.cpp.
ArnDiscoverInfo::ArnDiscoverInfo | ( | const ArnDiscoverInfo & | other | ) |
Definition at line 72 of file ArnDiscover.cpp.
ArnDiscoverInfo::~ArnDiscoverInfo | ( | ) |
Definition at line 86 of file ArnDiscover.cpp.
QString ArnDiscoverInfo::domain | ( | ) | const |
Return the domain for this service.
Definition at line 149 of file ArnDiscover.cpp.
QStringList ArnDiscoverInfo::groups | ( | ) | const |
Return the groups for this service.
Groups are used for filtering discovered services. They will also be availabe as properties with naming as "group0", "group1" ...
Definition at line 133 of file ArnDiscover.cpp.
QHostAddress ArnDiscoverInfo::hostIp | ( | ) | const |
Return the host ip-address for this service.
Definition at line 173 of file ArnDiscover.cpp.
QString ArnDiscoverInfo::hostIpString | ( | ) | const |
Return the printable host ip-address for this service.
Will return empty string if no valid ip available
Definition at line 213 of file ArnDiscover.cpp.
QString ArnDiscoverInfo::hostName | ( | ) | const |
Return the host name for this service.
Definition at line 157 of file ArnDiscover.cpp.
quint16 ArnDiscoverInfo::hostPort | ( | ) | const |
QString ArnDiscoverInfo::hostPortString | ( | ) | const |
Return the printable host port for this service.
Will return empty string if no valid port available
Definition at line 205 of file ArnDiscover.cpp.
QString ArnDiscoverInfo::hostWithInfo | ( | ) | const |
Get the the HostWithInfo string.
ArnClient and alike accepts such HostWithInfo strings for connection.
Definition at line 221 of file ArnDiscover.cpp.
bool ArnDiscoverInfo::inProgress | ( | ) | const |
Is discover in progress for this service.
true | if discover is in progress |
Definition at line 93 of file ArnDiscover.cpp.
bool ArnDiscoverInfo::isError | ( | ) | const |
Is in an error state for this service.
true | if in error state |
Definition at line 101 of file ArnDiscover.cpp.
ArnDiscoverInfo & ArnDiscoverInfo::operator= | ( | const ArnDiscoverInfo & | other | ) |
Definition at line 78 of file ArnDiscover.cpp.
XStringMap ArnDiscoverInfo::properties | ( | ) | const |
Return the properties for this service.
Will return booth Arn system properties and custom (application) properties. System properties will always have a key starting with a lower case letter e.g. "protovers".
Definition at line 181 of file ArnDiscover.cpp.
int ArnDiscoverInfo::resolvCode | ( | ) | const |
Return the latest resolv error code for this service.
This code can come from booth resolving a service and lookup ip-address.
Definition at line 227 of file ArnDiscover.cpp.
QString ArnDiscoverInfo::serviceName | ( | ) | const |
Return the service name for this service.
Definition at line 141 of file ArnDiscover.cpp.
ArnDiscoverInfo::State ArnDiscoverInfo::state | ( | ) | const |
Return the state for this service.
Definition at line 109 of file ArnDiscover.cpp.
ArnDiscoverInfo::State ArnDiscoverInfo::stopState | ( | ) | const |
Return the stop state for this service.
The discover logic will stop when reaching the stop state for a service.
Definition at line 117 of file ArnDiscover.cpp.
ArnDiscover::Type ArnDiscoverInfo::type | ( | ) | const |
Return the discover type for this service.
Definition at line 125 of file ArnDiscover.cpp.
QString ArnDiscoverInfo::typeString | ( | ) | const |
Return the printable type for this service.
Definition at line 189 of file ArnDiscover.cpp.
|
friend |
Definition at line 75 of file ArnDiscover.hpp.