diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-09-03 09:37:49 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-09-03 09:37:49 +0000 |
| commit | 6aa29f3cf73b93797076b5bec4a220c08dc765fb (patch) | |
| tree | 1f1f34b5a70546596a29361d88fd5d3ba6faf353 /src/QXmppSrvLookup.h | |
| parent | 00795301d517e9084f8f9f75b1c271d2da8cc865 (diff) | |
| download | qxmpp-6aa29f3cf73b93797076b5bec4a220c08dc765fb.tar.gz | |
rename QXmppSrvLookup to QXmppSrvInfo, and restore previous API
Diffstat (limited to 'src/QXmppSrvLookup.h')
| -rw-r--r-- | src/QXmppSrvLookup.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/src/QXmppSrvLookup.h b/src/QXmppSrvLookup.h deleted file mode 100644 index 9cac4f83..00000000 --- a/src/QXmppSrvLookup.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2008-2010 The QXmpp developers - * - * Authors: - * Jeremy Lainé - * Manjeet Dahiya - * - * Source: - * http://code.google.com/p/qxmpp - * - * This file is a part of QXmpp library. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - */ - -#ifndef QXMPPSRVLOOKUP_H -#define QXMPPSRVLOOKUP_H - -#include <QList> -#include <QString> - -/// \brief The QXmppSrvLookup class provides static methods for DNS SRV lookups. -/// - -class QXmppSrvLookup -{ -public: - static const QString c2sPrefix; - static const QString s2sPrefix; - - /// \brief Represents a DNS SRV record - /// - class SrvRecord - { - public: - SrvRecord(); - - QString hostName() const; - void setHostName(const QString &hostName); - - quint16 port() const; - void setPort(quint16 port); - - private: - QString host_name; - quint16 host_port; - }; - - QString errorString() const; - QList<QXmppSrvLookup::SrvRecord> records() const; - - bool fromName(const QString &name); - bool fromNameC2S(const QString &domain); - bool fromNameS2S(const QString &domain); - -private: - QString m_errorString; - QList<QXmppSrvLookup::SrvRecord> m_records; -}; - -#endif |
