1/*
2 * This file is part of KFileMetaData
3 * Copyright (C) 2014 Vishesh Handa <me@vhanda.in>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 */
20
21#ifndef KFILEMETADATA_TYPES
22#define KFILEMETADATA_TYPES
23
24namespace KFileMetaData {
25namespace Type {
26
27/**
28 * A Type represents a way to represent a way to group files based on
29 * a higher level view, which the user generally expects.
30 *
31 * Every extractor provides a list of types applicable for each file.
32 */
33enum Type {
34 FirstType = 0,
35 Empty = 0,
36
37 /**
38 * Any file which contains a compressed collection of other files
39 * eg - tar, zip, rar, gz
40 */
41 Archive,
42
43 /**
44 * Used to mark any file which just contains audio. Do not use this
45 * type if the file also contains Video
46 */
47 Audio,
48
49 /**
50 * Any file which contains Video. It may also contain Audio
51 */
52 Video,
53
54 /**
55 * Any Image file. This includes both raster and vector formats.
56 */
57 Image,
58
59 /**
60 * Any file which counts as a document. Documents are generally
61 * files which contain rich text, formatting and maybe images
62 */
63 Document,
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 */
69 Spreadsheet,
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 */
75 Presentation,
76
77 /**
78 * Any file which just contains plain text data counts
79 * as a Text file
80 */
81 Text,
82
83 /**
84 * A directory or folder
85 */
86 Folder,
87
88 LastType = Folder
89};
90
91}
92}
93
94#endif
95