File indexing completed on 2024-05-05 16:09:03

0001 /*
0002     This file is part of KFileMetaData
0003     SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef KFILEMETADATA_TYPES
0009 #define KFILEMETADATA_TYPES
0010 
0011 namespace KFileMetaData {
0012 namespace Type {
0013 
0014 /**
0015  * A Type represents a way to represent a way to group files based on
0016  * a higher level view, which the user generally expects.
0017  *
0018  * Every extractor provides a list of types applicable for each file.
0019  */
0020 enum Type {
0021     FirstType = 0,
0022     Empty = 0,
0023 
0024     /**
0025      * Any file which contains a compressed collection of other files
0026      * eg - tar, zip, rar, gz
0027      */
0028     Archive,
0029 
0030     /**
0031      * Used to mark any file which just contains audio. Do not use this
0032      * type if the file also contains Video
0033      */
0034     Audio,
0035 
0036     /**
0037      * Any file which contains Video. It may also contain Audio
0038      */
0039     Video,
0040 
0041     /**
0042      * Any Image file. This includes both raster and vector formats.
0043      */
0044     Image,
0045 
0046     /**
0047      * Any file which counts as a document. Documents are generally
0048      * files which contain rich text, formatting and maybe images
0049      */
0050     Document,
0051 
0052     /**
0053      * A SpreadSheet file. This is a specialization of the Document type
0054      * Any file which has this type should also have the Document type
0055      */
0056     Spreadsheet,
0057 
0058     /**
0059      * A Presentation file. This is a specialization of the Document type.
0060      * Any file which has this type should also have the Document type
0061      */
0062     Presentation,
0063 
0064     /**
0065      * Any file which just contains plain text data counts
0066      * as a Text file
0067      */
0068     Text,
0069 
0070     /**
0071      * A directory or folder
0072      */
0073     Folder,
0074 
0075     LastType = Folder
0076 };
0077 
0078 }
0079 }
0080 
0081 #endif