aboutsummaryrefslogtreecommitdiff
path: root/libindicate/listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'libindicate/listener.h')
-rw-r--r--libindicate/listener.h132
1 files changed, 0 insertions, 132 deletions
diff --git a/libindicate/listener.h b/libindicate/listener.h
deleted file mode 100644
index 37cda03..0000000
--- a/libindicate/listener.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
-A library to allow applictions to provide simple indications of
-information to be displayed to users of the application through the
-interface shell.
-
-Copyright 2009 Canonical Ltd.
-
-Authors:
- Ted Gould <ted@canonical.com>
-
-This program is free software: you can redistribute it and/or modify it
-under the terms of either or both of the following licenses:
-
-1) the GNU Lesser General Public License version 3, as published by the
-Free Software Foundation; and/or
-2) the GNU Lesser General Public License version 2.1, 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 warranties of
-MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
-PURPOSE. See the applicable version of the GNU Lesser General Public
-License for more details.
-
-You should have received a copy of both the GNU Lesser General Public
-License version 3 and version 2.1 along with this program. If not, see
-<http://www.gnu.org/licenses/>
-*/
-
-#ifndef INDICATE_LISTENER_H_INCLUDED__
-#define INDICATE_LISTENER_H_INCLUDED__ 1
-
-#include <glib.h>
-#include <glib-object.h>
-
-#include "indicator.h"
-#include "server.h"
-#include "interests.h"
-
-G_BEGIN_DECLS
-
-/* Boilerplate */
-#define INDICATE_TYPE_LISTENER (indicate_listener_get_type ())
-#define INDICATE_LISTENER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_LISTENER, IndicateListener))
-#define INDICATE_IS_LISTENER(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), INDICATE_TYPE_LISTENER))
-#define INDICATE_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), INDICATE_TYPE_LISTENER, IndicateListenerClass))
-#define INDICATE_IS_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), INDICATE_TYPE_LISTENER))
-#define INDICATE_LISTENER_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), INDICATE_TYPE_LISTENER, IndicateListenerClass))
-
-#define INDICATE_LISTENER_SIGNAL_INDICATOR_ADDED "indicator-added"
-#define INDICATE_LISTENER_SIGNAL_INDICATOR_REMOVED "indicator-removed"
-#define INDICATE_LISTENER_SIGNAL_INDICATOR_MODIFIED "indicator-modified"
-#define INDICATE_LISTENER_SIGNAL_SERVER_ADDED "server-added"
-#define INDICATE_LISTENER_SIGNAL_SERVER_REMOVED "server-removed"
-
-#define INDICATE_LISTENER_SERVER_DBUS_NAME(server) (indicate_listener_server_get_dbusname(server))
-#define INDICATE_LISTENER_INDICATOR_ID(indicator) (indicate_listener_indicator_get_id(indicator))
-
-typedef struct _IndicateListenerServer IndicateListenerServer;
-#define INDICATE_TYPE_LISTENER_SERVER (indicate_listener_server_get_gtype ())
-GType indicate_listener_server_get_gtype (void) G_GNUC_CONST;
-
-typedef struct _IndicateListenerIndicator IndicateListenerIndicator;
-#define INDICATE_TYPE_LISTENER_INDICATOR (indicate_listener_indicator_get_gtype ())
-GType indicate_listener_indicator_get_gtype (void) G_GNUC_CONST;
-
-typedef struct _IndicateListener IndicateListener;
-struct _IndicateListener {
- GObject parent;
-};
-
-typedef struct _IndicateListenerClass IndicateListenerClass;
-struct _IndicateListenerClass {
- GObjectClass parent;
-
- /* Signals */
- void (* indicator_added) (IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type);
- void (* indicator_removed) (IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type);
- void (* indicator_modified) (IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gchar * property);
-
- void (* server_added) (IndicateListenerServer * server, gchar * type);
- void (* server_removed) (IndicateListenerServer * server, gchar * type);
-};
-
-GType indicate_listener_get_type (void) G_GNUC_CONST;
-
-typedef void (*indicate_listener_get_property_cb) (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, gchar * propertydata, gpointer data);
-typedef void (*indicate_listener_get_property_time_cb) (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * property, GTimeVal * propertydata, gpointer data);
-typedef void (*indicate_listener_get_server_property_cb) (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data);
-
-/* Create a new listener */
-IndicateListener * indicate_listener_new (void);
-IndicateListener * indicate_listener_ref_default (void);
-void indicate_listener_get_property (IndicateListener * listener,
- IndicateListenerServer * server,
- IndicateListenerIndicator * indicator,
- gchar * property,
- indicate_listener_get_property_cb callback,
- gpointer data);
-void indicate_listener_get_property_time (IndicateListener * listener,
- IndicateListenerServer * server,
- IndicateListenerIndicator * indicator,
- gchar * property,
- indicate_listener_get_property_time_cb callback,
- gpointer data);
-void indicate_listener_display (IndicateListener * listener,
- IndicateListenerServer * server,
- IndicateListenerIndicator * indicator);
-void indicate_listener_server_get_type (IndicateListener * listener,
- IndicateListenerServer * server,
- indicate_listener_get_server_property_cb callback,
- gpointer data);
-void indicate_listener_server_get_desktop (IndicateListener * listener,
- IndicateListenerServer * server,
- indicate_listener_get_server_property_cb callback,
- gpointer data);
-const gchar * indicate_listener_server_get_dbusname (IndicateListenerServer * server);
-guint indicate_listener_indicator_get_id (IndicateListenerIndicator * indicator);
-void indicate_listener_server_show_interest (IndicateListener * listener,
- IndicateListenerServer * server,
- IndicateInterests interest);
-void indicate_listener_server_remove_interest (IndicateListener * listener,
- IndicateListenerServer * server,
- IndicateInterests interest);
-gboolean indicate_listener_server_check_interest (IndicateListener * listener,
- IndicateListenerServer * server,
- IndicateInterests interest);
-
-G_END_DECLS
-
-#endif /* INDICATE_LISTENER_H_INCLUDED__ */
-