• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • network
k3reverseresolver.h
Go to the documentation of this file.
1/* -*- C++ -*-
2 * Copyright (C) 2003,2005 Thiago Macieira <thiago@kde.org>
3 *
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining
6 * a copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25#ifndef KREVERSERESOLVER_H
26#define KREVERSERESOLVER_H
27
29// Needed includes
30#include <QtCore/QObject>
31#include <QtCore/QString>
32
33#include "k3socketaddress.h"
34
35namespace KNetwork {
36
37class KReverseResolverPrivate;
51class KDECORE_EXPORT_DEPRECATED KReverseResolver: public QObject
52{
53 Q_OBJECT
54
55public:
75 enum Flags
76 {
77 NumericHost = 0x01,
78 NumericService = 0x02,
79 NodeNameOnly = 0x04,
80 Datagram = 0x08,
81 NumericScope = 0x10,
82 ResolutionRequired = 0x20
83 };
84
92 explicit KReverseResolver(const KSocketAddress& addr, int flags = 0,
93 QObject *parent = 0L);
94
98 virtual ~KReverseResolver();
99
103 bool isRunning() const;
104
109 bool success() const;
110
115 bool failure() const;
116
121 QString node() const;
122
127 QString service() const;
128
132 const KSocketAddress& address() const;
133
138 bool start();
139
143 virtual bool event(QEvent* );
144
145Q_SIGNALS:
151 void finished(const KNetwork::KReverseResolver& obj);
152
153public:
169 static bool resolve(const KSocketAddress& addr, QString& node,
170 QString& serv, int flags = 0);
171
188 static bool resolve(const struct sockaddr* sa, quint16 salen,
189 QString& node, QString& serv, int flags = 0);
190
191private:
192 KReverseResolverPrivate* const d;
193};
194
195} // namespace KNetwork
196
197#endif
KNetwork::KReverseResolver
Run a reverse-resolution on a socket address.
Definition: k3reverseresolver.h:52
KNetwork::KReverseResolver::finished
void finished(const KNetwork::KReverseResolver &obj)
This signal is emitted when the resolution has finished.
KNetwork::KReverseResolver::Flags
Flags
Flags for the reverse resolution.
Definition: k3reverseresolver.h:76
KNetwork::KSocketAddress
A generic socket address.
Definition: k3socketaddress.h:415
QObject
QString
k3socketaddress.h
KNetwork
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal