diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-09-29 19:53:24 +0200 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-09-29 19:53:24 +0200 |
commit | a741bdb1913c28a320ff0e01518e4d39ed430289 (patch) | |
tree | 876438b5e64af3c78a55e4971cdd283e491990e8 /src/ruleparser.h | |
parent | 7ca174999ae5fa86e5fc39a0b1b7b02c06c80840 (diff) | |
download | svn2git-a741bdb1913c28a320ff0e01518e4d39ed430289.tar svn2git-a741bdb1913c28a320ff0e01518e4d39ed430289.tar.gz svn2git-a741bdb1913c28a320ff0e01518e4d39ed430289.tar.bz2 svn2git-a741bdb1913c28a320ff0e01518e4d39ed430289.tar.xz svn2git-a741bdb1913c28a320ff0e01518e4d39ed430289.zip |
Allow more then one rule file to be used in a single run.
Diffstat (limited to 'src/ruleparser.h')
-rw-r--r-- | src/ruleparser.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/ruleparser.h b/src/ruleparser.h index e5cbaea..5d05d1c 100644 --- a/src/ruleparser.h +++ b/src/ruleparser.h @@ -80,8 +80,8 @@ public: Rules(const QString &filename); ~Rules(); - QList<Repository> repositories(); - QList<Match> matchRules(); + const QList<Repository> repositories() const; + const QList<Match> matchRules() const; void load(); QStringList readRules(const QString &filename) const; @@ -92,6 +92,24 @@ private: QList<Match> m_matchRules; }; +class RulesList +{ +public: + RulesList( const QString &filenames); + ~RulesList(); + + const QList<Rules::Repository> allRepositories() const; + const QList<QList<Rules::Match> > allMatchRules() const; + const QList<Rules*> rules() const; + void load(); + +private: + QString m_filenames; + QList<Rules*> m_rules; + QList<Rules::Repository> m_allrepositories; + QList<QList<Rules::Match> > m_allMatchRules; +}; + #ifndef QT_NO_DEBUG_STREAM class QDebug; QDebug operator<<(QDebug, const Rules::Match &); |