Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ServerResolver.h « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f9366a5cb10634e1918d435a2e3d1d17effb1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2017-2021 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

#ifndef MUMBLE_MUMBLE_SERVERRESOLVER_H_
#define MUMBLE_MUMBLE_SERVERRESOLVER_H_

#include <QtCore/QList>
#include <QtCore/QObject>
#include <QtCore/QString>

#include "Net.h" // for HostAddress
#include "ServerResolverRecord.h"

class ServerResolverPrivate;

class ServerResolver : public QObject {
private:
	Q_OBJECT
	Q_DISABLE_COPY(ServerResolver)
public:
	ServerResolver(QObject *parent = nullptr);

	QString hostname();
	quint16 port();

	void resolve(QString hostname, quint16 port);
	QList< ServerResolverRecord > records();

signals:
	/// Resolved is fired once the ServerResolver
	/// has resolved the server address.
	void resolved();

private:
	ServerResolverPrivate *d;
};

#endif