~om26er/ubuntu/oneiric/unity/sru-778256

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DevicesSettings.h

  • Committer: Didier Roche
  • Date: 2011-07-21 16:17:59 UTC
  • mfrom: (55.813.3 upstream)
  • Revision ID: didier.roche@canonical.com-20110721161759-osmh94x428t2bf2b
* New upstream release.
* debian/control:
  - build-dep on libnotify-dev
  - bump libnux-1.0-dev dep for ABI break

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
public:
30
30
  typedef enum
31
31
  {
32
 
    NEVER=0,
 
32
    NEVER = 0,
33
33
    ONLY_MOUNTED,
34
34
    ALWAYS
35
35
 
36
36
  } DevicesOption;
37
37
 
38
 
  DevicesSettings ();
39
 
  ~DevicesSettings ();
40
 
 
41
 
  static DevicesSettings * GetDefault ();
42
 
 
43
 
  DevicesOption GetDevicesOption ();
44
 
 
45
 
  sigc::signal<void, DevicesSettings *> changed;
46
 
 
47
 
private:
48
 
  void Refresh ();
49
 
  static void Changed (GSettings *settings, gchar *key, DevicesSettings *self);
50
 
 
51
 
private:
52
 
  GSettings    *_settings;
 
38
  DevicesSettings();
 
39
  ~DevicesSettings();
 
40
 
 
41
  static DevicesSettings* GetDefault();
 
42
 
 
43
  DevicesOption GetDevicesOption();
 
44
 
 
45
  sigc::signal<void, DevicesSettings*> changed;
 
46
 
 
47
private:
 
48
  void Refresh();
 
49
  static void Changed(GSettings* settings, gchar* key, DevicesSettings* self);
 
50
 
 
51
private:
 
52
  GSettings*    _settings;
53
53
  int           _raw_devices_option;
54
54
  DevicesOption _devices_option;
55
55
};