1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#include "storagerenameoperation.h"
#include "protobufplugininterface.h"
using namespace Flipper;
using namespace Zero;
StorageRenameOperation::StorageRenameOperation(uint32_t id, const QByteArray &oldPath, const QByteArray &newPath, QObject *parent):
AbstractProtobufOperation(id, parent),
m_oldPath(oldPath),
m_newPath(newPath)
{}
const QString StorageRenameOperation::description() const
{
return QStringLiteral("Storage Rename @%1 -> %2").arg(QString(m_oldPath), QString(m_newPath));
}
const QByteArray StorageRenameOperation::encodeRequest(ProtobufPluginInterface *encoder)
{
return encoder->storageRename(id(), m_oldPath, m_newPath);
}
|