2 * Copyright (C) 2007-2010 Collabora Ltd.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 * Authors: Xavier Claessens <xclaesse@gmail.com>
21 #ifndef __EMPATHY_DISPATCHER_H__
22 #define __EMPATHY_DISPATCHER_H__
27 #include <telepathy-glib/channel.h>
29 #include "empathy-contact.h"
33 #define EMPATHY_CHAT_BUS_NAME_SUFFIX "Empathy.Chat"
34 #define EMPATHY_CHAT_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_CHAT_BUS_NAME_SUFFIX
36 #define EMPATHY_AV_BUS_NAME_SUFFIX "Empathy.AudioVideo"
37 #define EMPATHY_AV_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_AV_BUS_NAME_SUFFIX
39 #define EMPATHY_CALL_BUS_NAME_SUFFIX "Empathy.Call"
40 #define EMPATHY_CALL_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_CALL_BUS_NAME_SUFFIX
42 #define EMPATHY_FT_BUS_NAME_SUFFIX "Empathy.FileTransfer"
43 #define EMPATHY_FT_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_FT_BUS_NAME_SUFFIX
45 /* Requesting 1 to 1 text channels */
46 void empathy_chat_with_contact_id (TpAccount *account,
47 const gchar *contact_id,
49 GAsyncReadyCallback callback,
52 void empathy_chat_with_contact (EmpathyContact *contact,
55 /* Request a muc channel */
56 void empathy_join_muc (TpAccount *account,
57 const gchar *roomname,
60 /* Request a sms channel */
61 void empathy_sms_contact_id (TpAccount *account,
62 const gchar *contact_id,
64 GAsyncReadyCallback callback,
69 #endif /* __EMPATHY_DISPATCHER_H__ */