1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifndef MUMBLE_MUMBLE_SERVERRESOLVERRECORD_H_
7 #define MUMBLE_MUMBLE_SERVERRESOLVERRECORD_H_
8 
9 #include <QtCore/QString>
10 #include <QtCore/QList>
11 
12 #include "Net.h" // for HostAddress
13 
14 class ServerResolverRecord {
15 	public:
16 		ServerResolverRecord();
17 		ServerResolverRecord(QString hostname_, quint16 port_, qint64 priority_, QList<HostAddress> addresses_);
18 
19 		QString hostname();
20 		quint16 port();
21 		qint64 priority();
22 		QList<HostAddress> addresses();
23 
24 	protected:
25 		QString m_hostname;
26 		quint16 m_port;
27 		qint64 m_priority;
28 		QList<HostAddress> m_addresses;
29 };
30 
31 #endif
32