IFileSystemChangeStorage.h
Go to the documentation of this file.
1 #ifndef ihotf_IFileSystemChangeStorage_included
2 #define ihotf_IFileSystemChangeStorage_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include <istd/IChangeable.h>
10 
11 
12 namespace ihotf
13 {
14 
15 
20 {
21 public:
26  {
30  CF_NEW = 0x2363d50,
31 
36 
41 
46 
51  };
52 
56  virtual int GetStorageItemsCount() const = 0;
57 
61  virtual QString GetItemPath(int fileIndex) const = 0;
62 
66  virtual int GetItemState(int fileIndex) const = 0;
67 
73  virtual void UpdateStorageItem(const QString& path, int changeFlag) = 0;
74 
78  virtual void RemoveStorageItem(int itemIndex) = 0;
79 
83  virtual void ResetStorage() = 0;
84 };
85 
86 
87 } // namespace ihotf
88 
89 
90 #endif // !ihotf_IFileSystemChangeStorage_included
91 
92 
virtual int GetStorageItemsCount() const =0
Get number of items in the storage.
virtual void ResetStorage()=0
Reset the storage.
Common interface for a storage of files.
virtual void RemoveStorageItem(int itemIndex)=0
Remove the item from the storage.
virtual int GetItemState(int fileIndex) const =0
Get item state with the given index from the storage.
virtual QString GetItemPath(int fileIndex) const =0
Get item path with the given index from the storage.
ChangeFlags
File system change flags.
virtual void UpdateStorageItem(const QString &path, int changeFlag)=0
Update storage item.

© 2007-2017 Witold Gantzke and Kirill Lepskiy