volumekeys.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * Copyright (c) 2012 Nokia Corporation.
  3. * All rights reserved.
  4. *
  5. * Part of the VideoPlayer.
  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. /*!
  18. \class VolumeKeys
  19. \brief Symbian specific utility for reacting to hardware volume buttons.
  20. */
  21. class VolumeKeys : public QObject,
  22. public MRemConCoreApiTargetObserver
  23. {
  24. Q_OBJECT
  25. public:
  26. explicit VolumeKeys(QObject *parent);
  27. ~VolumeKeys();
  28. signals:
  29. void volumeKeyUp();
  30. void volumeKeyDown();
  31. private: // from MRemConCoreApiTargetObserver
  32. void MrccatoCommand(TRemConCoreApiOperationId operationId,
  33. TRemConCoreApiButtonAction buttonAct);
  34. private:
  35. CRemConInterfaceSelector *m_interfaceSelector; // Owned
  36. CRemConCoreApiTarget *m_coreTarget; // Not owned
  37. };
  38. #endif // VOLUMEKEYS_H