SoundBand/Sync/config.h

41 lines
1.3 KiB
C
Raw Normal View History

2017-11-09 23:09:59 +03:00
#ifndef CONFIG_H
#define CONFIG_H
2018-01-09 17:59:15 +03:00
// general otions
2018-03-06 16:12:25 +03:00
#define CURRENT_PLAYLIST_KEY "currentPlayList"
2018-03-25 23:01:44 +03:00
#define MAIN_FOLDER_KEY "songsfolder"
2018-09-30 17:38:38 +03:00
#define MAIN_FOLDER QDir::homePath() + "/soundBand"
2018-03-25 23:01:44 +03:00
2018-01-09 17:59:15 +03:00
2017-11-09 23:09:59 +03:00
// LIB VERSION
#define MAJOR_VERSION 0
2017-11-26 19:19:43 +03:00
#define MINOR_VERSION 1
2018-01-09 17:59:15 +03:00
#define REVISION_VERSION 1
2017-11-09 23:09:59 +03:00
// sqlite config
#define DATABASE_NAME "songdata.dat"
2018-02-10 17:53:15 +03:00
#define ALL_SONGS_LIST "all songs"
2017-11-09 23:09:59 +03:00
// network config
#define DEFAULT_ADRESS "DEFAULT_ADRESS"
2018-01-31 17:11:05 +03:00
#define DEFAULT_NRTWORK 0 // the network number from which the address will be taken.
#define LOCAL_HOST "127.0.0.1"
2017-11-29 21:36:29 +03:00
#define DEFAULT_PORT 1994
2018-01-31 17:11:05 +03:00
#define RESYNC_TIME 1000 // 1 sec on millisec
2018-01-14 15:29:42 +03:00
#define MAX_RESYNC_COUNT 3
2018-01-31 17:11:05 +03:00
#define SYNC_TIME 5 * 1000 // 5 sec on millisec
2018-08-16 22:43:55 +03:00
#define SYNC_COUNT 20
2018-01-31 17:11:05 +03:00
#define DEEP_SCANER_INTERVAL 1000 // 1 sec
2017-11-09 23:09:59 +03:00
2017-12-09 21:55:37 +03:00
// sync
2018-01-31 17:11:05 +03:00
#define MIN_DIFFERENCE 10 // millisec
2017-12-09 21:55:37 +03:00
2018-01-31 17:11:05 +03:00
//debug
#ifndef QT_DEBUG
#define LOGER
#endif
#define LOGER // define this macros if want use logs
2018-09-30 17:38:38 +03:00
#define LOG_FILE MAIN_FOLDER + "/logs.log"
2017-11-09 23:09:59 +03:00
#endif // CONFIG_H