#ifndef UTILITY_H #define UTILITY_H #include "mediakeysobserver.h" #include <QtDeclarative> class Utility : public QObject { Q_OBJECT Q_ENUMS(MediaKeys) public: Utility(); enum MediaKeys { EVolIncKey, EVolDecKey, EPlayPauseKey, EStopKey, EBackwardKey, EForwardKey, EFastForwardKey, EFastRewindKey }; private slots: void handleMediaKeyEvent(MediaKeysObserver::MediaKeys key); signals: void mediaKeyPressed(int key); }; #endif