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

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PlacesHomeView.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:
35
35
#include <gconf/gconf-client.h>
36
36
#include <time.h>
37
37
 
38
 
class PlacesHomeView : public Introspectable, public PlacesGroup
 
38
class PlacesHomeView : public unity::Introspectable, public PlacesGroup
39
39
{
40
40
public:
41
 
  PlacesHomeView ();
42
 
  ~PlacesHomeView ();
43
 
 
44
 
  void Refresh ();
45
 
  
 
41
  PlacesHomeView();
 
42
  ~PlacesHomeView();
 
43
 
 
44
  void Refresh();
 
45
 
46
46
protected:
47
47
  // Introspectable methods
48
 
  const gchar * GetName ();
49
 
  const gchar * GetChildsName (); 
50
 
  void AddProperties (GVariantBuilder *builder);
51
 
 
52
 
private:
53
 
  static void DashVisible (GVariant *data, void *val);
54
 
  void OnShortcutClicked (PlacesTile *_tile);
55
 
  static void OnKeyChanged (GConfClient    *client,
56
 
                            guint           cnxn_id,
57
 
                            GConfEntry     *entry,
58
 
                            PlacesHomeView *self);
59
 
  void CreateShortcutFromExec (const char *exec, 
60
 
                               const char *name,
61
 
                               std::vector<std::string>& alternatives);
62
 
 
63
 
private:
64
 
  nux::GridHLayout        *_layout;
65
 
  GConfClient *_client;
 
48
  const gchar* GetName();
 
49
  const gchar* GetChildsName();
 
50
  void AddProperties(GVariantBuilder* builder);
 
51
 
 
52
private:
 
53
  static void DashVisible(GVariant* data, void* val);
 
54
  void OnShortcutClicked(PlacesTile* _tile);
 
55
  static void OnKeyChanged(GConfClient*    client,
 
56
                           guint           cnxn_id,
 
57
                           GConfEntry*     entry,
 
58
                           PlacesHomeView* self);
 
59
  void CreateShortcutFromExec(const char* exec,
 
60
                              const char* name,
 
61
                              std::vector<std::string>& alternatives);
 
62
 
 
63
private:
 
64
  nux::GridHLayout*        _layout;
 
65
  GConfClient* _client;
66
66
  std::vector<std::string> _browser_alternatives;
67
67
  std::vector<std::string> _photo_alternatives;
68
68
  std::vector<std::string> _email_alternatives;
69
69
  std::vector<std::string> _music_alternatives;
70
 
  
71
 
  struct timespec time_diff (struct timespec start, struct timespec end);
 
70
 
 
71
  struct timespec time_diff(struct timespec start, struct timespec end);
72
72
  struct timespec _last_activate_time;
73
73
 
74
74
  guint _ubus_handle;