coreactions.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __COREACTIONS_H
  2. #define __COREACTIONS_H
  3. #include <api/service/svcs/svc_action.h>
  4. class CoreActions : public svc_actionI {
  5. public :
  6. CoreActions();
  7. virtual ~CoreActions();
  8. static const char *getServiceName() { return "Core Actions"; }
  9. virtual int onActionId(int pvtid, const wchar_t *action, const wchar_t *param=NULL, int p1=0, int p2=0, void *data=NULL, int datalen=0, ifc_window *source=NULL);
  10. virtual const wchar_t *getHelp(int action);
  11. private:
  12. enum {
  13. ACTION_PREV = 0,
  14. ACTION_PLAY,
  15. ACTION_PAUSE,
  16. ACTION_STOP,
  17. ACTION_NEXT,
  18. ACTION_EJECT,
  19. ACTION_EJECTURL,
  20. ACTION_EJECTDIR,
  21. ACTION_SEEK,
  22. ACTION_VOLUME,
  23. ACTION_EQ_TOGGLE,
  24. ACTION_EQ_PREAMP,
  25. ACTION_EQ_BAND,
  26. ACTION_VOLUME_UP,
  27. ACTION_VOLUME_DOWN,
  28. ACTION_REWIND_5S,
  29. ACTION_FFWD_5S,
  30. ACTION_PLAY_CD,
  31. ACTION_EQ_AUTO = ACTION_PLAY_CD+16,
  32. ACTION_EQ_RESET,
  33. ACTION_PAN,
  34. ACTION_MUTE,
  35. ACTION_TOGGLE_REPEAT,
  36. ACTION_TOGGLE_SHUFFLE,
  37. ACTION_TOGGLE_CROSSFADER,
  38. ACTION_PREFS,
  39. };
  40. };
  41. #endif