summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/dub/dub/dubconfigmodule.h
blob: 6c928f6bb9d91af8b88c5c2f4611a29284047d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef DUBCONFIGMODULE_H
#define DUBCONFIGMODULE_H


#include <noatun/pref.h>
#include "dubprefs.h"

/**
 * Noatun configuration module for dub

 * Eray Ozkural (exa)
 **/
class DubConfigModule : public CModule
{
TQ_OBJECT
  
public:
  enum PlayOrder { normal, shuffle, repeat, single };
  enum PlayMode { allFiles, oneDir, recursiveDir };

  DubConfigModule(TQObject *parent);

  ~DubConfigModule();

  virtual void save(void);
  virtual void reopen(void);

  void apply();

  /** The directory in which media files are stored */
  TQString mediaDirectory;
  PlayMode playMode;
  PlayOrder playOrder;

  const DubPrefs* getPrefs() { return prefs; }
  //private:
  DubPrefs* prefs;
};

#endif