2
* Copyright 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Lars Uebernickel <lars.uebernickel@canonical.com>
20
#ifndef __IM_PHONE_MENU_H__
21
#define __IM_PHONE_MENU_H__
25
#define IM_TYPE_PHONE_MENU (im_phone_menu_get_type ())
26
#define IM_PHONE_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IM_TYPE_PHONE_MENU, ImPhoneMenu))
27
#define IM_PHONE_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IM_TYPE_PHONE_MENU, ImPhoneMenuClass))
28
#define IM_IS_PHONE_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IM_TYPE_PHONE_MENU))
29
#define IM_IS_PHONE_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IM_TYPE_PHONE_MENU))
30
#define IM_PHONE_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IM_TYPE_PHONE_MENU, ImPhoneMenuClass))
32
typedef struct _ImPhoneMenu ImPhoneMenu;
34
GType im_phone_menu_get_type (void);
36
ImPhoneMenu * im_phone_menu_new (ImApplicationList *applist);
38
void im_phone_menu_add_message (ImPhoneMenu *menu,
40
const gchar *app_icon,
44
const gchar *subtitle,
49
void im_phone_menu_remove_message (ImPhoneMenu *menu,
53
void im_phone_menu_add_source (ImPhoneMenu *menu,
57
const gchar *iconstr);
59
void im_phone_menu_remove_source (ImPhoneMenu *menu,
63
void im_phone_menu_remove_application (ImPhoneMenu *menu,
66
void im_phone_menu_remove_all (ImPhoneMenu *menu);