Mercurial > hg > easyhg
comparison filestates.h @ 159:087d7cdde662
* Add InConflict state (not yet used)
author | Chris Cannam |
---|---|
date | Fri, 03 Dec 2010 12:29:57 +0000 |
parents | 44ed7766d55a |
children | 5b2046f67a56 |
comparison
equal
deleted
inserted
replaced
158:006630304b69 | 159:087d7cdde662 |
---|---|
33 Modified, | 33 Modified, |
34 Added, | 34 Added, |
35 Unknown, | 35 Unknown, |
36 Removed, | 36 Removed, |
37 Missing, | 37 Missing, |
38 InConflict | |
38 | 39 |
39 FirstState = Clean, | 40 FirstState = Clean, |
40 LastState = Missing | 41 LastState = InConflict |
41 }; | 42 }; |
42 | 43 |
43 void parseStates(QString text); | 44 void parseStates(QString text); |
44 | 45 |
45 void clearBuckets(); | 46 void clearBuckets(); |
49 QStringList modified() const { return m_modified; } | 50 QStringList modified() const { return m_modified; } |
50 QStringList added() const { return m_added; } | 51 QStringList added() const { return m_added; } |
51 QStringList unknown() const { return m_unknown; } | 52 QStringList unknown() const { return m_unknown; } |
52 QStringList removed() const { return m_removed; } | 53 QStringList removed() const { return m_removed; } |
53 QStringList missing() const { return m_missing; } | 54 QStringList missing() const { return m_missing; } |
55 QStringList inConflict() const { return m_inConflict; } | |
54 | 56 |
55 State getStateOfFile(QString file) const; | 57 State getStateOfFile(QString file) const; |
56 | 58 |
57 private: | 59 private: |
58 QStringList m_modified; | 60 QStringList m_modified; |
59 QStringList m_added; | 61 QStringList m_added; |
60 QStringList m_unknown; | 62 QStringList m_unknown; |
61 QStringList m_removed; | 63 QStringList m_removed; |
62 QStringList m_missing; | 64 QStringList m_missing; |
65 QStringList m_inConflict; | |
63 QMap<QString, State> m_stateMap; | 66 QMap<QString, State> m_stateMap; |
64 | 67 |
65 State charToState(QChar, bool * = 0); | 68 State charToState(QChar, bool * = 0); |
66 QStringList *stateToBucket(State); | 69 QStringList *stateToBucket(State); |
67 }; | 70 }; |