2
# -*- coding: utf-8; tab-width: 4; mode: python -*-
3
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
4
# vi: set ft=python sts=4 ts=4 sw=4 noet
6
# Copyright 2011 Shannon Black
9
# Shannon A Black <shannon@netforge.co.za>
11
# This program is free software: you can redistribute it and/or modify it
12
# under the terms of either or both of the following licenses:
14
# 1) the GNU Lesser General Public License version 3, as published by the
15
# Free Software Foundation; and/or
16
# 2) the GNU Lesser General Public License version 2.1, as published by
17
# the Free Software Foundation.
19
# This program is distributed in the hope that it will be useful, but
20
# WITHOUT ANY WARRANTY; without even the implied warranties of
21
# MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
22
# PURPOSE. See the applicable version of the GNU Lesser General Public
23
# License for more details.
25
# You should have received a copy of both the GNU Lesser General Public
26
# License version 3 and version 2.1 along with this program. If not, see
27
# <http://www.gnu.org/licenses/>
30
from gi.repository import Gio
32
BASE_KEY = "apps.skype-wrapper"
33
settings = Gio.Settings.new(BASE_KEY)
35
def get_notify_on_useronlinestatuschange():
36
return settings.get_boolean("notify-on-useronlinestatuschange")
38
def get_notify_on_messagerecieve():
39
return settings.get_boolean("notify-on-messagerecieve")
41
def get_notify_on_initializing():
42
return settings.get_boolean("notify-on-initializing")
44
def get_display_indicator_avatars():
45
return settings.get_boolean("display-indicator-avatars")
47
def get_display_notification_avatars():
48
return settings.get_boolean("display-notification-avatars")
50
def get_notify_on_incoming_filetransfer():
51
return settings.get_boolean("notify-on-incoming-filetransfer")
53
def get_notify_on_outgoing_filetransfer():
54
return settings.get_boolean("notify-on-outgoing-filetransfer")
56
def get_show_outgoing_filetransfer_progress():
57
return settings.get_boolean("show-outgoing-file-progress")
59
def get_show_incoming_filetransfer_progress():
60
return settings.get_boolean("show-incoming-file-progress")
62
def get_start_skype_cmd_params():
63
return settings.get_string("start-skype-cmd-params")
65
def get_list_of_silence():
66
return settings.get_string("list-of-silence")
69
return settings.get_boolean("debug-log")
71
def get_debug_level():
72
return settings.get_int("debug-level")
75
return float(settings.get_string("cpu-percentage-limit"))
77
def get_use_global_status():
78
return settings.get_boolean("use-global-status")
80
def get_control_music_player():
81
return settings.get_boolean("control-music-player")
83
def get_restore_volume():
84
return settings.get_boolean("restore-volume")