Commit 6a1c01bf authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Added hasPayloadTransferInfo to NetworkPackage

Will be useful for devicelinks other than loopbackdevicelink
parent 13dcd018
......@@ -69,12 +69,13 @@ public:
bool has(const QString& key) const { return mBody.contains(key); }
QIODevice* payload() const { return mPayload; }
void setPayload(QIODevice* device) { mPayload = device;}
void setPayload(QIODevice* device) { mPayload = device; }
bool hasPayload() const { return (mPayload != 0); }
//To be called by a particular DeviceLink
QVariantMap payloadTransferInfo() const { return mPayloadTransferInfo; }
void setPayloadTransferInfo(const QVariantMap& map) { mPayloadTransferInfo = map; }
bool hasPayloadTransferInfo() const { return !mPayloadTransferInfo.isEmpty(); }
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment