1  #ifndef _CONFIG_H_
 2  #define _CONFIG_H_
 3
 4  #include <glib.h>
 5  #include "SetBG.h"
 6  #include <vector>
 7
 8  /**
 9   * Static class that interfaces with the configuration. 
10   * 
11   * @author  Dave Foster <daf@minuslab.net>
12   * @date    6 Sept 2005
13   */
14  class Config {
15      private:
16
17          static bool check_dir();
18
19          static bool recurse;
20      public:
21
22          // get/set for bgs
23          static bool get_bg(const Glib::ustring disp, Glib::ustring &file, SetBG::SetMode &mode);
24          static bool set_bg(const Glib::ustring disp, const Glib::ustring file, const SetBG::SetMode mode);
25
26          // get all groups
27          static bool get_bg_groups(std::vector<Glib::ustring> &groups);
28
29          static bool get_recurse() { return recurse; }
30          static void set_recurse(bool n) { recurse = n; }
31
32
33  };
34
35  #endif