Options.h 829 B

12345678910111213141516171819202122
  1. //---------------------------------------------------------------------------
  2. #ifndef OptionsH
  3. #define OptionsH
  4. //---------------------------------------------------------------------------
  5. #ifndef MPEXT_NO_SPEED_LIM_RULES
  6. #include <SpeedLimit.h>
  7. #endif
  8. //---------------------------------------------------------------------------
  9. class COptions
  10. {
  11. public:
  12. #ifndef MPEXT_NO_SPEED_LIM_RULES
  13. static CCriticalSection m_Sync; // Moved to public section - needed for locking list
  14. static SPEEDLIMITSLIST m_DownloadSpeedLimits;
  15. static SPEEDLIMITSLIST m_UploadSpeedLimits;
  16. #endif
  17. static CString GetInstanceOption(CApiLog * Instance, int OptionID);
  18. static int GetInstanceOptionVal(CApiLog * Instance, int OptionID);
  19. };
  20. //---------------------------------------------------------------------------
  21. #endif