strawberry-audio-player-win.../src/engine/engine_fwd.h

43 lines
854 B
C
Raw Normal View History

2018-02-27 18:06:05 +01:00
#ifndef ENGINE_FWD_H
#define ENGINE_FWD_H
2019-09-15 20:27:32 +02:00
#include <QtGlobal>
2018-02-27 18:06:05 +01:00
/// Used by eg engineobserver.h, and thus we reduce header dependencies on enginebase.h
namespace Engine {
struct SimpleMetaBundle;
class Base;
/**
* You should return:
* Playing when playing,
* Paused when paused
* Idle when you still have a URL loaded (ie you have not been told to stop())
* Empty when you have been told to stop(),
* Error when an error occurred and you stopped yourself
*
* It is vital to be Idle just after the track has ended!
*/
enum State { Empty, Idle, Playing, Paused, Error };
enum TrackChangeType {
// One of:
First = 0x01,
Manual = 0x02,
Auto = 0x04,
Intro = 0x08,
// Any of:
SameAlbum = 0x10,
};
2019-09-15 20:27:32 +02:00
Q_DECLARE_FLAGS(TrackChangeFlags, TrackChangeType)
2018-02-27 18:06:05 +01:00
2021-07-11 09:49:38 +02:00
} // namespace Engine
2018-02-27 18:06:05 +01:00
typedef Engine::Base EngineBase;
#endif // ENGINE_FWD_H