corecb.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef _CORECB_H
  2. #define _CORECB_H
  3. #include <bfc/dispatch.h>
  4. // don't derive from this
  5. class NOVTABLE CoreCallback : public Dispatchable
  6. {
  7. protected:
  8. CoreCallback() {}
  9. public:
  10. int ccb_notify(int msg, intptr_t param1=0, intptr_t param2=0) {
  11. return _call(CCB_NOTIFY, 0, msg, param1, param2);
  12. }
  13. // class Dispatchable codes
  14. enum {
  15. CCB_NOTIFY = 100,
  16. };
  17. // various ccb_notify notifications. these are *not* the Dispatchable codes
  18. enum {
  19. REGISTER = 100,
  20. DEREGISTER = 200,
  21. NEXTFILE = 300,
  22. STARTED = 500,
  23. STOPPED = 600,
  24. PAUSED = 700,
  25. UNPAUSED = 800,
  26. SEEKED = 900,
  27. VOLCHANGE = 2000,
  28. EQSTATUSCHANGE = 2100,
  29. EQPREAMPCHANGE = 2200,
  30. EQBANDCHANGE = 2300,
  31. EQFREQCHANGE = 2310,
  32. EQAUTOCHANGE = 2400,
  33. PANCHANGE = 2500,
  34. STATUSMSG = 3000,
  35. WARNINGMSG = 3100,
  36. ERRORMSG = 3200,
  37. ERROROCCURED = 3300,
  38. TITLECHANGE = 4000,
  39. TITLE2CHANGE = 4100,
  40. INFOCHANGE = 4200,
  41. SAMPLERATECHANGE = 4210,
  42. BITRATECHANGE = 4220,
  43. CHANNELSCHANGE = 4230,
  44. URLCHANGE = 4300,
  45. LENGTHCHANGE = 4400,
  46. NEEDNEXTFILE = 5100,
  47. SETNEXTFILE = 5200,
  48. ABORTCURRENTSONG= 6000,
  49. ENDOFDECODE = 7000,
  50. ONFILECOMPLETE = 8000,
  51. CONVERTERSCHAINREBUILT = 9000,
  52. MEDIAFAMILYCHANGE = 10000,
  53. };
  54. };
  55. #endif