s60remote.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef S60REMOTE_H
  2. #define S60REMOTE_H
  3. #include <QObject>
  4. #include <remconinterfaceselector.h> // RemConInterfaceBase.lib
  5. #include <remconcoreapitargetobserver.h> // link against RemConCoreApi.lib
  6. #include <remconcoreapitarget.h> // and
  7. /** A Qt wrapper that emits signals in response to S60 media keys on Symbian^3.
  8. Based on http://wiki.forum.nokia.com/index.php/TSS000432_-_Utilising_media_keys
  9. */
  10. class S60Remote : public QObject,
  11. private MRemConCoreApiTargetObserver {
  12. Q_OBJECT
  13. public:
  14. explicit S60Remote(QObject* parent=0);
  15. ~S60Remote();
  16. signals:
  17. void volumeUp();
  18. void volumeDown();
  19. void playPause();
  20. void stop();
  21. void fastForwardPressed();
  22. void fastForwardReleased();
  23. void rewindPressed();
  24. void rewindReleased();
  25. void next();
  26. void previous();
  27. private:
  28. // From MRemConCoreApiTargetObserver
  29. void MrccatoCommand(TRemConCoreApiOperationId aOperationId,
  30. TRemConCoreApiButtonAction aButtonAct);
  31. CRemConInterfaceSelector* m_interfaceSelector;
  32. CRemConCoreApiTarget* m_coreTarget;
  33. };
  34. #endif // S60REMOTE_H