Sayonara Player
ExtensionSet.h
1 #ifndef EXTENSIONSET_H
2 #define EXTENSIONSET_H
3 
4 #include "Utils/Pimpl.h"
5 
7 {
8  PIMPL(ExtensionSet)
9 
10  public:
11  ExtensionSet();
12  ~ExtensionSet();
13  ExtensionSet(const ExtensionSet& other);
14  ExtensionSet& operator=(const ExtensionSet& other);
15 
16  void add_extension(const QString& ext, bool enabled=true);
17  void remove_extension(const QString& ext);
18  void clear();
19  bool contains_extension(const QString& ext);
20  ExtensionSet& operator<<(const QString& ext);
21 
22  void set_enabled(const QString& ext, bool b);
23  void enable(const QString& ext);
24  void disable(const QString& ext);
25 
26  bool has_enabled_extensions() const;
27  bool has_disabled_extensions() const;
28 
29  bool is_enabled(const QString& ext) const;
30 
31  QStringList enabled_extensions() const;
32  QStringList disabled_extensions() const;
33  QStringList extensions() const;
34 };
35 
36 #endif // EXTENSIONSET_H
Definition: ExtensionSet.h:6