6#include <QtCore/QByteArray>
21class IFileResourceTypeConstraints;
31 typedef QList<QByteArray>
Ids;
83 const QByteArray& fileTypeId,
85 const QString& filePath = QString(),
86 const QString& resourceName = QString()) = 0;
137 const QByteArray& resourceId,
138 const QByteArray& resourceTypeId = QByteArray(),
Interface for describing constraints of file types supported by the file repository implementation.
Manager of file-based resources.
virtual QString GetResourceDescription(const QByteArray &resourceId) const =0
Get the description of the file resource in the storage.
virtual bool RemoveFile(const QByteArray &fileId)=0
Remove file from the resources storage.
idoc::MetaInfoPtr MetaInfoPtr
virtual QString GetResourceName(const QByteArray &resourceId) const =0
Get the name of the file resource in the storage.
virtual QByteArray GetResourceTypeId(const QByteArray &resourceId) const =0
Get type ID if the resource.
virtual LicenseStatus GetLicenseStatus(const QByteArray &resourceId, const QByteArray &resourceTypeId=QByteArray(), ilog::IMessageConsumer *messageConsumerPtr=NULL) const =0
Get the license status of the given resource.
virtual const IFileResourceTypeConstraints * GetResourceTypeConstraints() const =0
Get type contraints describing each supported type of a resource.
virtual DataObjectPtr GetDataObject(const QByteArray &fileId) const =0
Get data object for the given resource.
virtual idoc::MetaInfoPtr GetFileMetaInfo(const QByteArray &resourceId) const =0
Get meta info of an existing file resource.
virtual QByteArray CreateNewFile(const QByteArray &fileTypeId, const istd::IChangeable *dataObjectPtr, const QString &filePath=QString(), const QString &resourceName=QString())=0
Create new file resource.
istd::TSharedInterfacePtr< istd::IChangeable > DataObjectPtr
virtual Ids GetFileIds() const =0
Get list of file/resource IDs in the repository.
virtual bool SetResourceName(const QByteArray &resourceId, const QString &name)=0
Set the name of the file resource in the storage.
virtual bool SetResourceDescription(const QByteArray &resourceId, const QString &description)=0
Set the description of the file resource in the storage.
LicenseStatus
Status of the resource license.
@ LS_OK
The resource is licensed and the user of the repository has all neccessary rights for using it.
@ LS_NOT_VALID
The resource is licensed, but the user of the repository has no valid licenses for using it.
@ LS_NONE
The resource is not licensed.
Common interface for a message container consuming information objects (messages).
Common interface for data model objects, which can be changed.
Shared ownership smart pointer for interface types.
Contains interfaces and implementations of file system related components.