Added hasPayloadTransferInfo to NetworkPackage
Will be useful for devicelinks other than loopbackdevicelink
This commit is contained in:
parent
13dcd01819
commit
6a1c01bfeb
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue