Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
e26a2e55
Commit
e26a2e55
authored
Nov 08, 2007
by
Pierre-Luc Beaudoin
Browse files
Merge commit 'origin/master'
parents
3231f100
20671d89
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
e26a2e55
...
...
@@ -53,6 +53,14 @@ sflphone-gtk/doc/html/*
/libs/dbus/tools/dbusxx-*
/libs/dbus/dbus-c++-1.pc
/libs/dbus/doc
/libs/dbus/INSTALL
/libs/dbus/config.guess
/libs/dbus/config.sub
/libs/dbus/depcomp
/libs/dbus/install-sh
/libs/dbus/ltmain.sh
/libs/dbus/missing
# Ignore sflphone-gtk stuff
/sflphone-gtk/config.*
...
...
@@ -71,7 +79,6 @@ sflphone-gtk/doc/html/*
# Ignore temp libs stuff
tools/portaudio
# Ignore sub-modules stuff
## libiax2
/libs/libiax2/doc/html
...
...
sflphone-gtk/src/calltree.c
View file @
e26a2e55
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/configurationmanager-glue.h
View file @
e26a2e55
...
...
@@ -542,22 +542,22 @@ static
inline
#endif
gboolean
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
(
DBusGProxy
*
proxy
,
GHashTable
**
OUT_parameters
,
GError
**
error
)
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
(
DBusGProxy
*
proxy
,
GHashTable
**
OUT_parameters
,
GError
**
error
)
{
return
dbus_g_proxy_call
(
proxy
,
"get
Parameters
"
,
error
,
G_TYPE_INVALID
,
dbus_g_type_get_map
(
"GHashTable"
,
G_TYPE_STRING
,
G_TYPE_STRING
),
OUT_parameters
,
G_TYPE_INVALID
);
return
dbus_g_proxy_call
(
proxy
,
"get
DefaultAccount
"
,
error
,
G_TYPE_INVALID
,
dbus_g_type_get_map
(
"GHashTable"
,
G_TYPE_STRING
,
G_TYPE_STRING
),
OUT_parameters
,
G_TYPE_INVALID
);
}
typedef
void
(
*
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
_reply
)
(
DBusGProxy
*
proxy
,
GHashTable
*
OUT_parameters
,
GError
*
error
,
gpointer
userdata
);
typedef
void
(
*
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
_reply
)
(
DBusGProxy
*
proxy
,
GHashTable
*
OUT_parameters
,
GError
*
error
,
gpointer
userdata
);
static
void
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
_async_callback
(
DBusGProxy
*
proxy
,
DBusGProxyCall
*
call
,
void
*
user_data
)
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
_async_callback
(
DBusGProxy
*
proxy
,
DBusGProxyCall
*
call
,
void
*
user_data
)
{
DBusGAsyncData
*
data
=
(
DBusGAsyncData
*
)
user_data
;
GError
*
error
=
NULL
;
GHashTable
*
OUT_parameters
;
dbus_g_proxy_end_call
(
proxy
,
call
,
&
error
,
dbus_g_type_get_map
(
"GHashTable"
,
G_TYPE_STRING
,
G_TYPE_STRING
),
&
OUT_parameters
,
G_TYPE_INVALID
);
(
*
(
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
_reply
)
data
->
cb
)
(
proxy
,
OUT_parameters
,
error
,
data
->
userdata
);
(
*
(
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
_reply
)
data
->
cb
)
(
proxy
,
OUT_parameters
,
error
,
data
->
userdata
);
return
;
}
...
...
@@ -566,35 +566,35 @@ static
inline
#endif
DBusGProxyCall
*
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
_async
(
DBusGProxy
*
proxy
,
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
_reply
callback
,
gpointer
userdata
)
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
_async
(
DBusGProxy
*
proxy
,
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
_reply
callback
,
gpointer
userdata
)
{
DBusGAsyncData
*
stuff
;
stuff
=
g_new
(
DBusGAsyncData
,
1
);
stuff
->
cb
=
G_CALLBACK
(
callback
);
stuff
->
userdata
=
userdata
;
return
dbus_g_proxy_begin_call
(
proxy
,
"get
Parameters
"
,
org_sflphone_SFLphone_ConfigurationManager_get_
parameters
_async_callback
,
stuff
,
g_free
,
G_TYPE_INVALID
);
return
dbus_g_proxy_begin_call
(
proxy
,
"get
DefaultAccount
"
,
org_sflphone_SFLphone_ConfigurationManager_get_
default_account
_async_callback
,
stuff
,
g_free
,
G_TYPE_INVALID
);
}
static
#ifdef G_HAVE_INLINE
inline
#endif
gboolean
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
(
DBusGProxy
*
proxy
,
const
GHashTable
*
IN_parameters
,
GError
**
error
)
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
(
DBusGProxy
*
proxy
,
const
char
*
IN_accountID
,
GError
**
error
)
{
return
dbus_g_proxy_call
(
proxy
,
"set
Parameters"
,
error
,
dbus_g_type_get_map
(
"GHashTable"
,
G_TYPE_STRING
,
G_TYPE_STRING
),
IN_parameters
,
G_TYPE_INVALID
,
G_TYPE_INVALID
);
return
dbus_g_proxy_call
(
proxy
,
"set
DefaultAccount"
,
error
,
G_TYPE_STRING
,
IN_accountID
,
G_TYPE_INVALID
,
G_TYPE_INVALID
);
}
typedef
void
(
*
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
_reply
)
(
DBusGProxy
*
proxy
,
GError
*
error
,
gpointer
userdata
);
typedef
void
(
*
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
_reply
)
(
DBusGProxy
*
proxy
,
GError
*
error
,
gpointer
userdata
);
static
void
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
_async_callback
(
DBusGProxy
*
proxy
,
DBusGProxyCall
*
call
,
void
*
user_data
)
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
_async_callback
(
DBusGProxy
*
proxy
,
DBusGProxyCall
*
call
,
void
*
user_data
)
{
DBusGAsyncData
*
data
=
(
DBusGAsyncData
*
)
user_data
;
GError
*
error
=
NULL
;
dbus_g_proxy_end_call
(
proxy
,
call
,
&
error
,
G_TYPE_INVALID
);
(
*
(
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
_reply
)
data
->
cb
)
(
proxy
,
error
,
data
->
userdata
);
(
*
(
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
_reply
)
data
->
cb
)
(
proxy
,
error
,
data
->
userdata
);
return
;
}
...
...
@@ -603,14 +603,14 @@ static
inline
#endif
DBusGProxyCall
*
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
_async
(
DBusGProxy
*
proxy
,
const
GHashTable
*
IN_parameters
,
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
_reply
callback
,
gpointer
userdata
)
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
_async
(
DBusGProxy
*
proxy
,
const
char
*
IN_accountID
,
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
_reply
callback
,
gpointer
userdata
)
{
DBusGAsyncData
*
stuff
;
stuff
=
g_new
(
DBusGAsyncData
,
1
);
stuff
->
cb
=
G_CALLBACK
(
callback
);
stuff
->
userdata
=
userdata
;
return
dbus_g_proxy_begin_call
(
proxy
,
"set
Parameters
"
,
org_sflphone_SFLphone_ConfigurationManager_set_
parameters
_async_callback
,
stuff
,
g_free
,
dbus_g_type_get_map
(
"GHashTable"
,
G_TYPE_STRING
,
G_TYPE_STRING
),
IN_parameters
,
G_TYPE_INVALID
);
return
dbus_g_proxy_begin_call
(
proxy
,
"set
DefaultAccount
"
,
org_sflphone_SFLphone_ConfigurationManager_set_
default_account
_async_callback
,
stuff
,
g_free
,
G_TYPE_STRING
,
IN_accountID
,
G_TYPE_INVALID
);
}
#endif
/* defined DBUS_GLIB_CLIENT_WRAPPERS_org_sflphone_SFLphone_ConfigurationManager */
...
...
sflphone-gtk/src/configwindow.c
View file @
e26a2e55
...
...
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <accountlist.h>
#include <accountwindow.h>
#include <actions.h>
...
...
@@ -32,108 +32,123 @@ GtkListStore *account_store;
GtkWidget
*
addButton
;
GtkWidget
*
editButton
;
GtkWidget
*
deleteButton
;
GtkWidget
*
defaultButton
;
account_t
*
selectedAccount
;
/** Fills the treelist with accounts */
void
void
config_window_fill_account_list
()
{
if
(
dialogOpen
)
{
GtkTreeIter
iter
;
gtk_list_store_clear
(
account_store
);
int
i
;
for
(
i
=
0
;
i
<
account_list_get_size
();
i
++
)
{
account_t
*
a
=
account_list_get_nth
(
i
);
if
(
a
)
{
gtk_list_store_append
(
account_store
,
&
iter
);
gtk_list_store_set
(
account_store
,
&
iter
,
0
,
g_hash_table_lookup
(
a
->
properties
,
ACCOUNT_ALIAS
),
// Name
1
,
g_hash_table_lookup
(
a
->
properties
,
ACCOUNT_TYPE
),
// Protocol
2
,
account_state_name
(
a
->
state
),
// Status
3
,
a
,
// Pointer
-
1
);
}
}
gtk_widget_set_sensitive
(
GTK_WIDGET
(
editButton
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
deleteButton
),
FALSE
);
}
if
(
dialogOpen
)
{
GtkTreeIter
iter
;
gtk_list_store_clear
(
account_store
);
int
i
;
for
(
i
=
0
;
i
<
account_list_get_size
();
i
++
)
{
account_t
*
a
=
account_list_get_nth
(
i
);
if
(
a
)
{
gtk_list_store_append
(
account_store
,
&
iter
);
gtk_list_store_set
(
account_store
,
&
iter
,
0
,
g_hash_table_lookup
(
a
->
properties
,
ACCOUNT_ALIAS
),
// Name
1
,
g_hash_table_lookup
(
a
->
properties
,
ACCOUNT_TYPE
),
// Protocol
2
,
account_state_name
(
a
->
state
),
// Status
3
,
a
,
// Pointer
-
1
);
}
}
gtk_widget_set_sensitive
(
GTK_WIDGET
(
editButton
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
deleteButton
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
defaultButton
),
FALSE
);
}
}
/**
* Delete an account
*/
static
void
static
void
delete_account
(
GtkWidget
*
widget
,
gpointer
data
)
{
if
(
selectedAccount
)
{
dbus_remove_account
(
selectedAccount
->
accountID
);
}
if
(
selectedAccount
)
{
dbus_remove_account
(
selectedAccount
->
accountID
);
}
}
/**
* Edit an account
*/
static
void
static
void
edit_account
(
GtkWidget
*
widget
,
gpointer
data
)
{
if
(
selectedAccount
)
{
show_account_window
(
selectedAccount
);
}
if
(
selectedAccount
)
{
show_account_window
(
selectedAccount
);
}
}
/**
* Add an account
*/
static
void
static
void
add_account
(
GtkWidget
*
widget
,
gpointer
data
)
{
show_account_window
(
NULL
);
show_account_window
(
NULL
);
}
/*
* Should mark the account as default
*/
default_account
(
GtkWidget
*
widget
,
gpointer
data
)
{
// set account as default
if
(
selectedAccount
)
{
dbus_set_default_account
(
selectedAccount
->
accountID
);
}
}
/* Call back when the user click on an account in the list */
static
void
static
void
select_account
(
GtkTreeSelection
*
sel
,
GtkTreeModel
*
model
)
{
GtkTreeIter
iter
;
GValue
val
;
if
(
!
gtk_tree_selection_get_selected
(
sel
,
&
model
,
&
iter
))
{
selectedAccount
=
NULL
;
selectedAccount
=
NULL
;
return
;
}
}
val
.
g_type
=
G_TYPE_POINTER
;
gtk_tree_model_get_value
(
model
,
&
iter
,
3
,
&
val
);
selectedAccount
=
(
account_t
*
)
g_value_get_pointer
(
&
val
);
g_value_unset
(
&
val
);
g_value_unset
(
&
val
);
if
(
selectedAccount
)
{
gtk_widget_set_sensitive
(
GTK_WIDGET
(
editButton
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
deleteButton
),
TRUE
);
}
g_print
(
"select"
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
editButton
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
deleteButton
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
defaultButton
),
TRUE
);
}
g_print
(
"select"
);
}
GtkWidget
*
GtkWidget
*
create_accounts_tab
()
{
GtkWidget
*
ret
;
GtkWidget
*
ret
;
GtkWidget
*
sw
;
GtkWidget
*
view
;
GtkWidget
*
bbox
;
...
...
@@ -141,7 +156,7 @@ create_accounts_tab()
GtkTreeViewColumn
*
col
;
GtkTreeSelection
*
sel
;
GtkWidget
*
label
;
selectedAccount
=
NULL
;
ret
=
gtk_vbox_new
(
FALSE
,
10
);
...
...
@@ -162,41 +177,41 @@ create_accounts_tab()
gtk_box_pack_start
(
GTK_BOX
(
ret
),
sw
,
TRUE
,
TRUE
,
0
);
account_store
=
gtk_list_store_new
(
4
,
G_TYPE_STRING
,
// Name
G_TYPE_STRING
,
// Protocol
G_TYPE_STRING
,
// Status
G_TYPE_POINTER
// Pointer to the Object
);
G_TYPE_STRING
,
// Name
G_TYPE_STRING
,
// Protocol
G_TYPE_STRING
,
// Status
G_TYPE_POINTER
// Pointer to the Object
);
view
=
gtk_tree_view_new_with_model
(
GTK_TREE_MODEL
(
account_store
));
sel
=
gtk_tree_view_get_selection
(
GTK_TREE_VIEW
(
view
));
g_signal_connect
(
G_OBJECT
(
sel
),
"changed"
,
G_CALLBACK
(
select_account
),
account_store
);
G_CALLBACK
(
select_account
),
account_store
);
gtk_tree_sortable_set_sort_column_id
(
GTK_TREE_SORTABLE
(
account_store
),
2
,
GTK_SORT_ASCENDING
);
rend
=
gtk_cell_renderer_text_new
();
2
,
GTK_SORT_ASCENDING
);
rend
=
gtk_cell_renderer_text_new
();
col
=
gtk_tree_view_column_new_with_attributes
(
"Alias"
,
rend
,
"markup"
,
0
,
NULL
);
rend
,
"markup"
,
0
,
NULL
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
view
),
col
);
rend
=
gtk_cell_renderer_text_new
();
col
=
gtk_tree_view_column_new_with_attributes
(
"Protocol"
,
rend
,
"markup"
,
1
,
NULL
);
rend
=
gtk_cell_renderer_text_new
();
col
=
gtk_tree_view_column_new_with_attributes
(
"Protocol"
,
rend
,
"markup"
,
1
,
NULL
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
view
),
col
);
rend
=
gtk_cell_renderer_text_new
();
col
=
gtk_tree_view_column_new_with_attributes
(
"Status"
,
rend
,
"markup"
,
2
,
NULL
);
rend
,
"markup"
,
2
,
NULL
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
view
),
col
);
g_object_unref
(
G_OBJECT
(
account_store
));
gtk_container_add
(
GTK_CONTAINER
(
sw
),
view
);
...
...
@@ -207,66 +222,77 @@ create_accounts_tab()
gtk_button_box_set_layout
(
GTK_BUTTON_BOX
(
bbox
),
GTK_BUTTONBOX_START
);
gtk_box_pack_start
(
GTK_BOX
(
ret
),
bbox
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
bbox
);
addButton
=
gtk_button_new_from_stock
(
GTK_STOCK_ADD
);
g_signal_connect_swapped
(
G_OBJECT
(
addButton
),
"clicked"
,
G_CALLBACK
(
add_account
),
NULL
);
G_CALLBACK
(
add_account
),
NULL
);
gtk_box_pack_start
(
GTK_BOX
(
bbox
),
addButton
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
addButton
);
editButton
=
gtk_button_new_from_stock
(
GTK_STOCK_EDIT
);
g_signal_connect_swapped
(
G_OBJECT
(
editButton
),
"clicked"
,
G_CALLBACK
(
edit_account
),
NULL
);
G_CALLBACK
(
edit_account
),
NULL
);
gtk_box_pack_start
(
GTK_BOX
(
bbox
),
editButton
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
editButton
);
deleteButton
=
gtk_button_new_from_stock
(
GTK_STOCK_REMOVE
);
g_signal_connect_swapped
(
G_OBJECT
(
deleteButton
),
"clicked"
,
G_CALLBACK
(
delete_account
),
NULL
);
G_CALLBACK
(
delete_account
),
NULL
);
gtk_box_pack_start
(
GTK_BOX
(
bbox
),
deleteButton
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
deleteButton
);
defaultButton
=
gtk_button_new_with_mnemonic
(
"Set as Default"
);
g_signal_connect_swapped
(
G_OBJECT
(
defaultButton
),
"clicked"
,
G_CALLBACK
(
default_account
),
NULL
);
gtk_box_pack_start
(
GTK_BOX
(
bbox
),
defaultButton
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
defaultButton
);
gtk_widget_show_all
(
ret
);
config_window_fill_account_list
();
return
ret
;
}
void
void
show_config_window
()
{
GtkDialog
*
dialog
;
GtkWidget
*
notebook
;
GtkWidget
*
tab
;
dialogOpen
=
TRUE
;
dialog
=
GTK_DIALOG
(
gtk_dialog_new_with_buttons
(
"Preferences"
,
GTK_WINDOW
(
get_main_window
()),
GTK_DIALOG_MODAL
|
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_STOCK_CLOSE
,
GTK_RESPONSE_ACCEPT
,
NULL
));
gtk_dialog_set_has_separator
(
dialog
,
FALSE
);
gtk_window_set_default_size
(
GTK_WINDOW
(
dialog
),
400
,
400
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
dialog
),
0
);
notebook
=
gtk_notebook_new
();
GtkDialog
*
dialog
;
GtkWidget
*
notebook
;
GtkWidget
*
tab
;
dialogOpen
=
TRUE
;
dialog
=
GTK_DIALOG
(
gtk_dialog_new_with_buttons
(
"Preferences"
,
GTK_WINDOW
(
get_main_window
()),
GTK_DIALOG_MODAL
|
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_STOCK_CLOSE
,
GTK_RESPONSE_ACCEPT
,
NULL
));
gtk_dialog_set_has_separator
(
dialog
,
FALSE
);
gtk_window_set_default_size
(
GTK_WINDOW
(
dialog
),
400
,
400
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
dialog
),
0
);
notebook
=
gtk_notebook_new
();
gtk_box_pack_start
(
GTK_BOX
(
dialog
->
vbox
),
notebook
,
TRUE
,
TRUE
,
0
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
notebook
),
10
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
notebook
),
10
);
gtk_widget_show
(
notebook
);
/* Create tabs */
tab
=
create_accounts_tab
();
gtk_notebook_append_page
(
GTK_NOTEBOOK
(
notebook
),
tab
,
gtk_label_new
(
"Accounts"
));
/* Create tabs */
tab
=
create_accounts_tab
();
gtk_notebook_append_page
(
GTK_NOTEBOOK
(
notebook
),
tab
,
gtk_label_new
(
"Accounts"
));
gtk_notebook_page_num
(
GTK_NOTEBOOK
(
notebook
),
tab
);
gtk_dialog_run
(
dialog
);
/*
GtkWidget* blob;//create_blob_tab();
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), blob, gtk_label_new("Audio"));
gtk_notebook_page_num(GTK_NOTEBOOK(notebook), blob);
*/
gtk_dialog_run
(
dialog
);
dialogOpen
=
FALSE
;
dialogOpen
=
FALSE
;
gtk_widget_destroy
(
GTK_WIDGET
(
dialog
));
gtk_widget_destroy
(
GTK_WIDGET
(
dialog
));
}
sflphone-gtk/src/dbus.c
View file @
e26a2e55
...
...
@@ -432,6 +432,25 @@ dbus_account_details(gchar * accountID)
return
details
;
}
void
dbus_set_default_account
(
gchar
*
accountID
)
{
GError
*
error
=
NULL
;
org_sflphone_SFLphone_ConfigurationManager_set_default_account
(
configurationManagerProxy
,
accountID
,
&
error
);
if
(
error
)
{
g_printerr
(
"Failed to call set_default_account() on ConfigurationManager: %s
\n
"
,
error
->
message
);
g_error_free
(
error
);
}
else
{
g_print
(
"DBus called set_default_account() on ConfigurationManager
\n
"
);
}
}
void
dbus_remove_account
(
gchar
*
accountID
)
{
...
...
sflphone-gtk/src/dbus.h
View file @
e26a2e55
...
...
@@ -50,6 +50,7 @@ void dbus_remove_account(gchar * accountID);
void
dbus_set_volume
(
const
gchar
*
device
,
gdouble
value
);
gdouble
dbus_get_volume
(
const
gchar
*
device
);
void
dbus_play_dtmf
(
const
gchar
*
key
);
void
dbus_set_default_account
(
gchar
*
accountID
);
/* Instance */
void
dbus_register
(
int
pid
,
gchar
*
name
);
...
...
src/dbus/configurationmanager-glue.h
View file @
e26a2e55
...
...
@@ -34,8 +34,8 @@ public:
register_method
(
ConfigurationManager
,
getPlaybackDeviceList
,
_getPlaybackDeviceList_stub
);
register_method
(
ConfigurationManager
,
getRecordDeviceList
,
_getRecordDeviceList_stub
);
register_method
(
ConfigurationManager
,
getSampleRateList
,
_getSampleRateList_stub
);
register_method
(
ConfigurationManager
,
get
Parameters
,
_getParameters
_stub
);
register_method
(
ConfigurationManager
,
set
Parameters
,
_setParameters
_stub
);
register_method
(
ConfigurationManager
,
get
DefaultAccount
,
_getDefaultAccount
_stub
);
register_method
(
ConfigurationManager
,
set
DefaultAccount
,
_setDefaultAccount
_stub
);
}
::
DBus
::
IntrospectedInterface
*
const
introspect
()
const
...
...
@@ -112,14 +112,14 @@ public:
{
"list"
,
"as"
,
false
},
{
0
,
0
,
0
}
};
static
::
DBus
::
IntrospectedArgument
get
Parameters
_args
[]
=
static
::
DBus
::
IntrospectedArgument
get
DefaultAccount
_args
[]
=
{
{
"parameters"
,
"a{ss}"
,
false
},
{
0
,
0
,
0
}
};
static
::
DBus
::
IntrospectedArgument
set
Parameters
_args
[]
=
static
::
DBus
::
IntrospectedArgument
set
DefaultAccount
_args
[]
=
{
{
"
parameters"
,
"a{ss}
"
,
true
},
{
"
accountID"
,
"s
"
,
true
},
{
0
,
0
,
0
}
};
static
::
DBus
::
IntrospectedArgument
parametersChanged_args
[]
=
...
...
@@ -147,8 +147,8 @@ public:
{
"getPlaybackDeviceList"
,
getPlaybackDeviceList_args
},
{
"getRecordDeviceList"
,
getRecordDeviceList_args
},
{
"getSampleRateList"
,
getSampleRateList_args
},
{
"get
Parameters"
,
getParameters
_args
},
{
"set
Parameters"
,
setParameters
_args
},
{
"get
DefaultAccount"
,
getDefaultAccount
_args
},
{
"set
DefaultAccount"
,
setDefaultAccount
_args
},
{
0
,
0
}
};
static
::
DBus
::
IntrospectedMethod
ConfigurationManager_signals
[]
=
...
...
@@ -196,8 +196,8 @@ public:
virtual
std
::
vector
<
::
DBus
::
String
>
getPlaybackDeviceList
(
)
=
0
;
virtual
std
::
vector
<
::
DBus
::
String
>
getRecordDeviceList
(
)
=
0
;
virtual
std
::
vector
<
::
DBus
::
String
>
getSampleRateList
(
)
=
0
;
virtual
std
::
map
<
::
DBus
::
String
,
::
DBus
::
String
>
get
Parameters
(
)
=
0
;
virtual
void
set
Parameters
(
const
std
::
map
<
::
DBus
::
String
,
::
DBus
::
String
>&
parameters
)
=
0
;
virtual
std
::
map
<
::
DBus
::
String
,
::
DBus
::
String
>
get
DefaultAccount
(
)
=
0
;
virtual
void
set
DefaultAccount
(
const
::
DBus
::
String
&
accountID
)
=
0
;
public:
...
...
@@ -358,22 +358,22 @@ private:
wi
<<
argout1
;
return
reply
;
}
::
DBus
::
Message
_get
Parameters
_stub
(
const
::
DBus
::
CallMessage
&
call
)
::
DBus
::
Message
_get
DefaultAccount
_stub
(
const
::
DBus
::
CallMessage
&
call
)
{
::
DBus
::
MessageIter
ri
=
call
.
reader
();
std
::
map
<
::
DBus
::
String
,
::
DBus
::
String
>
argout1
=
get
Parameters
();
std
::
map
<
::
DBus
::
String
,
::
DBus
::
String
>
argout1
=
get
DefaultAccount
();
::
DBus
::
ReturnMessage
reply
(
call
);
::
DBus
::
MessageIter
wi
=
reply
.
writer
();
wi
<<
argout1
;
return
reply
;
}
::
DBus
::
Message
_set
Parameters
_stub
(
const
::
DBus
::
CallMessage
&
call
)
::
DBus
::
Message
_set
DefaultAccount
_stub
(
const
::
DBus
::
CallMessage
&
call
)
{
::
DBus
::
MessageIter
ri
=
call
.
reader
();
std
::
map
<
::
DBus
::
String
,
::
DBus
::
String
>
argin1
;
ri
>>
argin1
;
set
Parameters
(
argin1
);
::
DBus
::
String
argin1
;
ri
>>
argin1
;
set
DefaultAccount
(
argin1
);
::
DBus
::
ReturnMessage
reply
(
call
);
return
reply
;
}
...
...
src/dbus/configurationmanager-introspec.xml
View file @
e26a2e55
...
...
@@ -60,12 +60,12 @@
<arg
type=
"as"
name=
"list"
direction=
"out"
/>
</method>
<method
name=
"get
Parameters
"
>
<method
name=
"get
DefaultAccount
"
>