1
/*******************************************************************************
2
**3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
3
** 10 20 30 40 50 60 70 80
6
** Header for some utility-functions for notification examples demonstrating
7
** how to use libnotify correctly and at the same time comply to the new
8
** jaunty notification spec (read: visual guidelines)
10
** Copyright 2009 Canonical Ltd.
13
** Mirco "MacSlow" Mueller <mirco.mueller@canonical.com>
15
** This program is free software: you can redistribute it and/or modify it
16
** under the terms of the GNU General Public License version 3, as published
17
** by the Free Software Foundation.
19
** This program is distributed in the hope that it will be useful, but
20
** WITHOUT ANY WARRANTY; without even the implied warranties of
21
** MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
22
** PURPOSE. See the GNU General Public License for more details.
24
** You should have received a copy of the GNU General Public License along
25
** with this program. If not, see <http://www.gnu.org/licenses/>.
27
*******************************************************************************/
29
#ifndef __EXAMPLE_UTIL_H
30
#define __EXAMPLE_UTIL_H
34
#include <libnotify/notify.h>
36
typedef enum _Capability {
53
#define ACTIONS "actions"
55
#define BODY_HYPERLINKS "body-hyperlinks"
56
#define BODY_IMAGES "body-images"
57
#define BODY_MARKUP "body-markup"
58
#define ICON_MULTI "icon-multi"
59
#define ICON_STATIC "icon-static"
61
#define IMAGE_SVG "image/svg+xml"
62
#define SYNCHRONOUS "x-canonical-private-synchronous"
63
#define APPEND "x-canonical-append"
64
#define LAYOUT_ICON_ONLY "x-canonical-private-icon-only"
65
#define TRUNCATION "x-canonical-truncation"
68
closed_handler (NotifyNotification* notification,
72
set_cap (gpointer data,
79
has_cap (Capability cap);
84
#endif /* __EXAMPLE_UTIL_H */