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 /*******************************************************************************/
25 #ifndef _weather_common_h
26 #define _weather_common_h 1
32 #include <hildon/hildon.h>
34 #include <libhildondesktop/libhildondesktop.h>
37 #define GETTEXT_PACKAGE "livewp"
38 #include <glib/gi18n-lib.h>
40 #define THEME_PATH "/usr/share/livewp/theme"
41 #define SHORT_TIMER 75 /* 100 milisecond */
42 //#define LONG_TIMER 5*60*1000 /* 10 minutes */
43 #define LONG_TIMER 20*1000 /* 10 minutes */
44 enum { SHORT_TIMER_TYPE, LONG_TIMER_TYPE };
51 typedef struct _AWallpaperPlugin AWallpaperPlugin;
52 typedef struct _AWallpaperPluginClass AWallpaperPluginClass;
53 typedef struct _Animation_WallpaperPrivate Animation_WallpaperPrivate;
55 struct _Animation_WallpaperPrivate
61 gboolean rich_animation;
62 GtkWidget *main_widget;
63 GtkWidget *right_corner;
64 AWallpaperPlugin *desktop_plugin;
65 DBusConnection *dbus_conn;
66 DBusConnection *dbus_conn_session;
70 struct _AWallpaperPlugin
72 HDHomePluginItem parent;
73 Animation_WallpaperPrivate *priv;
76 struct _AWallpaperPluginClass
78 HDHomePluginItemClass parent_class;
94 void (*func_change)(gpointer, gpointer);
95 time_t time_start_animation;
96 gint duration_animation;
97 void (*func_probability)(gpointer);
101 #define LIVEWP_SIGNAL_INTERFACE "org.maemo.livewp"
102 #define LIVEWP_SIGNAL_PATH "/org/maemo/livewp"
103 #define LIVEWP_SIGNAL_RELOAD_CONFIG_INTERFACE "org.maemo.livewp.reload_config"
104 #define LIVEWP_SIGNAL_RELOAD_CONFIG_PATH "/org/maemo/livewp/reload_config"
105 #define LIVEWP_RELOAD_CONFIG "reload_config"
106 #define LIVEWP_RELOAD_PLUGIN "reload_plugin"