Public Types | Public Member Functions | List of all members
ihotf::IFileSystemChangeStorage Class Referenceabstract

Common interface for a storage of files. More...

#include <IFileSystemChangeStorage.h>

Inheritance diagram for ihotf::IFileSystemChangeStorage:
istd::IChangeable istd::IPolymorphic ihotf::CFileSystemChangeStorage

Public Types

enum  ChangeFlags {
  CF_NEW = 0x2363d50, CF_REMOVED, CF_MODIFIED, CF_ATTRIBUTE_CHANGED,
  CF_DATA_RESET
}
 File system change flags. More...
 

Public Member Functions

virtual int GetStorageItemsCount () const =0
 Get number of items in the storage. More...
 
virtual QString GetItemPath (int fileIndex) const =0
 Get item path with the given index from the storage. More...
 
virtual int GetItemState (int fileIndex) const =0
 Get item state with the given index from the storage. More...
 
virtual void UpdateStorageItem (const QString &path, int changeFlag)=0
 Update storage item. More...
 
virtual void RemoveStorageItem (int itemIndex)=0
 Remove the item from the storage. More...
 
virtual void ResetStorage ()=0
 Reset the storage. More...
 

Detailed Description

Common interface for a storage of files.

Definition at line 19 of file IFileSystemChangeStorage.h.

Member Enumeration Documentation

File system change flags.

Enumerator
CF_NEW 

File(s) were added.

CF_REMOVED 

File(s) were removed.

CF_MODIFIED 

File(s) were modified.

CF_ATTRIBUTE_CHANGED 

File's attributes were changed.

CF_DATA_RESET 

All data was clear.

Definition at line 25 of file IFileSystemChangeStorage.h.

Member Function Documentation

virtual QString ihotf::IFileSystemChangeStorage::GetItemPath ( int  fileIndex) const
pure virtual

Get item path with the given index from the storage.

Implemented in ihotf::CFileSystemChangeStorage.

virtual int ihotf::IFileSystemChangeStorage::GetItemState ( int  fileIndex) const
pure virtual

Get item state with the given index from the storage.

Implemented in ihotf::CFileSystemChangeStorage.

virtual int ihotf::IFileSystemChangeStorage::GetStorageItemsCount ( ) const
pure virtual

Get number of items in the storage.

Implemented in ihotf::CFileSystemChangeStorage.

virtual void ihotf::IFileSystemChangeStorage::RemoveStorageItem ( int  itemIndex)
pure virtual

Remove the item from the storage.

Implemented in ihotf::CFileSystemChangeStorage.

virtual void ihotf::IFileSystemChangeStorage::ResetStorage ( )
pure virtual

Reset the storage.

Implemented in ihotf::CFileSystemChangeStorage.

virtual void ihotf::IFileSystemChangeStorage::UpdateStorageItem ( const QString &  path,
int  changeFlag 
)
pure virtual

Update storage item.

If the item not exists, new one will be created and added to the storage. If the item is marked as "removed" it will not deleted from the storage. Use RemoveItemStorage, if you want permanently remove the item from the storage.

Implemented in ihotf::CFileSystemChangeStorage.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy