forked from Paremo/foo_bbookmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookmark_preferences.h
More file actions
42 lines (33 loc) · 1.54 KB
/
bookmark_preferences.h
File metadata and controls
42 lines (33 loc) · 1.54 KB
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
#pragma once
extern cfg_string cfg_desc_format;
extern cfg_string cfg_date_format;
extern cfg_bool cfg_display_ms;
extern cfg_string cfg_autosave_newtrack_playlists;
extern cfg_bool cfg_autosave_newtrack;
extern cfg_bool cfg_autosave_focus_newtrack;
extern cfg_bool cfg_autosave_radio_newtrack;
extern cfg_bool cfg_autosave_radio_comment;
extern cfg_bool cfg_autosave_filter_newtrack;
extern cfg_bool cfg_autosave_on_quit;
extern cfg_bool cfg_verbose;
extern cfg_bool cfg_monitor;
extern cfg_int cfg_queue_flag;
extern cfg_int cfg_status_flag;
extern cfg_bool cfg_edit_mode;
extern cfg_int cfg_misc_flag;
#define QUEUE_RESTORE_TO_FLAG 1 << 0
#define QUEUE_FLUSH_FLAG 1 << 1
#define QUEUE_CUST2_FLAG 1 << 2
//cfg_status_flag
#define STATUS_PAUSED_FLAG 1 << 0
#define STATUS_CUST_FLAG 1 << 1
#define STATUS_CUST2_FLAG 1 << 2
//cfg_misc_flag
#define MISC_FLAG_EDIT_ENTER_KEY_ADV 1 << 0
#define MISC_CUST2_FLAG 1 << 1
#define MISC_CUST3_FLAG 1 << 2
inline bool is_cfg_Bookmarking() { return !(cfg_status_flag.get_value() & STATUS_PAUSED_FLAG); }
inline bool is_cfg_Queuing() { return cfg_queue_flag.get_value() & QUEUE_RESTORE_TO_FLAG; }
inline bool is_cfg_Flush_Queue() { return cfg_queue_flag.get_value() & QUEUE_FLUSH_FLAG; }
inline bool is_cfg_Enter_Key_Adv() { return cfg_misc_flag.get_value() & MISC_FLAG_EDIT_ENTER_KEY_ADV; }
extern GUID g_get_prefs_guid();