From 0eeeb2f87aba5a7fc562c7e492065310ccc55a00 Mon Sep 17 00:00:00 2001 From: mishas Date: Wed, 7 Nov 2007 17:29:47 +0000 Subject: [PATCH] added skeleton for the future gtype-based plugin git-svn-id: file:///svnroot/simple-launcher/branches/new-items@249 3ba93dab-e023-0410-b42a-de7732cf370a --- applet-wrapper.cc | 37 +++++++++++++++++++++++++++++++++++++ applet-wrapper.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 applet-wrapper.cc create mode 100644 applet-wrapper.h diff --git a/applet-wrapper.cc b/applet-wrapper.cc new file mode 100644 index 0000000..0682f77 --- /dev/null +++ b/applet-wrapper.cc @@ -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 + +#include + +#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 index 0000000..5f2ef7e --- /dev/null +++ b/applet-wrapper.h @@ -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 + +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 -- 1.7.9.5