Public Member Functions | List of all members
ihotf::CFileSystemChangeStorage Class Reference

Implementation of the file storage. More...

#include <CFileSystemChangeStorage.h>

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

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from ihotf::IFileSystemChangeStorage
enum  ChangeFlags {
  CF_NEW = 0x2363d50, CF_REMOVED, CF_MODIFIED, CF_ATTRIBUTE_CHANGED,
  CF_DATA_RESET
}
 File system change flags. More...
 

Detailed Description

Implementation of the file storage.

All public methods in this component are thread-safe immplemented.

Definition at line 21 of file CFileSystemChangeStorage.h.

Constructor & Destructor Documentation

ihotf::CFileSystemChangeStorage::CFileSystemChangeStorage ( )

Member Function Documentation

virtual QString ihotf::CFileSystemChangeStorage::GetItemPath ( int  fileIndex) const
virtual

Get item path with the given index from the storage.

Implements ihotf::IFileSystemChangeStorage.

virtual int ihotf::CFileSystemChangeStorage::GetItemState ( int  fileIndex) const
virtual

Get item state with the given index from the storage.

Implements ihotf::IFileSystemChangeStorage.

virtual int ihotf::CFileSystemChangeStorage::GetStorageItemsCount ( ) const
virtual

Get number of items in the storage.

Implements ihotf::IFileSystemChangeStorage.

virtual void ihotf::CFileSystemChangeStorage::RemoveStorageItem ( int  itemIndex)
virtual

Remove the item from the storage.

Implements ihotf::IFileSystemChangeStorage.

virtual void ihotf::CFileSystemChangeStorage::ResetStorage ( )
virtual

Reset the storage.

Implements ihotf::IFileSystemChangeStorage.

virtual void ihotf::CFileSystemChangeStorage::UpdateStorageItem ( const QString &  path,
int  changeFlag 
)
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.

Implements ihotf::IFileSystemChangeStorage.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy