|
ACF $AcfVersion:0$
|
Component implementation of ITempFileManager interface. More...
#include <CTempFileManagerComp.h>
Public Types | |
| typedef icomp::CComponentBase | BaseClass |
Public Member Functions | |
| virtual QByteArray | BeginSession (const QString &subPath=QString(), const QByteArray &proposedSessionId=QByteArray()) override |
| Start a new session for managing temporary files. | |
| virtual QByteArray | AddFileItem (const QByteArray &sessionId, const QString &filePath, const QByteArray &proposedSessionId=QByteArray()) override |
| Add a new file to the session. | |
| virtual QString | GetPath (const QByteArray &sessionId, const QByteArray &id) const override |
| Get the generated path of the file or folder by its ID. | |
| virtual bool | RemoveFileItem (const QByteArray &sessionId, const QByteArray &id) override |
| Remove the file or folder given by its ID. | |
| virtual void | FinishSession (const QByteArray &sessionId) override |
| Finish the given session. | |
| virtual void | ResetAllSessions () override |
| Remove all running sessions. | |
Public Member Functions inherited from icomp::CComponentBase | |
| CComponentBase () | |
| Create component and assign it to specific context. | |
| virtual const icomp::IComponent * | GetParentComponent (bool ownerOnly=false) const override |
| Get parent of this component. | |
| virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") override |
| Get access to specified component interface. | |
| virtual IComponentContextSharedPtr | GetComponentContext () const override |
| Get access to component context describing all application-specified component information loaded from components registry. | |
| virtual void | SetComponentContext (const IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner) override |
| Set component context of this component. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Additional Inherited Members | |
Protected Member Functions inherited from icomp::CComponentBase | |
| bool | IsComponentActive () const |
| Check if component is active. | |
| virtual void | OnComponentCreated () |
| virtual void | OnComponentDestroyed () |
| virtual const icomp::IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
| Get access to static info of this component. | |
Static Protected Member Functions inherited from icomp::CComponentBase | |
| static const icomp::IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
| static QByteArray | GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Component implementation of ITempFileManager interface.
Definition at line 21 of file CTempFileManagerComp.h.
Definition at line 24 of file CTempFileManagerComp.h.
|
overridevirtual |
Add a new file to the session.
The generated file path will be inside of the session's base folder.
Implements ifile::ITempFileManager.
|
overridevirtual |
Start a new session for managing temporary files.
A new folder with the name subPath will be created inside of the root directory for the temp files (e.g. system temp). After a session was created, you can generate file paths for temporary files using returned session-ID.
| subPath | Path to the subfolder for the session files inside of the temp directory used for this session. |
| proposedSessionId | The used-ID for the new session. If this value is empty, an unique ID will be generated automatically. |
Implements ifile::ITempFileManager.
|
overridevirtual |
Finish the given session.
All files contained in the session folder and the folder itself will be removed.
Implements ifile::ITempFileManager.
|
overridevirtual |
Get the generated path of the file or folder by its ID.
Implements ifile::ITempFileManager.
|
overridevirtual |
Remove the file or folder given by its ID.
Implements ifile::ITempFileManager.
|
overridevirtual |
Remove all running sessions.
Implements ifile::ITempFileManager.