playlistcb.h 670 B

1234567891011121314151617181920212223242526
  1. #ifndef NULLSOFT_AGAVE_PLAYLISTCB_H
  2. #define NULLSOFT_AGAVE_PLAYLISTCB_H
  3. #include "../playlist/api_playlists.h"
  4. #include "api/syscb/callbacks/syscbi.h"
  5. #define PLAYLISTCALLBACKI_PARENT SysCallbackI
  6. class PlaylistCallbackI : public PLAYLISTCALLBACKI_PARENT
  7. {
  8. public:
  9. virtual FOURCC syscb_getEventType() { return api_playlists::SYSCALLBACK; }
  10. protected:
  11. // override these
  12. virtual int playlistcb_added( size_t index ) { return 0; }
  13. virtual int playlistcb_saved( size_t index ) { return 0; }
  14. private:
  15. virtual int syscb_notify( int msg, intptr_t param1 = 0, intptr_t param2 = 0 );
  16. };
  17. #endif