~grissi/skype-wrapper/wrapper-old

« back to all changes in this revision

Viewing changes to src/settings.py

  • Committer: Christian Rupp
  • Date: 2012-09-01 11:17:56 UTC
  • Revision ID: christian@r-k-r.de-20120901111756-67rx12ikixzyrco6
Added first line of text

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
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 
 
5
#
 
6
# Copyright 2011 Shannon Black
 
7
#
 
8
# Authors:
 
9
#    Shannon A Black <shannon@netforge.co.za>
 
10
#
 
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:
 
13
#
 
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.
 
18
#
 
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.
 
24
#
 
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/>
 
28
#
 
29
 
 
30
from gi.repository import Gio
 
31
 
 
32
BASE_KEY = "apps.skype-wrapper"
 
33
settings = Gio.Settings.new(BASE_KEY)
 
34
 
 
35
def get_notify_on_useronlinestatuschange():
 
36
    return settings.get_boolean("notify-on-useronlinestatuschange")
 
37
        
 
38
def get_notify_on_messagerecieve():
 
39
    return settings.get_boolean("notify-on-messagerecieve")
 
40
        
 
41
def get_notify_on_initializing():
 
42
    return settings.get_boolean("notify-on-initializing")
 
43
    
 
44
def get_display_indicator_avatars():
 
45
    return settings.get_boolean("display-indicator-avatars")
 
46
    
 
47
def get_display_notification_avatars():
 
48
    return settings.get_boolean("display-notification-avatars")
 
49
    
 
50
def get_notify_on_incoming_filetransfer():
 
51
    return settings.get_boolean("notify-on-incoming-filetransfer")
 
52
    
 
53
def get_notify_on_outgoing_filetransfer():
 
54
    return settings.get_boolean("notify-on-outgoing-filetransfer")
 
55
 
 
56
def get_show_outgoing_filetransfer_progress():
 
57
    return settings.get_boolean("show-outgoing-file-progress")
 
58
    
 
59
def get_show_incoming_filetransfer_progress():
 
60
    return settings.get_boolean("show-incoming-file-progress")
 
61
 
 
62
def get_start_skype_cmd_params():
 
63
    return settings.get_string("start-skype-cmd-params")
 
64
    
 
65
def get_list_of_silence():
 
66
    return settings.get_string("list-of-silence")
 
67
    
 
68
def get_debug_log():
 
69
    return settings.get_boolean("debug-log")
 
70
    
 
71
def get_debug_level():
 
72
    return settings.get_int("debug-level")
 
73
    
 
74
def get_cpu_limit():
 
75
    return float(settings.get_string("cpu-percentage-limit"))
 
76
    
 
77
def get_use_global_status():
 
78
    return settings.get_boolean("use-global-status")
 
79
    
 
80
def get_control_music_player():
 
81
    return settings.get_boolean("control-music-player")
 
82
    
 
83
def get_restore_volume():
 
84
    return settings.get_boolean("restore-volume")
 
85
    
 
86