#define LIVEWP_SIGNAL_RELOAD_CONFIG_PATH "/org/maemo/livewp/reload_config"
#define LIVEWP_RELOAD_CONFIG "reload_config"
#define LIVEWP_RELOAD_PLUGIN "reload_plugin"
+/* For DBUS */
+#define CALLNOTIF_SIGNAL_INTERFACE "org.freedesktop.Notifications"
+#define CALLNOTIF_SIGNAL_PATH "/org/freedesktop/Notifications"
+#define CALLNOTIF_MEMBER "NotificationClosed"
#endif
START_FUNCTION;
#endif
+fprintf (stderr, "PATH11111111111111111111 %s %s %s\n", dbus_message_get_path(msg), dbus_message_get_interface (msg), dbus_message_get_member (msg));
if (dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_RELOAD_CONFIG)){
if(read_config(priv)){
fprintf(stderr, "\nCan not read config file.\n");
#endif
}
}
+ if (dbus_message_is_signal(msg, CALLNOTIF_SIGNAL_INTERFACE, CALLNOTIF_MEMBER)){
+ fprintf(stderr," <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
+ }
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
-/*******************************************************************************/
void livewp_deinitialize_dbus(Animation_WallpaperPrivate *priv);
DBusHandlerResult
get_livewp_signal_cb(DBusConnection *conn, DBusMessage *msg, Animation_WallpaperPrivate *priv);
+
void send_dbus_signal (Animation_WallpaperPrivate *priv, const gchar *interface, const gchar *path, const gchar *member);
gint read_config(Animation_WallpaperPrivate *priv);
void reload_scene(AWallpaperPlugin *desktop_plugin);