IDocumentMetaInfo.h
Go to the documentation of this file.
1 #ifndef idoc_IDocumentMetaInfo_included
2 #define idoc_IDocumentMetaInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QVariant>
7 
8 // ACF includes
9 #include <istd/IChangeable.h>
10 
11 
12 namespace idoc
13 {
14 
15 
19 class IDocumentMetaInfo: virtual public istd::IChangeable
20 {
21 public:
22 
27  {
31  CF_METAINFO = 0xd83067d
32  };
33 
38  {
43 
48 
53 
58 
63 
68 
72  MIT_USER = 1024
73  };
74 
75  typedef QSet<int> MetaInfoTypes;
76 
82  virtual MetaInfoTypes GetMetaInfoTypes(bool allowReadOnly = true) const = 0;
83 
87  virtual QVariant GetMetaInfo(int metaInfoType) const = 0;
88 
92  virtual bool SetMetaInfo(int metaInfoType, const QVariant& metaInfo) = 0;
93 
97  virtual QString GetMetaInfoName(int metaInfoType) const = 0;
98 
102  virtual QString GetMetaInfoDescription(int metaInfoType) const = 0;
103 
107  virtual bool IsMetaInfoWritable(int metaInfoType) const = 0;
108 };
109 
110 
111 } // namespace idoc
112 
113 
114 #endif // !idoc_IDocumentMetaInfo_included
Interface for document meta-information.
Meta information has been changed.
virtual bool SetMetaInfo(int metaInfoType, const QVariant &metaInfo)=0
Set new document's meta information for a given meta type.
virtual QString GetMetaInfoName(int metaInfoType) const =0
Get a human readable name for a given meta information type.
virtual bool IsMetaInfoWritable(int metaInfoType) const =0
Check if meta information can be changed.
ChangeFlags
Data model change notification flags.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual QVariant GetMetaInfo(int metaInfoType) const =0
Get document's meta info.
Starting of user defined meta info types.
Person, who has created the document.
virtual MetaInfoTypes GetMetaInfoTypes(bool allowReadOnly=true) const =0
Get list of contained meta info types.
Tool used for document creation.
MetaInfoType
Type of the meta information.
virtual QString GetMetaInfoDescription(int metaInfoType) const =0
Get a human readable description for a given meta information type.

© 2007-2017 Witold Gantzke and Kirill Lepskiy