volumekeys.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) 2012 Nokia Corporation.
  3. * All rights reserved.
  4. *
  5. * Part of the QMLVideoStreamer.
  6. * Based on volumekeys.h from Qt GameEnabler.
  7. *
  8. * For the applicable distribution terms see the license text file included in
  9. * the distribution.
  10. */
  11. #ifndef VOLUMEKEYS_H
  12. #define VOLUMEKEYS_H
  13. #include <QObject>
  14. #include <remconcoreapitargetobserver.h>
  15. #include <remconcoreapitarget.h>
  16. #include <remconinterfaceselector.h>
  17. // Symbian specific utility for reacting to hardware volume buttons.
  18. class VolumeKeys : public QObject,
  19. public MRemConCoreApiTargetObserver
  20. {
  21. Q_OBJECT
  22. public:
  23. explicit VolumeKeys(QObject *parent);
  24. ~VolumeKeys();
  25. signals:
  26. void volumeKeyUp();
  27. void volumeKeyDown();
  28. private: // from MRemConCoreApiTargetObserver
  29. void MrccatoCommand(TRemConCoreApiOperationId operationId,
  30. TRemConCoreApiButtonAction buttonAct);
  31. private:
  32. CRemConInterfaceSelector *m_interfaceSelector;
  33. CRemConCoreApiTarget *m_coreTarget;
  34. };
  35. #endif // VOLUMEKEYS_H