1 /* vim: set sw=4 ts=4 et: */
3 * This file is part of Live Wallpaper (livewp)
5 * Copyright (C) 2010 Vlad Vasiliev
6 * Copyright (C) 2010 Tanya Makova
9 * This software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2.1 of
12 * the License, or (at your option) any later version.
14 * This software is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this software; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 /*******************************************************************************/
26 #include <hildon/hildon.h>
28 #include <libhildondesktop/libhildondesktop.h>
30 #define GETTEXT_PACKAGE "livewp"
31 #include <glib/gi18n-lib.h>
33 #define THEME_PATH "/usr/share/livewp/theme"
34 #define SHORT_TIMER 100 /* 100 milisecond */
35 //#define LONG_TIMER 10*60*1000 /* 10 minutes */
36 #define LONG_TIMER 10*1000 /* 10 minutes */
37 enum { SHORT_TIMER_TYPE, LONG_TIMER_TYPE };
44 typedef struct _AWallpaperPlugin AWallpaperPlugin;
45 typedef struct _AWallpaperPluginClass AWallpaperPluginClass;
46 typedef struct _Animation_WallpaperPrivate Animation_WallpaperPrivate;
48 struct _Animation_WallpaperPrivate
54 AWallpaperPlugin *desktop_plugin;
57 struct _AWallpaperPlugin
59 HDHomePluginItem parent;
60 Animation_WallpaperPrivate *priv;
63 struct _AWallpaperPluginClass
65 HDHomePluginItemClass parent_class;
81 void (*func_change)(gpointer, gpointer);
82 time_t time_start_animation;
83 gint duration_animation;
84 void (*func_probability)(gpointer);