ICF 3.0.5.47
Technical documentation of ICF Libraries
IDocumentMetaInfo.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// Qt includes
10#include <QtCore/QVariant>
11
12// ICF includes
13#include <istd/IChangeable.h>
14
15
16namespace idoc
17{
18
19
24{
25public:
26
31 {
35 CF_METAINFO = 0xd83067d
36 };
37
93
94 typedef QSet<int> MetaInfoTypes;
95
101 virtual MetaInfoTypes GetMetaInfoTypes(bool allowReadOnly = true) const = 0;
102
106 virtual QVariant GetMetaInfo(int metaInfoType) const = 0;
107
111 virtual bool SetMetaInfo(int metaInfoType, const QVariant& metaInfo) = 0;
112
116 virtual QString GetMetaInfoName(int metaInfoType) const = 0;
117
121 virtual QString GetMetaInfoDescription(int metaInfoType) const = 0;
122
126 virtual bool IsMetaInfoWritable(int metaInfoType) const = 0;
127};
128
129
130} // namespace idoc
131
132
Interface for document meta-information.
virtual QString GetMetaInfoName(int metaInfoType) const =0
Get a human readable name for a given meta information type.
virtual QString GetMetaInfoDescription(int metaInfoType) const =0
Get a human readable description for a given meta information type.
MetaInfoType
Type of the meta information.
@ MIT_DOCUMENT_VERSION
Version of the document given as a QString.
@ MIT_DESCRIPTION
Document description.
@ MIT_TITLE
Title of the document.
@ MIT_CREATOR_VERSION
Version of the creation tool given as a QString.
@ MIT_CREATOR
Tool used for document creation.
@ MIT_MODIFICATION_TIME
Last document modification time.
@ MIT_CONTENT_CHECKSUM
Checksum of the document data.
@ MIT_AUTHOR
Person, who has created the document.
@ MIT_CREATION_TIME
Document creation time.
@ MIT_USER
Starting of user defined meta info types.
virtual bool IsMetaInfoWritable(int metaInfoType) const =0
Check if meta information can be changed.
virtual bool SetMetaInfo(int metaInfoType, const QVariant &metaInfo)=0
Set new document's meta information for a given meta type.
virtual QVariant GetMetaInfo(int metaInfoType) const =0
Get document's meta info.
virtual MetaInfoTypes GetMetaInfoTypes(bool allowReadOnly=true) const =0
Get list of contained meta info types.
ChangeFlags
Data model change notification flags.
@ CF_METAINFO
Meta information has been changed.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains the system indenendent basic implementations of Document/View design pattern.

© Witold Gantzke and Kirill Lepskiy