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
|
/**
* Gjay - Gtk+ DJ music playlist creator
* Copyright (C) 2002 Chuck Groom
* Copyright (C) 2010 Craig Small
*
* 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, 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __PREFS_H__
#define __PREFS_H__
typedef enum {
PREF_DAEMON_QUIT,
PREF_DAEMON_DETACH,
PREF_DAEMON_ASK
} pref_daemon_action;
/* Music Player types */
#define PLAYER_NONE 0
#define PLAYER_AUDACIOUS 1
#define PLAYER_MPDCLIENT 2
#define PLAYER_LAST 3
typedef struct {
/* Root directory (latin1) */
gchar * song_root_dir;
gboolean extension_filter; /* Do we only get *.{mp3,ogg,wav} files */
/* What to do with daemon on quit */
gint daemon_action;
gboolean detach; /* Override set in UI session; not read
from prefs file */
/* Enable tooltips? */
gboolean hide_tips;
/* Use and show song rating? */
gboolean use_ratings;
/* Below is for playlist generation */
gboolean use_selected_songs;
gboolean use_selected_dir;
gboolean start_selected;
gboolean start_color;
gboolean wander;
gboolean rating_cutoff;
int max_working_set;
/* Playlist len, in minutes */
guint time;
float variance;
float hue;
float brightness;
float saturation;
float bpm;
float freq;
float rating;
float path_weight;
HSV color;
/* Store how a color was loaded */
gboolean use_hsv;
/* which player will we use */
gushort music_player;
gchar *music_player_name;
} GjayPrefs;
GjayPrefs *load_prefs ( void );
void save_prefs ( void );
#endif /* __PREFS_H__ */
|