~ubuntu-branches/ubuntu/quantal/indicator-messages/quantal

« back to all changes in this revision

Viewing changes to src/messages-service-dbus.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-08-27 18:56:59 UTC
  • mfrom: (1.1.39)
  • Revision ID: package-import@ubuntu.com-20120827185659-1ewczw5i644ptz3v
Tags: 12.10.1-0ubuntu1
* New upstream version
* debian/control:
  - breaks on version of ported clients using libindicate
  - set some conflicts on the old deprecated status provider binaries
  - updated Build-Depends
* debian/control, debian/*.install:
  - drop indicator-status-provider-*, those are deprecated
  - new binaries for the libmessaging-menu library
* debian/libmessaging-menu0.symbols:
  - symbol file for the new library
* Updated packaging to dh9, current standards
* Drop gtk2 build from the packaging since support for it was 
  dropped in trunk, thanks Lars Uebernickel

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
An indicator to show information that is in messaging applications
3
 
that the user is using.
4
 
 
5
 
Copyright 2009 Canonical Ltd.
6
 
 
7
 
Authors:
8
 
    Ted Gould <ted@canonical.com>
9
 
 
10
 
This program is free software: you can redistribute it and/or modify it 
11
 
under the terms of the GNU General Public License version 3, as published 
12
 
by the Free Software Foundation.
13
 
 
14
 
This program is distributed in the hope that it will be useful, but 
15
 
WITHOUT ANY WARRANTY; without even the implied warranties of 
16
 
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
17
 
PURPOSE.  See the GNU General Public License for more details.
18
 
 
19
 
You should have received a copy of the GNU General Public License along 
20
 
with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 
*/
22
 
 
23
 
#ifndef __MESSAGE_SERVICE_DBUS_H__
24
 
#define __MESSAGE_SERVICE_DBUS_H__
25
 
 
26
 
#include <glib.h>
27
 
#include <glib-object.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define MESSAGE_SERVICE_DBUS_TYPE            (message_service_dbus_get_type ())
32
 
#define MESSAGE_SERVICE_DBUS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MESSAGE_SERVICE_DBUS_TYPE, MessageServiceDbus))
33
 
#define MESSAGE_SERVICE_DBUS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), MESSAGE_SERVICE_DBUS_TYPE, MessageServiceDbusClass))
34
 
#define IS_MESSAGE_SERVICE_DBUS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MESSAGE_SERVICE_DBUS_TYPE))
35
 
#define IS_MESSAGE_SERVICE_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MESSAGE_SERVICE_DBUS_TYPE))
36
 
#define MESSAGE_SERVICE_DBUS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), MESSAGE_SERVICE_DBUS_TYPE, MessageServiceDbusClass))
37
 
 
38
 
#define MESSAGE_SERVICE_DBUS_SIGNAL_ATTENTION_CHANGED  "attention-changed"
39
 
#define MESSAGE_SERVICE_DBUS_SIGNAL_ICON_CHANGED       "icon-changed"
40
 
 
41
 
typedef struct _MessageServiceDbus      MessageServiceDbus;
42
 
typedef struct _MessageServiceDbusClass MessageServiceDbusClass;
43
 
 
44
 
struct _MessageServiceDbusClass {
45
 
        GObjectClass parent_class;
46
 
 
47
 
        void (*attention_changed) (gboolean dot);
48
 
        void (*icon_changed) (gboolean hidden);
49
 
};
50
 
 
51
 
struct _MessageServiceDbus {
52
 
        GObject parent;
53
 
};
54
 
 
55
 
GType message_service_dbus_get_type (void);
56
 
MessageServiceDbus * message_service_dbus_new (void);
57
 
void message_service_dbus_set_attention (MessageServiceDbus * self, gboolean attention);
58
 
void message_service_dbus_set_icon (MessageServiceDbus * self, gboolean hidden);
59
 
 
60
 
G_END_DECLS
61
 
 
62
 
#endif