File indexing completed on 2024-10-06 03:45:36

0001 /*
0002     This file is part of Killbots.
0003 
0004     SPDX-FileCopyrightText: 2007-2009 Parker Coates <coates@kde.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KILLBOTS_RULESET_H
0010 #define KILLBOTS_RULESET_H
0011 
0012 #include <rulesetbase.h>
0013 
0014 namespace Killbots
0015 {
0016 class Ruleset : public RulesetBase
0017 {
0018 public: // static functions
0019     static const Ruleset *load(const QString &fileName);
0020 
0021 public: // functions
0022     ~Ruleset() override;
0023     QString filePath() const;
0024     QString fileName() const;
0025     QByteArray scoreGroupKey() const;
0026 
0027 private: // functions
0028     explicit Ruleset(const QString &filePath);    // hidden
0029     QString m_filePath;
0030     QByteArray m_scoreGroupKey;
0031 };
0032 }
0033 
0034 #endif