blob: 743b57ef687d5bb528fc702e004e841a2f746e05 (
plain)
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
|
/*
* File Name: config.vala
* Creation Date: 23-08-2009
* Last Modified: 15-11-2009 23:36:40
*
* Authored by Frederik 'playya' Sdun <Frederik.Sdun@googlemail.com>
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
namespace FsoMusic.Config
{
public static string get_music_dir()
{
return Environment.get_user_special_dir( UserDirectory.MUSIC );
}
public static string get_playlist_dir()
{
return Path.build_filename( get_config_dir(), "playlists" );
}
public static string get_config_dir()
{
return Path.build_filename( Environment.get_user_config_dir(), "fsomusicd" );
}
public static string get_config_path()
{
return Path.build_filename( get_config_dir(), "main.conf" );
}
public static string get_sys_config_dir()
{
return Path.build_filename( Environment.get_system_config_dirs()[0], "fsodeviced" );
}
public const string LAST_PLAYED = "last_played";
public const string PLAYLIST_MODE = "mode";
public const string LAST_PLAYLIST = "last_playlist";
public const string MUSIC_PLAYER_GROUP = "MusicPlayer";
public const string PLAYLIST_NAME = "name";
public const string PLAYLIST_PATH = "playlist";
public const string PLAYLIST_PREFIX ="playlist.";
//Timout for quering the current position in milliseconds
public const int poll_timeout = 1000;
//precision of the progress. should be power 0f 10 in nanoseconds
public const int precision = 1;
}
|