53 void setId(
const QString &aId);
59 const QString &
getId()
const;
77 void setType(
const QString &aType);
103 virtual bool write(qint64 aOffset,
const QByteArray &aData) = 0;
112 virtual bool read(qint64 aOffset, qint64 aLength, QByteArray &aData)
const = 0;
void setVersion(const QString &aVersion)
Sets the version of this item.
Definition StorageItem.cpp:66
virtual bool resize(qint64 aLen)=0
Sets the length of the item data.
const QString & getParentId() const
Returns the id of the parent of this item.
Definition StorageItem.cpp:51
const QString & getType() const
Gets the type of this item.
Definition StorageItem.cpp:61
const QString & getId() const
Returns the id of the item.
Definition StorageItem.cpp:41
void setId(const QString &aId)
Sets the id of the item.
Definition StorageItem.cpp:36
virtual bool read(qint64 aOffset, qint64 aLength, QByteArray &aData) const =0
Read (part of) the item data.
StorageItem()
Constructor.
Definition StorageItem.cpp:28
virtual qint64 getSize() const =0
Get the size of the item data.
virtual bool write(qint64 aOffset, const QByteArray &aData)=0
Write (part of) the item data.
void setParentId(const QString &aParentId)
Sets the id of the parent of this item.
Definition StorageItem.cpp:46
const QString & getVersion() const
Gets the version of this item.
Definition StorageItem.cpp:71
void setType(const QString &aType)
Sets the type of this item.
Definition StorageItem.cpp:56
virtual ~StorageItem()
Destructor.
Definition StorageItem.cpp:32