~azzar1/unity/scale-left-padding

« back to all changes in this revision

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

  • Committer: Andrea Azzarone
  • Date: 2011-12-19 22:18:53 UTC
  • mfrom: (1792 unity)
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: azzaronea@gmail.com-20111219221853-wyy8fqwxk78s85ct
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <glib.h>
24
24
#include <list>
 
25
#include <string>
25
26
 
26
27
namespace unity
27
28
{
34
35
public:
35
36
  Introspectable();
36
37
  virtual ~Introspectable();
37
 
 
38
 
  GVariant* Introspect(bool wrap = false);
39
 
  virtual const gchar* GetName() = 0;
 
38
  GVariant* Introspect();
 
39
  virtual std::string GetName() const = 0;
40
40
  void AddChild(Introspectable* child);
41
41
  void RemoveChild(Introspectable* child);
42
42
  IntrospectableList const& GetIntrospectableChildren() { return _children; };
43
 
 
 
43
  virtual void AddProperties(GVariantBuilder* builder) = 0;
 
44
  
44
45
protected:
45
 
  virtual const gchar* GetChildsName();
46
 
  virtual void AddProperties(GVariantBuilder* builder) = 0;
 
46
  virtual std::string GetChildsName() const;
 
47
  
47
48
 
48
49
  /*
49
50
   * AddProperties should be implemented as such ...