]> git.0d.be Git - empathy.git/blob - libempathy/empathy-request-util.h
Updated Swedish translation
[empathy.git] / libempathy / empathy-request-util.h
1 /*
2  * Copyright (C) 2007-2010 Collabora Ltd.
3  *
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.
8  *
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.
13  *
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
17  *
18  * Authors: Xavier Claessens <xclaesse@gmail.com>
19  */
20
21 #ifndef __EMPATHY_DISPATCHER_H__
22 #define __EMPATHY_DISPATCHER_H__
23
24 #include <glib.h>
25 #include <gio/gio.h>
26 #include <telepathy-glib/telepathy-glib.h>
27
28 #include "empathy-contact.h"
29
30 G_BEGIN_DECLS
31
32 #define EMPATHY_CHAT_TP_BUS_NAME_SUFFIX "Empathy.Chat"
33 #define EMPATHY_CHAT_TP_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_CHAT_TP_BUS_NAME_SUFFIX
34
35 #define EMPATHY_CALL_TP_BUS_NAME_SUFFIX "Empathy.Call"
36 #define EMPATHY_CALL_TP_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_CALL_TP_BUS_NAME_SUFFIX
37
38 #define EMPATHY_FT_TP_BUS_NAME_SUFFIX "Empathy.FileTransfer"
39 #define EMPATHY_FT_TP_BUS_NAME TP_CLIENT_BUS_NAME_BASE EMPATHY_FT_TP_BUS_NAME_SUFFIX
40
41 /* Requesting 1 to 1 text channels */
42 void empathy_chat_with_contact_id (TpAccount *account,
43   const gchar *contact_id,
44   gint64 timestamp,
45   GAsyncReadyCallback callback,
46   gpointer user_data);
47
48 void empathy_chat_with_contact (EmpathyContact *contact,
49   gint64 timestamp);
50
51 /* Request a muc channel */
52 void empathy_join_muc (TpAccount *account,
53   const gchar *roomname,
54   gint64 timestamp);
55
56 /* Request a sms channel */
57 void empathy_sms_contact_id (TpAccount *account,
58   const gchar *contact_id,
59   gint64 timestamp,
60   GAsyncReadyCallback callback,
61   gpointer user_data);
62
63 G_END_DECLS
64
65 #endif /* __EMPATHY_DISPATCHER_H__ */