AppConstants.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #ifndef _APPCONSTANTS_H_
  2. #define _APPCONSTANTS_H_
  3. #include "JuceHeader.h"
  4. /** the APP class defines configuration and runtime constants
  5. pertaining to the core AvCaster application and business logic */
  6. class APP
  7. {
  8. public:
  9. // names and IDs
  10. static const String APP_NAME ;
  11. static const String APP_CMD ;
  12. static const String JACK_CLIENT_NAME ;
  13. static const String IRC_THREAD_NAME ;
  14. static const String DIGITS ;
  15. static const String LETTERS ;
  16. static const String ALPHANUMERIC ;
  17. static const String VALID_ID_CHARS ;
  18. static const String VALID_URI_CHARS ;
  19. static const String VALID_NICK_CHARS ;
  20. static const String FILTER_CHARS ;
  21. static const String REPLACE_CHARS ;
  22. // timers
  23. static const int N_TIMERS = 3 ; // ASSERT: n timers defined below
  24. static const int TIMER_HI_ID = 1 ; static const int TIMER_HI_IVL = 125 ;
  25. static const int TIMER_MED_ID = 2 ; static const int TIMER_MED_IVL = 500 ;
  26. static const int TIMER_LO_ID = 3 ; static const int TIMER_LO_IVL = 500 ;
  27. static const Array<int> TIMER_IDS ;
  28. static const Array<int> TIMER_IVLS ;
  29. // cli args
  30. static const String CLI_HELP_TOKEN ;
  31. static const String CLI_PRESETS_TOKEN ;
  32. static const String CLI_VERSION_TOKEN ;
  33. static const String CLI_PRESET_TOKEN ;
  34. static const String CLI_DISABLE_MEDIA_TOKEN ;
  35. static const String CLI_SCREEN_ONLY_TOKEN ;
  36. static const String CLI_CAMERA_ONLY_TOKEN ;
  37. static const String CLI_TEXT_ONLY_TOKEN ;
  38. static const String CLI_IMAGE_ONLY_TOKEN ;
  39. static const String CLI_DISABLE_PREVIEW_TOKEN ;
  40. static const String CLI_DISABLE_AUDIO_TOKEN ;
  41. static const String CLI_DISABLE_CHAT_TOKEN ;
  42. static const String CLI_VERSION_MSG ;
  43. static const String CLI_USAGE_MSG ;
  44. // filesystem
  45. static String iconsPath() ;
  46. static String appsPath() ;
  47. static String iconFilename() ;
  48. static String desktopFilename() ;
  49. static File camerasDevDir() ;
  50. static File homeDir() ;
  51. static File appdataDir() ;
  52. static File picturesDir() ;
  53. static File videosDir() ;
  54. static File binFile() ;
  55. static File logoFile() ;
  56. static File iconFile() ;
  57. static File desktopFile() ;
  58. static String desktopText() ;
  59. // filesystem
  60. static const String FLV_FILE_EXT ;
  61. static const String PNG_FILE_EXT ;
  62. // static const String JPG_FILE_EXT :
  63. // static const String JPEG_FILE_EXT ;
  64. // static const String GIF_FILE_EXT ;
  65. } ;
  66. #endif // _APPCONSTANTS_H_