KFileMetaData

types.h
1/*
2 This file is part of KFileMetaData
3 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#ifndef KFILEMETADATA_TYPES
9#define KFILEMETADATA_TYPES
10
11#include <QVariant>
12
13/**
14 * The KFileMetaData namespace
15 */
16namespace KFileMetaData {
17
18/**
19 * The Type namespace
20 */
21namespace Type {
22
23/**
24 * A Type represents a way to represent a way to group files based on
25 * a higher level view, which the user generally expects.
26 *
27 * Every extractor provides a list of types applicable for each file.
28 */
29enum Type {
30 FirstType = 0,
31 Empty = 0,
32
33 /**
34 * A file which contains a compressed collection of other files
35 * eg - tar, zip, rar, gz
36 * File types which use e.g. zip as an implementation detail -
37 * Java JAR files, OpenDocument formats, etc. - are not treated
38 * as Archive.
39 */
41
42 /**
43 * Used to mark any file which just contains audio. Do not use this
44 * type if the file also contains Video
45 */
47
48 /**
49 * Any file which contains Video. It may also contain Audio
50 */
52
53 /**
54 * Any Image file. This includes both raster and vector formats.
55 */
57
58 /**
59 * Any file which counts as a document. Documents are generally
60 * files which contain rich text, formatting and maybe images,
61 * but also just plain text.
62 */
64
65 /**
66 * A SpreadSheet file. This is a specialization of the Document type
67 * Any file which has this type should also have the Document type
68 */
70
71 /**
72 * A Presentation file. This is a specialization of the Document type.
73 * Any file which has this type should also have the Document type
74 */
76
77 /**
78 * Any file which contains text data (i.e. not binary data) counts as
79 * a Text file. As this also includes various file types which contain
80 * data collections (e.g. csv, json) or code (e.g. QML, Makefile),
81 * "Document" is typically the more appropriate type.
82 */
84
85 /**
86 * A directory or folder
87 */
89
90 LastType = Folder
91};
92
93} // namespace Type
94} // namespace KFileMetaData
95
96Q_DECLARE_METATYPE(KFileMetaData::Type::Type)
97
98#endif
Type
A Type represents a way to represent a way to group files based on a higher level view,...
Definition types.h:29
@ Audio
Used to mark any file which just contains audio.
Definition types.h:46
@ Document
Any file which counts as a document.
Definition types.h:63
@ Text
Any file which contains text data (i.e.
Definition types.h:83
@ Image
Any Image file.
Definition types.h:56
@ Folder
A directory or folder.
Definition types.h:88
@ Archive
A file which contains a compressed collection of other files eg - tar, zip, rar, gz File types which ...
Definition types.h:40
@ Video
Any file which contains Video.
Definition types.h:51
@ Presentation
A Presentation file.
Definition types.h:75
@ Spreadsheet
A SpreadSheet file.
Definition types.h:69
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:47:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.