comparison filestates.h @ 92:06f4fffd5287

* Rename StatParser to FileStates; start thinking about selections
author Chris Cannam
date Wed, 24 Nov 2010 13:23:30 +0000
parents statparser.h@c5e34ed5b791
children 44ed7766d55a
comparison
equal deleted inserted replaced
91:879af4608c5e 92:06f4fffd5287
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 EasyMercurial
5
6 Based on HgExplorer by Jari Korhonen
7 Copyright (c) 2010 Jari Korhonen
8 Copyright (c) 2010 Chris Cannam
9 Copyright (c) 2010 Queen Mary, University of London
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version. See the file
15 COPYING included with this distribution for more information.
16 */
17
18 #ifndef FILESTATES_H
19 #define FILESTATES_H
20
21 #include <QStringList>
22
23 class FileStates
24 {
25 public:
26 FileStates() { }
27 FileStates(QString text);
28
29 enum State {
30
31 UpToDate,
32 Modified,
33 Added,
34 Unknown,
35 Removed,
36 Missing,
37
38 FirstState = UpToDate,
39 LastState = Missing
40 };
41
42 QStringList modified;
43 QStringList added;
44 QStringList unknown;
45 QStringList removed;
46 QStringList missing;
47
48 QStringList getFilesInState(State);
49 State getStateOfFile(QString file);
50 };
51
52 #endif // FILESTATES_H