1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
/*
* Copyright (C) 2008,2009 Nokia Corporation.
* Copyright (C) 2008,2009 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
* Copyright (C) 2012 Intel Corporation.
*
* Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
* <zeeshan.ali@nokia.com>
* Krzesimir Nowak <krnowak@openismus.com>
* Jens Georg <jensg@openismus.com>
*
* This file is part of Rygel.
*
* Rygel is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Rygel 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
public errordomain Rygel.ConfigurationError {
NO_VALUE_SET,
VALUE_OUT_OF_RANGE
}
public enum Rygel.ConfigurationEntry {
UPNP_ENABLED,
INTERFACE,
PORT,
TRANSCODING,
ALLOW_UPLOAD,
ALLOW_DELETION,
LOG_LEVELS,
PLUGIN_PATH,
VIDEO_UPLOAD_FOLDER,
MUSIC_UPLOAD_FOLDER,
PICTURE_UPLOAD_FOLDER
}
public enum Rygel.SectionEntry {
TITLE,
ENABLED
}
/**
* Interface for dealing with Rygel configuration.
*/
public interface Rygel.Configuration : GLib.Object {
/**
* Emitted when any of known configuration settings has
* changed. RygelConfigurationEntry lists known configuration
* settings.
*/
public signal void configuration_changed (ConfigurationEntry entry);
/**
* Emitted when any of section settings has
* changed. RygelSectionEntry lists known section settings.
*/
public signal void section_changed (string section, SectionEntry entry);
/**
* Emitted when some custom setting has changed. That happens when
* changed setting does fit into neither configuration_changed nor
* section_changed signal.
*/
public signal void setting_changed (string section, string key);
public abstract bool get_upnp_enabled () throws GLib.Error;
public abstract string get_interface () throws GLib.Error;
public abstract int get_port () throws GLib.Error;
public abstract bool get_transcoding () throws GLib.Error;
public abstract bool get_allow_upload () throws GLib.Error;
public abstract bool get_allow_deletion () throws GLib.Error;
public abstract string get_log_levels () throws GLib.Error;
public abstract string get_plugin_path () throws GLib.Error;
public abstract string get_video_upload_folder () throws GLib.Error;
public abstract string get_music_upload_folder () throws GLib.Error;
public abstract string get_picture_upload_folder () throws GLib.Error;
public abstract bool get_enabled (string section) throws GLib.Error;
public abstract string get_title (string section) throws GLib.Error;
public abstract string get_string (string section,
string key) throws GLib.Error;
public abstract Gee.ArrayList<string> get_string_list (string section,
string key)
throws GLib.Error;
public abstract int get_int (string section,
string key,
int min,
int max)
throws GLib.Error;
public abstract Gee.ArrayList<int> get_int_list (string section,
string key)
throws GLib.Error;
public abstract bool get_bool (string section,
string key)
throws GLib.Error;
}
|