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,
|
|
|
|
GetAudioDevices = 3,
|
|
|
|
AddVolume = 4,
|
|
|
|
SetVolume = 5,
|
|
|
|
AddSpeed = 6,
|
|
|
|
SubtractSpeed = 7,
|
|
|
|
ChangeSpeed = 8,
|
|
|
|
SetSpeed = 9,
|
|
|
|
ToggleStats = 10,
|
|
|
|
NextAudioTrack = 11,
|
|
|
|
NextVideoTrack = 12,
|
|
|
|
NextSubtitleTrack = 13,
|
|
|
|
PreviousPlaylistItem = 14,
|
|
|
|
NextPlaylistItem = 15,
|
|
|
|
LoadFile = 16,
|
|
|
|
AppendFile = 17,
|
|
|
|
Seek = 18,
|
|
|
|
SeekAbsolute = 19,
|
|
|
|
GetTracks = 20,
|
|
|
|
ForwardFrame = 21,
|
|
|
|
BackwardFrame = 22,
|
2018-11-22 20:59:01 +00:00
|
|
|
SetTrack = 23,
|
|
|
|
GetPlaylist = 24,
|
|
|
|
SetPlaylistPos = 25
|
2018-11-17 19:33:32 +00:00
|
|
|
};
|
|
|
|
Q_ENUM_NS(Commands)
|
2018-11-18 19:23:31 +00:00
|
|
|
enum class Backends : int
|
|
|
|
{
|
|
|
|
MpvBackend = 0,
|
|
|
|
DirectMpvBackend = 1
|
|
|
|
};
|
|
|
|
Q_ENUM_NS(Backends)
|
2018-11-17 15:45:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|