1 /******************************* -*- C++ -*- ******************************* 2 * * 3 * file : fusepod_constants.h * 4 * date started : 14 Feb 2006 * 5 * author : Keegan Carruthers-Smith * 6 * email : keegan.csmith@gmail.com * 7 * * 8 * This program is free software; you can redistribute it and/or modify * 9 * it under the terms of the GNU General Public License as published by * 10 * the Free Software Foundation; either version 2 of the License, or * 11 * (at your option) any later version. * 12 * * 13 ***************************************************************************/ 14 15 #ifndef _FUSEPOD_CONSTANTS_H_ 16 #define _FUSEPOD_CONSTANTS_H_ 17 18 extern "C" { 19 #include <sys/stat.h> 20 } 21 #include <string> 22 23 const mode_t MODE_DIR = (S_IFDIR | S_IRUSR | S_IRGRP | S_IROTH | S_IXUSR | S_IXGRP | S_IXOTH); 24 const mode_t MODE_FILE = (S_IFREG | S_IRUSR | S_IRGRP | S_IROTH); 25 26 const std::string filename_add = "add_songs"; 27 const std::string filename_add_files = "add_files.sh"; 28 const std::string filename_sync = "sync_ipod.sh"; 29 const std::string filename_sync_do = "sync-ipod-now"; 30 const std::string filename_stats = "statistics"; 31 32 const std::string dir_transfer = "Transfer"; 33 const std::string dir_transfer_ipod = ".fusepod_temp"; 34 35 const std::string dir_playlists = "Playlists"; 36 const std::string playlist_track_format = "%a - %t.%e"; 37 38 const std::string default_config_file = 39 "/All/%a - %t.%e\n" 40 "/Artists/%a/%A/%T - %t.%e\n" 41 "/Albums/%A/%T - %a - %t.%e\n" 42 "/Genre/%g/%a/%A/%T - %t.%e\n"; 43 44 #define ITUNESDB_PATH "/iPod_Control/iTunes/iTunesDB" 45 46 #endif 47