File indexing completed on 2024-05-12 12:58:01
0001 /* 0002 * This file is part of the KDE project 0003 * 0004 * SPDX-FileCopyrightText: 2013 Arjen Hiemstra <ahiemstra@heimr.nl> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.0-or-later 0007 * 0008 */ 0009 0010 #ifndef CALLIGRA_COMPONENTS_ENUMS_H 0011 #define CALLIGRA_COMPONENTS_ENUMS_H 0012 0013 #include <QObject> 0014 0015 namespace Calligra { 0016 namespace Components { 0017 0018 class DocumentType : public QObject 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 enum Type { 0024 Unknown, ///< An unknown document. 0025 TextDocument, ///< A text document, for example an OpenDocument Text document. 0026 Spreadsheet, ///< A spreadsheet, for example an Excel document. 0027 Presentation, ///< A presentation, for example a Keynote document. 0028 StaticTextDocument, ///< An unmodifiable text document, for example a PDF document. 0029 }; 0030 0031 Q_ENUM(Type) 0032 }; 0033 0034 class DocumentStatus : public QObject 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 enum Status { 0040 Unloaded, 0041 Loading, 0042 Loaded, 0043 Failed, 0044 }; 0045 0046 Q_ENUM(Status); 0047 }; 0048 0049 } // Namespace Components 0050 } // Namespace Calligra 0051 0052 #endif // CALLIGRA_COMPONENTS_ENUMS_H