Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
hugglequeuefilter.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef HUGGLEQUEUEFILTER_H
12 #define HUGGLEQUEUEFILTER_H
13 
14 #include <QString>
15 #include <QList>
16 #include "wikiedit.hpp"
17 #include "exception.hpp"
18 
19 namespace Huggle
20 {
21  class WikiEdit;
22 
23  //! Filter that can be applied to edit queue
25  {
26  public:
27  static QList<HuggleQueueFilter*> Filters;
28  static HuggleQueueFilter *DefaultFilter;
29  QString QueueName;
31  bool Matches(WikiEdit *edit);
32  /// \todo DOCUMENT ME
33  bool getIgnoreMinor() const;
34  /// \todo DOCUMENT ME
35  void setIgnoreMinor(bool value);
36  /// \todo DOCUMENT ME
37  bool getIgnoreUsers() const;
38  /// \todo DOCUMENT ME
39  void setIgnoreUsers(bool value);
40  /// \todo DOCUMENT ME
41  bool getIgnoreWL() const;
42  /// \todo DOCUMENT ME
43  void setIgnoreWL(bool value);
44  /// \todo DOCUMENT ME
45  bool getIgnoreIP() const;
46  /// \todo DOCUMENT ME
47  void setIgnoreIP(bool value);
48  /// \todo DOCUMENT ME
49  bool getIgnoreBots() const;
50  /// \todo DOCUMENT ME
51  void setIgnoreBots(bool value);
52  /// \todo DOCUMENT ME
53  bool getIgnoreNP() const;
54  /// \todo DOCUMENT ME
55  void setIgnoreNP(bool value);
56  /// \todo DOCUMENT ME
57  bool getIgnoreFriends() const;
58  /// \todo DOCUMENT ME
59  void setIgnoreFriends(bool value);
60 
61  private:
62  bool IgnoreMinor;
63  bool IgnoreUsers;
64  bool IgnoreWL;
65  bool IgnoreIP;
66  bool IgnoreBots;
67  bool IgnoreNP;
68  bool IgnoreFriends;
69  bool IgnoreTalk;
70  };
71 }
72 
73 #endif // HUGGLEQUEUEFILTER_H
Filter that can be applied to edit queue.
Wiki edit.
Definition: wikiedit.hpp:67