mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Const correctness, override keyword, a bunch of stuff..
This commit is contained in:
@@ -44,7 +44,7 @@ class BonjourServiceBrowser : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
BonjourServiceBrowser(QObject *parent = 0);
|
||||
~BonjourServiceBrowser();
|
||||
~BonjourServiceBrowser() override;
|
||||
void browseForServiceType(const QString &serviceType);
|
||||
inline QList<BonjourRecord> currentRecords() const { return bonjourRecords; }
|
||||
inline QString serviceType() const { return browsingType; }
|
||||
|
@@ -45,13 +45,13 @@ class BonjourServiceRegister : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
BonjourServiceRegister(QObject *parent = 0);
|
||||
~BonjourServiceRegister();
|
||||
~BonjourServiceRegister() override;
|
||||
|
||||
void registerService(const QString& service, int port);
|
||||
void registerService(const BonjourRecord &record, quint16 servicePort, std::vector<std::pair<std::string, std::string>> txt = std::vector<std::pair<std::string, std::string>>());
|
||||
inline BonjourRecord registeredRecord() const {return finalRecord; }
|
||||
void registerService(const QString& service, int port);
|
||||
void registerService(const BonjourRecord &record, quint16 servicePort, const std::vector<std::pair<std::string, std::string>>& txt = {});
|
||||
inline BonjourRecord registeredRecord() const { return finalRecord; }
|
||||
|
||||
quint16 getPort() const { return _port; };
|
||||
quint16 getPort() const { return _port; }
|
||||
|
||||
signals:
|
||||
void error(DNSServiceErrorType error);
|
||||
@@ -69,8 +69,8 @@ private:
|
||||
QSocketNotifier *bonjourSocket;
|
||||
BonjourRecord finalRecord;
|
||||
|
||||
// current port
|
||||
quint16 _port = 0;
|
||||
// current port
|
||||
quint16 _port = 0;
|
||||
};
|
||||
|
||||
#endif // BONJOURSERVICEREGISTER_H
|
||||
|
@@ -44,8 +44,8 @@ class BonjourServiceResolver : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
BonjourServiceResolver(QObject *parent);
|
||||
~BonjourServiceResolver();
|
||||
BonjourServiceResolver(QObject *parent);
|
||||
~BonjourServiceResolver() override;
|
||||
|
||||
bool resolveBonjourRecord(const BonjourRecord &record);
|
||||
|
||||
|
Reference in New Issue
Block a user