~indicator-applet-developers/indicator-messages/trunk.13.10

« back to all changes in this revision

Viewing changes to src/im-phone-menu.h

  • Committer: Tarmac
  • Author(s): Lars Uebernickel, Ted Gould, sergio.schvezov at canonical, Sergio Schvezov, Ken VanDine, Renato Araujo Oliveira Filho, Ricardo Mendoza
  • Date: 2013-08-19 16:51:38 UTC
  • mfrom: (327.1.83 consolidate)
  • Revision ID: tarmac-20130819165138-rtvgstpdkoysfshf
Merge in phablet branch.

Approved by PS Jenkins bot, Pete Woods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2012 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Authors:
 
17
 *     Lars Uebernickel <lars.uebernickel@canonical.com>
 
18
 */
 
19
 
 
20
#ifndef __IM_PHONE_MENU_H__
 
21
#define __IM_PHONE_MENU_H__
 
22
 
 
23
#include "im-menu.h"
 
24
 
 
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))
 
31
 
 
32
typedef struct _ImPhoneMenu ImPhoneMenu;
 
33
 
 
34
GType               im_phone_menu_get_type              (void);
 
35
 
 
36
ImPhoneMenu *       im_phone_menu_new                   (ImApplicationList  *applist);
 
37
 
 
38
void                im_phone_menu_add_message           (ImPhoneMenu        *menu,
 
39
                                                         const gchar        *app_id,
 
40
                                                         const gchar        *app_icon,
 
41
                                                         const gchar        *id,
 
42
                                                         const gchar        *iconstr,
 
43
                                                         const gchar        *title,
 
44
                                                         const gchar        *subtitle,
 
45
                                                         const gchar        *body,
 
46
                                                         GVariant           *actions,
 
47
                                                         gint64              time);
 
48
 
 
49
void                im_phone_menu_remove_message        (ImPhoneMenu        *menu,
 
50
                                                         const gchar        *app_id,
 
51
                                                         const gchar        *id);
 
52
 
 
53
void                im_phone_menu_add_source            (ImPhoneMenu        *menu,
 
54
                                                         const gchar        *app_id,
 
55
                                                         const gchar        *id,
 
56
                                                         const gchar        *label,
 
57
                                                         const gchar        *iconstr);
 
58
 
 
59
void                im_phone_menu_remove_source         (ImPhoneMenu        *menu,
 
60
                                                         const gchar        *app_id,
 
61
                                                         const gchar        *id);
 
62
 
 
63
void                im_phone_menu_remove_application    (ImPhoneMenu        *menu,
 
64
                                                         const gchar        *app_id);
 
65
 
 
66
void                im_phone_menu_remove_all            (ImPhoneMenu        *menu);
 
67
 
 
68
#endif