diff options
author | Olli Salli <olli.salli@collabora.co.uk> | 2007-01-29 15:47:36 +0000 |
---|---|---|
committer | Olli Salli <olli.salli@collabora.co.uk> | 2007-01-29 15:47:36 +0000 |
commit | 7a897b917168505139de0c726e96663e2c7ed977 (patch) | |
tree | ae8ec0815c2f66152812bdc85439c44bc708cd67 /src/idle-im-channel.h | |
parent | 36e7ba52d4397763aca609c368bc6f2472b644a1 (diff) | |
download | telepathy-idle-7a897b917168505139de0c726e96663e2c7ed977.tar.gz |
Initial import (migration from SF.net SVN)
20070129154736-9db4d-be80727a61507e6581870228122d0d2a7c12995e.gz
Diffstat (limited to 'src/idle-im-channel.h')
-rw-r--r-- | src/idle-im-channel.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/idle-im-channel.h b/src/idle-im-channel.h new file mode 100644 index 0000000..ebc308f --- /dev/null +++ b/src/idle-im-channel.h @@ -0,0 +1,69 @@ +/* + * This file is part of telepathy-idle + * + * Copyright (C) 2006 Nokia Corporation. All rights reserved. + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * version 2.1 as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __IDLE_IM_CHANNEL_H__ +#define __IDLE_IM_CHANNEL_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct _IdleIMChannel IdleIMChannel; +typedef struct _IdleIMChannelClass IdleIMChannelClass; + +struct _IdleIMChannelClass { + GObjectClass parent_class; +}; + +struct _IdleIMChannel { + GObject parent; +}; + +GType idle_im_channel_get_type(void); + +/* TYPE MACROS */ +#define IDLE_TYPE_IM_CHANNEL \ + (idle_im_channel_get_type()) +#define IDLE_IM_CHANNEL(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), IDLE_TYPE_IM_CHANNEL, IdleIMChannel)) +#define IDLE_IM_CHANNEL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), IDLE_TYPE_IM_CHANNEL, IdleIMChannelClass)) +#define IDLE_IS_IM_CHANNEL(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), IDLE_TYPE_IM_CHANNEL)) +#define IDLE_IS_IM_CHANNEL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), IDLE_TYPE_IM_CHANNEL)) +#define IDLE_IM_CHANNEL_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), IDLE_TYPE_IM_CHANNEL, IdleIMChannelClass)) + +gboolean _idle_im_channel_receive(IdleIMChannel *chan, TpChannelTextMessageType type, IdleHandle sender, const gchar *msg); +void _idle_im_channel_rename(IdleIMChannel *chan, IdleHandle new_handle); +void _idle_im_channel_nosuchnick(IdleIMChannel *chan); + +gboolean idle_im_channel_acknowledge_pending_messages (IdleIMChannel *obj, const GArray *ids, GError **error); +gboolean idle_im_channel_close (IdleIMChannel *obj, GError **error); +gboolean idle_im_channel_get_channel_type (IdleIMChannel *obj, gchar ** ret, GError **error); +gboolean idle_im_channel_get_handle (IdleIMChannel *obj, guint* ret, guint* ret1, GError **error); +gboolean idle_im_channel_get_interfaces (IdleIMChannel *obj, gchar *** ret, GError **error); +gboolean idle_im_channel_list_pending_messages (IdleIMChannel *obj, gboolean clear, GPtrArray ** ret, GError **error); +gboolean idle_im_channel_send (IdleIMChannel *obj, guint type, const gchar * text, GError **error); + +G_END_DECLS + +#endif /* #ifndef __IDLE_IM_CHANNEL_H__*/ |