diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-21 14:50:49 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2012-11-21 14:50:49 +0000 |
commit | 4a6fa0a418b899667988d25b7f8922a031f72f38 (patch) | |
tree | 23afb2bc49433bd8d9e238079fec9a95272ace1c /src/im-application-list.h | |
parent | 12fa6e3a84895570e2413a984e3e40320dcf9281 (diff) | |
parent | e8eda4af8432d36d82b1124a4bad0f5eee876188 (diff) | |
download | ayatana-indicator-messages-4a6fa0a418b899667988d25b7f8922a031f72f38.tar.gz ayatana-indicator-messages-4a6fa0a418b899667988d25b7f8922a031f72f38.tar.bz2 ayatana-indicator-messages-4a6fa0a418b899667988d25b7f8922a031f72f38.zip |
Move menu and application handling out of messages-service.c
As a side effect, changes from applications (message/source adds and removals) are propagated to the menu properly.
Approved by Renato Araujo Oliveira Filho, PS Jenkins bot, Olivier Tilloy.
Diffstat (limited to 'src/im-application-list.h')
-rw-r--r-- | src/im-application-list.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/im-application-list.h b/src/im-application-list.h new file mode 100644 index 0000000..ecba312 --- /dev/null +++ b/src/im-application-list.h @@ -0,0 +1,52 @@ +/* + * Copyright 2012 Canonical Ltd. + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, 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 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, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Lars Uebernickel <lars.uebernickel@canonical.com> + */ + +#ifndef __IM_APPLICATION_LIST_H__ +#define __IM_APPLICATION_LIST_H__ + +#include <gio/gio.h> + +#define IM_TYPE_APPLICATION_LIST (im_application_list_get_type ()) +#define IM_APPLICATION_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IM_TYPE_APPLICATION_LIST, ImApplicationList)) +#define IM_APPLICATION_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IM_TYPE_APPLICATION_LIST, ImApplicationListClass)) +#define IM_IS_APPLICATION_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IM_TYPE_APPLICATION_LIST)) +#define IM_IS_APPLICATION_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IM_TYPE_APPLICATION_LIST)) +#define IM_APPLICATION_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IM_TYPE_APPLICATION_LIST, ImApplicationListClass)) + +typedef struct _ImApplicationList ImApplicationList; + +GType im_application_list_get_type (void); + +ImApplicationList * im_application_list_new (void); + +void im_application_list_add (ImApplicationList *list, + const gchar *desktop_id); + +void im_application_list_remove (ImApplicationList *list, + const gchar *id); + +void im_application_list_set_remote (ImApplicationList *list, + const gchar *id, + GDBusConnection *connection, + const gchar *unique_bus_name, + const gchar *object_path); + +GActionGroup * im_application_list_get_action_group (ImApplicationList *list); + +#endif |