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

KDE's Doxygen guidelines are available online.