added skeleton for the future gtype-based plugin
authormishas <mikhail.sobolev@gmail.com>
Wed, 7 Nov 2007 17:29:47 +0000 (17:29 +0000)
committermishas <mikhail.sobolev@gmail.com>
Wed, 7 Nov 2007 17:29:47 +0000 (17:29 +0000)
git-svn-id: file:///svnroot/simple-launcher/branches/new-items@249 3ba93dab-e023-0410-b42a-de7732cf370a

applet-wrapper.cc [new file with mode: 0644]
applet-wrapper.h [new file with mode: 0644]

diff --git a/applet-wrapper.cc b/applet-wrapper.cc
new file mode 100644 (file)
index 0000000..0682f77
--- /dev/null
@@ -0,0 +1,37 @@
+// This file is a part of Simple Launcher
+//
+// Copyright (C) 2006, 2007, Mikhail Sobolev
+//
+// Simple Launcher is free software; you can redistribute it and/or modify it
+// under the terms of the GNU General Public License version 2 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, write to the Free Software Foundation, Inc., 51
+// Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#include <cairo/cairo.h>
+
+#include <libhildondesktop/libhildondesktop.h>
+
+#include "applet-wrapper.h"
+
+#include "simple-launcher.h"
+
+#if 0
+struct _SLAWrapperPrivate {
+  SimpleLauncherApplet *applet;
+};
+#endif
+
+HD_DEFINE_PLUGIN(SLAWrapper, sla_wrapper, HILDON_DESKTOP_TYPE_HOME_ITEM)
+
+static void simple_launcher_applet_init(SLAWrapper *applet) {
+}
+
+// vim:ts=2:sw=2:et
diff --git a/applet-wrapper.h b/applet-wrapper.h
new file mode 100644 (file)
index 0000000..5f2ef7e
--- /dev/null
@@ -0,0 +1,51 @@
+// This file is a part of Simple Launcher
+//
+// Copyright (C) 2006, 2007, Mikhail Sobolev
+//
+// Simple Launcher is free software; you can redistribute it and/or modify it
+// under the terms of the GNU General Public License version 2 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, write to the Free Software Foundation, Inc., 51
+// Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#ifndef _APPLET_WRAPPER_H_
+#define _APPLET_WRAPPER_H_
+
+#include <libhildondesktop/hildon-desktop-home-item.h>
+
+extern "C" {
+
+typedef struct _SLAWrapper SLAWrapper;
+typedef struct _SLAWrapperClass SLAWrapperClass;
+typedef struct _SLAWrapperPrivate SLAWrapperPrivate;
+
+#define SLA_TYPE_APPLET            (sla_wrapper_get_type())
+#define SLA_APPLET(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SLA_TYPE_APPLET, SLAWrapper))
+#define SLA_APPLET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), SLA_TYPE_APPLET, SLAWrapperClass))
+#define SLA_IS_APPLET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), SLA_TYPE_APPLET))
+#define SLA_IS_APPLET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SLA_TYPE_APPLET))
+#define SLA_APPLET_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), SLA_TYPE_APPLET, SLAWrapperClass))
+
+struct _SLAWrapper {
+  HildonDesktopHomeItem parent;
+  SLAWrapperPrivate *priv;
+};
+
+struct _SLAWrapperClass {
+  HildonDesktopHomeItemClass parent_class;
+};
+
+  GType sla_wrapper_get_type(void);
+
+};
+
+#endif
+
+// vim:ts=2:sw=2:et