2018-11-17 15:45:21 +00:00
|
|
|
#ifndef ENUMS_HPP
|
|
|
|
#define ENUMS_HPP
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
namespace Enums {
|
|
|
|
Q_NAMESPACE
|
|
|
|
enum class PlayStatus : int
|
|
|
|
{
|
|
|
|
Playing = 0,
|
|
|
|
Paused = 1
|
|
|
|
};
|
|
|
|
Q_ENUM_NS(PlayStatus)
|
|
|
|
enum class VolumeStatus : int
|
|
|
|
{
|
|
|
|
Muted = 0,
|
|
|
|
Low = 1,
|
|
|
|
Normal = 2
|
|
|
|
};
|
|
|
|
Q_ENUM_NS(VolumeStatus)
|
2018-11-17 19:33:32 +00:00
|
|
|
enum class Commands : int
|
|
|
|
{
|
|
|
|
TogglePlayPause = 0,
|
|
|
|
ToggleMute = 1,
|
|
|
|
SetAudioDevice = 2,
|
2018-11-24 14:35:34 +00:00
|
|
|
AddVolume = 3,
|
|
|
|
SetVolume = 4,
|
|
|
|
AddSpeed = 5,
|
|
|
|
SubtractSpeed = 6,
|
|
|
|
ChangeSpeed = 7,
|
|
|
|
SetSpeed = 8,
|
|
|
|
ToggleStats = 9,
|
|
|
|
NextAudioTrack = 10,
|
|
|
|
NextVideoTrack = 11,
|
|
|
|
NextSubtitleTrack = 12,
|
|
|
|
PreviousPlaylistItem = 13,
|
|
|
|
NextPlaylistItem = 14,
|
|
|
|
LoadFile = 15,
|
|
|
|
AppendFile = 16,
|
|
|
|
Seek = 17,
|
|
|
|
SeekAbsolute = 18,
|
|
|
|
ForwardFrame = 19,
|
|
|
|
BackwardFrame = 20,
|
|
|
|
SetTrack = 21,
|
|
|
|
SetPlaylistPos = 22,
|
2018-12-12 08:28:53 +00:00
|
|
|
ForcePause = 23,
|
2018-11-17 19:33:32 +00:00
|
|
|
};
|
|
|
|
Q_ENUM_NS(Commands)
|
2018-12-18 16:22:17 +00:00
|
|
|
|
2018-11-18 19:23:31 +00:00
|
|
|
enum class Backends : int
|
|
|
|
{
|
2018-12-20 14:37:29 +00:00
|
|
|
MPVBackend = 0,
|
|
|
|
DirectMPVBackend = 1
|
2018-11-18 19:23:31 +00:00
|
|
|
};
|
|
|
|
Q_ENUM_NS(Backends)
|
2018-12-18 16:22:17 +00:00
|
|
|
|
2018-11-17 15:45:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|