mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Pass primitive types by value (#935)
This commit is contained in:
@@ -58,7 +58,7 @@ public:
|
||||
/// @param timeout_ms The timeout in ms
|
||||
/// @return The address+port of web-server or empty if timed out
|
||||
///
|
||||
const QString getFirstService(const searchType &type = searchType::STY_WEBSERVER,const QString &st = "urn:hyperion-project.org:device:basic:1", const int &timeout_ms = 3000);
|
||||
const QString getFirstService(const searchType &type = searchType::STY_WEBSERVER,const QString &st = "urn:hyperion-project.org:device:basic:1", int timeout_ms = 3000);
|
||||
|
||||
///
|
||||
/// @brief Discover services via ssdp.
|
||||
|
@@ -19,7 +19,7 @@ class QNetworkConfigurationManager;
|
||||
class SSDPHandler : public SSDPServer{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SSDPHandler(WebServer* webserver, const quint16& flatBufPort, const quint16& jsonServerPort, const QString &name, QObject * parent = nullptr);
|
||||
SSDPHandler(WebServer* webserver, quint16 flatBufPort, quint16 jsonServerPort, const QString &name, QObject * parent = nullptr);
|
||||
~SSDPHandler();
|
||||
|
||||
///
|
||||
@@ -37,14 +37,14 @@ public slots:
|
||||
/// @brief get state changes from webserver
|
||||
/// @param newState true for started and false for stopped
|
||||
///
|
||||
void handleWebServerStateChange(const bool newState);
|
||||
void handleWebServerStateChange(bool newState);
|
||||
|
||||
///
|
||||
/// @brief Handle settings update from Hyperion Settingsmanager emit
|
||||
/// @param type settingyType from enum
|
||||
/// @param config configuration object
|
||||
///
|
||||
void handleSettingsUpdate(const settings::type& type, const QJsonDocument& config);
|
||||
void handleSettingsUpdate(settings::type type, const QJsonDocument& config);
|
||||
|
||||
private:
|
||||
///
|
||||
@@ -72,7 +72,7 @@ private:
|
||||
/// @brief Send alive/byebye message based on _deviceList
|
||||
/// @param alive When true send alive, else byebye
|
||||
///
|
||||
void sendAnnounceList(const bool alive);
|
||||
void sendAnnounceList(bool alive);
|
||||
|
||||
private slots:
|
||||
///
|
||||
@@ -82,7 +82,7 @@ private slots:
|
||||
/// @param address The ip of the caller
|
||||
/// @param port The port of the caller
|
||||
///
|
||||
void handleMSearchRequest(const QString& target, const QString& mx, const QString address, const quint16 & port);
|
||||
void handleMSearchRequest(const QString& target, const QString& mx, const QString address, quint16 port);
|
||||
|
||||
///
|
||||
/// @brief Handle changes in the network configuration
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
/// @param senderIp Ip address of the sender
|
||||
/// @param senderPort The port of the sender
|
||||
///
|
||||
void sendMSearchResponse(const QString& st, const QString& senderIp, const quint16& senderPort);
|
||||
void sendMSearchResponse(const QString& st, const QString& senderIp, quint16 senderPort);
|
||||
|
||||
///
|
||||
/// @brief Send ByeBye notification (on SSDP stop) (repeated 3 times)
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
///
|
||||
/// @brief set new flatbuffer server port
|
||||
///
|
||||
void setFlatBufPort(const quint16& port) { _fbsPort = QString::number(port); };
|
||||
void setFlatBufPort(quint16 port) { _fbsPort = QString::number(port); };
|
||||
|
||||
///
|
||||
/// @brief Get current flatbuffer server port
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
///
|
||||
/// @brief set new jsonserver server port
|
||||
///
|
||||
void setJsonServerPort(const quint16& port) { _jssPort = QString::number(port); };
|
||||
void setJsonServerPort(quint16 port) { _jssPort = QString::number(port); };
|
||||
|
||||
///
|
||||
/// @brief get new jsonserver server port
|
||||
@@ -112,7 +112,7 @@ signals:
|
||||
/// @param address The ip of the caller
|
||||
/// @param port The port of the caller
|
||||
///
|
||||
void msearchRequestReceived(const QString& target, const QString& mx, const QString address, const quint16 & port);
|
||||
void msearchRequestReceived(const QString& target, const QString& mx, const QString address, quint16 port);
|
||||
|
||||
private:
|
||||
Logger* _log;
|
||||
|
Reference in New Issue
Block a user