PIMQTT::Message now Const & Mutable (as in PIHTTP)
This commit is contained in:
@@ -28,8 +28,6 @@
|
||||
#include "piliterals_time.h"
|
||||
#include "pimqtttypes.h"
|
||||
#include "pip_mqtt_client_export.h"
|
||||
#include "piprotectedvariable.h"
|
||||
#include "pithread.h"
|
||||
#include "pithreadpoolworker.h"
|
||||
|
||||
|
||||
@@ -52,6 +50,7 @@ public:
|
||||
void unsubscribe(const PIString & topic);
|
||||
|
||||
void publish(const PIString & topic, const PIByteArray & msg, QoS qos = QoS::Level0);
|
||||
void publish(const MessageConst & msg);
|
||||
void unsubscribeAll() { unsubscribe("#"); }
|
||||
|
||||
bool isConnecting() const { return m_status == Connecting; }
|
||||
@@ -59,7 +58,7 @@ public:
|
||||
|
||||
EVENT0(connected);
|
||||
EVENT1(disconnected, PIMQTT::Error, code);
|
||||
EVENT1(received, PIMQTT::Message, message);
|
||||
EVENT1(received, PIMQTT::MessageConst, message);
|
||||
|
||||
private:
|
||||
NO_COPY_CLASS(Client)
|
||||
@@ -85,11 +84,11 @@ private:
|
||||
|
||||
void mqtt_connectionLost();
|
||||
void mqtt_deliveryComplete(int token);
|
||||
void mqtt_messageArrived(const Message & msg);
|
||||
void mqtt_messageArrived(const MessageConst & msg);
|
||||
|
||||
void connectInternal(const ConnectInfo & ci);
|
||||
void disconnectInternal();
|
||||
void publishInternal(const Message & m);
|
||||
void publishInternal(const MessageConst & m);
|
||||
void subscribeInternal(const Subscribe & sub);
|
||||
void unsubscribeInternal(const PIString & topic);
|
||||
void destroy();
|
||||
|
||||
Reference in New Issue
Block a user