2
* salut-avahi-muc-channel.h - Header for SalutAvahiMucChannel
3
* Copyright (C) 2008 Collabora Ltd.
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef __SALUT_AVAHI_MUC_CHANNEL_H__
21
#define __SALUT_AVAHI_MUC_CHANNEL_H__
23
#include <glib-object.h>
25
#include <gibber/gibber-muc-connection.h>
27
#include "salut-muc-channel.h"
28
#include "salut-connection.h"
29
#include "salut-xmpp-connection-manager.h"
30
#include "salut-avahi-discovery-client.h"
34
typedef struct _SalutAvahiMucChannel SalutAvahiMucChannel;
35
typedef struct _SalutAvahiMucChannelClass SalutAvahiMucChannelClass;
37
struct _SalutAvahiMucChannelClass
39
SalutMucChannelClass parent_class;
42
struct _SalutAvahiMucChannel
44
SalutMucChannel parent;
49
GType salut_avahi_muc_channel_get_type (void);
52
#define SALUT_TYPE_AVAHI_MUC_CHANNEL \
53
(salut_avahi_muc_channel_get_type ())
54
#define SALUT_AVAHI_MUC_CHANNEL(obj) \
55
(G_TYPE_CHECK_INSTANCE_CAST((obj), SALUT_TYPE_AVAHI_MUC_CHANNEL, SalutAvahiMucChannel))
56
#define SALUT_AVAHI_MUC_CHANNEL_CLASS(klass) \
57
(G_TYPE_CHECK_CLASS_CAST((klass), SALUT_TYPE_AVAHI_MUC_CHANNEL, SalutAvahiMucChannelClass))
58
#define SALUT_IS_AVAHI_MUC_CHANNEL(obj) \
59
(G_TYPE_CHECK_INSTANCE_TYPE((obj), SALUT_TYPE_AVAHI_MUC_CHANNEL))
60
#define SALUT_IS_AVAHI_MUC_CHANNEL_CLASS(klass) \
61
(G_TYPE_CHECK_CLASS_TYPE((klass), SALUT_TYPE_AVAHI_MUC_CHANNEL))
62
#define SALUT_AVAHI_MUC_CHANNEL_GET_CLASS(obj) \
63
(G_TYPE_INSTANCE_GET_CLASS ((obj), SALUT_TYPE_AVAHI_MUC_CHANNEL, SalutAvahiMucChannelClass))
65
SalutAvahiMucChannel * salut_avahi_muc_channel_new (SalutConnection *connection,
66
const gchar *path, GibberMucConnection *muc_connection, TpHandle handle,
67
const gchar *name, SalutAvahiDiscoveryClient *discovery_client,
68
gboolean creator, SalutXmppConnectionManager *xcm);
72
#endif /* #ifndef __SALUT_AVAHI_MUC_CHANNEL_H__*/