dbus.h 2.15 KB
Newer Older
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
1
2
/*
 *  Copyright (C) 2007 Savoir-Faire Linux inc.
3
 *  Author: Pierre-Luc Beaudoin <pierre-luc@squidy.info>
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 *                                                                              
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *                                                                                
 *  This program 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 General Public License for more details.
 *                                                                              
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


#ifndef __DBUS_H__
#define __DBUS_H__

#include <accountlist.h>
#include <calllist.h>

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
27
28
29
/** @file dbus.h
  * @brief General DBus functions wrappers.
  */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
30
/** @return TRUE if connection succeeded, FALSE otherwise */
31
gboolean dbus_connect ();
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
32
33
34
35
36
37
void dbus_clean ();

/* CallManager */
void dbus_hold (const call_t * c );
void dbus_unhold (const call_t * c );
void dbus_hang_up (const call_t * c );
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
38
void dbus_transfert (const call_t * c);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
39
40
41
42
43
void dbus_accept (const call_t * c);
void dbus_refuse (const call_t * c);
void dbus_place_call (const call_t * c);

/* ConfigurationManager */
44
/** Returns a NULL terminated array of gchar pointers */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
45
46
47
gchar ** dbus_account_list();
GHashTable * dbus_account_details(gchar * accountID);
void dbus_set_account_details(account_t *a);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
48
void dbus_add_account(account_t *a);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
49
void dbus_remove_account(gchar * accountID);
50
51
void dbus_set_volume(const gchar * device, gdouble value);
gdouble dbus_get_volume(const gchar * device);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
52
void dbus_play_dtmf(const gchar * key);
53
void dbus_set_default_account(gchar * accountID);
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
54

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
55
56
57
58
59
60
/* Instance */
void dbus_register( int pid, gchar * name);
void dbus_unregister(int pid);



Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
61
#endif