xref: /glogg/src/loadingstatus.h (revision 45ef183cd93d6c0b14e535ca8e31874f61b2ffa4) !
1812146a8SNicolas Bonnefon /*
2812146a8SNicolas Bonnefon  * Copyright (C) 2014 Nicolas Bonnefon and other contributors
3812146a8SNicolas Bonnefon  *
4812146a8SNicolas Bonnefon  * This file is part of glogg.
5812146a8SNicolas Bonnefon  *
6812146a8SNicolas Bonnefon  * glogg is free software: you can redistribute it and/or modify
7812146a8SNicolas Bonnefon  * it under the terms of the GNU General Public License as published by
8812146a8SNicolas Bonnefon  * the Free Software Foundation, either version 3 of the License, or
9812146a8SNicolas Bonnefon  * (at your option) any later version.
10812146a8SNicolas Bonnefon  *
11812146a8SNicolas Bonnefon  * glogg is distributed in the hope that it will be useful,
12812146a8SNicolas Bonnefon  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13812146a8SNicolas Bonnefon  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14812146a8SNicolas Bonnefon  * GNU General Public License for more details.
15812146a8SNicolas Bonnefon  *
16812146a8SNicolas Bonnefon  * You should have received a copy of the GNU General Public License
17812146a8SNicolas Bonnefon  * along with glogg.  If not, see <http://www.gnu.org/licenses/>.
18812146a8SNicolas Bonnefon  */
19812146a8SNicolas Bonnefon 
20812146a8SNicolas Bonnefon #ifndef LOADINGSTATUS_H
21812146a8SNicolas Bonnefon #define LOADINGSTATUS_H
22812146a8SNicolas Bonnefon 
237d8fc2b3SNicolas Bonnefon #include <QMetaType>
247d8fc2b3SNicolas Bonnefon 
25812146a8SNicolas Bonnefon // Loading status of a file
26812146a8SNicolas Bonnefon enum class LoadingStatus {
27812146a8SNicolas Bonnefon     Successful,
28812146a8SNicolas Bonnefon     Interrupted,
29812146a8SNicolas Bonnefon     NoMemory
30812146a8SNicolas Bonnefon };
31812146a8SNicolas Bonnefon 
32*45ef183cSNicolas Bonnefon // Data status (whether new, not seen, data is available)
33*45ef183cSNicolas Bonnefon enum class DataStatus {
34*45ef183cSNicolas Bonnefon     OLD_DATA,
35*45ef183cSNicolas Bonnefon     NEW_DATA,
36*45ef183cSNicolas Bonnefon     NEW_FILTERED_DATA
37*45ef183cSNicolas Bonnefon };
38*45ef183cSNicolas Bonnefon 
39*45ef183cSNicolas Bonnefon Q_DECLARE_METATYPE( DataStatus )
40812146a8SNicolas Bonnefon Q_DECLARE_METATYPE( LoadingStatus )
41812146a8SNicolas Bonnefon 
42812146a8SNicolas Bonnefon #endif
43