summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2012-09-24 17:21:47 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2012-09-24 17:21:47 +0200
commitca1a13e7dbac7267aac6c38b7e1eee0a3358c787 (patch)
tree6429ff7cae1c3feb823234e1265187d3c4dcde2d /plugins/unityshell
parenta10e473f37610c6ce731adc20a4bbbdb161c175f (diff)
ScreenIntrospection: add a new introspectable class to allow screen introspection
(bzr r2713.1.18)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/ScreenIntrospection.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/unityshell/src/ScreenIntrospection.h b/plugins/unityshell/src/ScreenIntrospection.h
new file mode 100644
index 000000000..5f0c6282f
--- /dev/null
+++ b/plugins/unityshell/src/ScreenIntrospection.h
@@ -0,0 +1,48 @@
+// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
+/*
+ * Copyright (C) 2012 Canonical Ltd
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authored by: Marco Trevisan (Treviño) <marco.trevisan@canonical.com>
+ */
+
+#ifndef SCREEN_INTROSPECTION_H
+#define SCREEN_INTROSPECTION_H
+
+#include "Introspectable.h"
+#include <core/core.h>
+
+namespace unity
+{
+namespace debug
+{
+
+class ScreenIntrospection : public Introspectable
+{
+public:
+ ScreenIntrospection(CompScreen* screen);
+
+protected:
+ std::string GetName() const;
+ void AddProperties(GVariantBuilder* builder);
+ IntrospectableList GetIntrospectableChildren();
+
+private:
+ CompScreen* screen_;
+};
+
+}
+}
+
+#endif