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