Commit 86abdafb authored by Nicolas Jager's avatar Nicolas Jager Committed by Anthony Léonard

Update datatransfer

- update DataTransferInfo and DataTransfer::Info with last daemon
  patch.

Change-Id: Iaac20e12401480f7f11049277ee1ba108ad19c85
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent dafecae2
......@@ -44,6 +44,8 @@ struct Info
std::size_t progress; ///< if status >= on_progress, gives number of bytes tx/rx until now
std::string path;
std::string displayName;
std::string accountId;
std::string peerUri;
};
} // namespace lrc::api::datatransfer
......
......@@ -174,6 +174,8 @@ DataTransferModel::transferInfo(const std::string& lrc_id)
lrc_info.path = dring_info.displayName.toStdString();
lrc_info.displayName = dring_info.displayName.toStdString();
lrc_info.status = convertDataTransferEvent(DRing::DataTransferEventCode(dring_info.lastEvent));
lrc_info.accountId = dring_info.accountId.toStdString();
lrc_info.peerUri = dring_info.peer.toStdString();
return lrc_info;
}
......
......@@ -73,6 +73,8 @@ static inline QDBusArgument &operator<<(QDBusArgument& argument, const DataTrans
argument << info.bytesProgress;
argument << info.displayName;
argument << info.path;
argument << info.accountId;
argument << info.peer;
argument.endStructure();
return argument;
......@@ -87,6 +89,8 @@ static inline const QDBusArgument &operator>>(const QDBusArgument& argument, Dat
argument >> info.bytesProgress;
argument >> info.displayName;
argument >> info.path;
argument >> info.accountId;
argument >> info.peer;
argument.endStructure();
return argument;
......
......@@ -603,6 +603,8 @@ public Q_SLOTS: // METHODS
lrc_info.bytesProgress = dring_info.bytesProgress;
lrc_info.displayName = QString::fromStdString(dring_info.displayName);
lrc_info.path = QString::fromStdString(dring_info.path);
lrc_info.accountId = QString::fromStdString(dring_info.accountId);
lrc_info.peer = QString::fromStdString(dring_info.peer);
return lrc_info;
}
......
......@@ -48,6 +48,8 @@ struct DataTransferInfo
qulonglong bytesProgress;
QString displayName;
QString path;
QString accountId;
QString peer;
};
/**
......
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