[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: socket_qt_addon: kdelibs/kdecore
From: Thiago Macieira <thiagom () mail ! com>
Date: 2003-05-28 11:34:46
[Download RAW message or body]
CVS commit by thiago:
Adding to branch
M +2 -52 kextsocklookup.h 1.3.2.1
--- kdelibs/kdecore/kextsocklookup.h #1.3:1.3.2.1
@@ -19,54 +19,4 @@
*/
-#ifndef KEXTSOCKLOOKUP_H
-#define KEXTSOCKLOOKUP_H
-
-/**
- * @internal
- * What is this class for?
- *
- * Instead of writing the whole lookup code in
- * KExtendedSocket, I preferred writing a separate
- * class to do the dirty work.
- *
- * @author Thiago Macieira <thiagom@mail.com>
- * @short internal lookup class used by @ref KExtendedSocket
- */
-class KExtendedSocketLookup: public QObject
-{
- Q_OBJECT
-public:
- QDns dnsIpv4, dnsIpv6;
- int workingCount; // number of QDns at work
- const QString& servname;
- addrinfo hint;
-
- KExtendedSocketLookup(const QString& hostname, const QString& servname, const \
addrinfo& hint) :
- dnsIpv4(KIDNA::toAscii(hostname), QDns::A), dnsIpv6(KIDNA::toAscii(hostname), \
QDns::Aaaa), workingCount(2),
- servname(servname), hint(hint)
- {
- connect(&dnsIpv4, SIGNAL(resultsReady()), this, SLOT(slotResultsReady()));
- connect(&dnsIpv6, SIGNAL(resultsReady()), this, SLOT(slotResultsReady()));
- }
-
- inline bool isWorking() const
- { return workingCount; }
-
- kde_addrinfo *results();
- static void freeresults(kde_addrinfo* res);
-
-public slots:
- void slotResultsReady()
- {
- if (--workingCount == 0)
- emit resultsReady();
- }
-
-signals:
- void resultsReady();
-
-public:
- friend class KExtendedSocket;
-};
-
-#endif
+// This file is no longer used
+// remove it when merging
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic