IFileSystemChangeStorage.h
Go to the documentation of this file.
1 #ifndef ihotf_IFileSystemChangeStorage_included
2 #define ihotf_IFileSystemChangeStorage_included
3 
4 
5 // ACF includes
6 #include "istd/IChangeable.h"
7 #include <QtCore/QString>
8 
9 
10 namespace ihotf
11 {
12 
13 
18 {
19 public:
24  {
28  CF_NEW = 0x1000000,
29 
33  CF_REMOVED = 0x2000000,
34 
38  CF_MODIFIED = 0x4000000,
39 
43  CF_ATTRIBUTE_CHANGED = 0x8000000,
44 
49  };
50 
54  virtual int GetStorageItemsCount() const = 0;
55 
59  virtual QString GetItemPath(int fileIndex) const = 0;
60 
64  virtual int GetItemState(int fileIndex) const = 0;
65 
71  virtual void UpdateStorageItem(const QString& path, int itemFlags) = 0;
72 
76  virtual void ResetStorage() = 0;
77 };
78 
79 
80 } // namespace ihotf
81 
82 
83 #endif // !ihotf_IFileSystemChangeStorage_included
84 
85 
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 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 itemFlags)=0
Update storage item.

© 2007-2011 Witold Gantzke and Kirill Lepskiy