KDECore
k3resolver.cpp
Go to the documentation of this file.
634 # ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobynumber_r which returns struct *protoent or NULL
693 # ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobyname_r which returns struct *protoent or NULL
754 # ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobyname_r which returns struct *protoent or NULL
810 # ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyname_r which returns struct *servent or NULL
866 # ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyname_r which returns struct *servent or NULL
926 # ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyport_r which returns struct *servent or NULL
1002 KResolverResults results = resolve(QString::fromLocal8Bit(name), QString::fromLatin1("0"), CanonName);
QList< T > & operator=(const QList< T > &other)
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
void finished(const KNetwork::KResolverResults &results)
This signal is emitted whenever the resolution is finished, one way or another (success or failure)...
QString canonicalName() const
Retrieves the canonical name associated with this entry, if there is any.
Definition: k3resolver.cpp:153
KResolverResults & operator=(const KResolverResults &other)
Assignment operator.
Definition: k3resolver.cpp:217
QString serviceName() const
The service name to which the resolution was/is to be performed.
Definition: k3resolver.cpp:330
Type type() const
QString fromAce(const QByteArray &domain)
KResolverEntry & operator=(const KResolverEntry &other)
Assignment operator.
Definition: k3resolver.cpp:177
void clear()
static QString normalizeDomain(const QString &domain)
Normalise a domain name.
Definition: k3resolver.cpp:1046
Definition: k3resolver.h:411
#define I18N_NOOP2(comment, x)
If the string is too ambiguous to be translated well to a non-english language, use this instead of I...
Definition: klocalizedstring.h:72
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
bool isEmpty() const
void setProtocol(int protonum, const char *name=0L)
Sets the protocol we want.
Definition: k3resolver.cpp:405
Definition: k3resolver.h:370
QByteArray encodedName() const
Retrieves the encoded domain name associated with this entry, if there is any.
Definition: k3resolver.cpp:159
#define I18N_NOOP(x)
I18N_NOOP marks a string to be translated without translating it.
Definition: klocalizedstring.h:51
static KResolverResults resolve(const QString &host, const QString &service, int flags=0, int families=KResolver::InternetFamily)
Resolve the nodename and service name synchronously.
Definition: k3resolver.cpp:582
Definition: k3resolver_p.h:101
QString errorString() const
Returns the textual representation of the error in this object.
Definition: k3resolver.cpp:312
int protocol() const
Retrieves the protocol associated with this entry.
Definition: k3resolver.cpp:171
void setServiceName(const QString &service)
Sets the service name to be resolved.
Definition: k3resolver.cpp:348
KResolverResults results() const
Retrieves the results of this resolution.
Definition: k3resolver.cpp:504
virtual bool event(QEvent *e)
void resize(int size)
const char * name() const
int indexOf(char ch, int from) const
int elapsed() const
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
bool empty() const
int systemError() const
Retrieve the associated system error code in this object.
Definition: k3resolver.cpp:307
QByteArray toAce(const QString &domain)
bool isEmpty() const
Definition: k3resolver.h:437
void setObjectName(const QString &name)
bool isEmpty() const
QCoreApplication * instance()
void deleteLater()
T & first()
Definition: kaboutdata.h:33
static QList< QByteArray > protocolName(int protonum)
Resolves a protocol number to its names.
Definition: k3resolver.cpp:608
QString toLower() const
KSocketAddress address() const
Retrieves the socket address associated with this entry.
Definition: k3resolver.cpp:135
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:1051
static bool resolveAsync(QObject *userObj, const char *userSlot, const QString &host, const QString &service, int flags=0, int families=KResolver::InternetFamily)
Start an asynchronous name resolution.
Definition: k3resolver.cpp:594
quint16 length() const
Retrieves the length of the socket address structure.
Definition: k3resolver.cpp:141
void setNodeName(const QString &nodename)
Sets the nodename for the resolution.
Definition: k3resolver.cpp:336
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:267
QByteArray toLatin1() const
int socketType() const
Retrieves the socket type associated with this entry.
Definition: k3resolver.cpp:165
static QString domainToUnicode(const QByteArray &asciiDomain)
Does the inverse of domainToAscii() and return an Unicode domain name from the given ACE-encoded doma...
Definition: k3resolver.cpp:1032
void setAddress(const QString &host, const QString &service)
Sets the new nodename and service name.
Definition: k3resolver.cpp:260
void setIdnWhitelist(const QStringList &list)
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition: k3resolver.cpp:785
QString serviceName() const
The service name to which the resolution was performed.
Definition: k3resolver.cpp:254
char * data()
QString fromLatin1(const char *str, int size)
void start()
QString nodeName() const
The nodename to which the resolution was/is to be performed.
Definition: k3resolver.cpp:324
Definition: k3resolver.h:412
bool isRunning() const
Returns true if this object is currently running.
Definition: k3resolver.cpp:318
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString nodeName() const
The nodename to which the resolution was performed.
Definition: k3resolver.cpp:248
static int protocolNumber(const char *protoname)
Resolves a protocol name to its number.
Definition: k3resolver.cpp:728
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:229
void setAddress(const QString &node, const QString &service)
Sets both the host and the service names.
Definition: k3resolver.cpp:360
static QByteArray domainToAscii(const QString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.
Definition: k3resolver.cpp:1026
Definition: k3resolver.h:441
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.