summaryrefslogtreecommitdiffstats
path: root/src/app/theStream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/theStream.h')
-rw-r--r--src/app/theStream.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/app/theStream.h b/src/app/theStream.h
index 7679a10..f616862 100644
--- a/src/app/theStream.h
+++ b/src/app/theStream.h
@@ -20,11 +20,37 @@
namespace Codeine
{
+ enum class MetaData
+ {
+ Title = 0,
+ Comment,
+ Artist,
+ Genre,
+ Album,
+ Year,
+ VideoCodec,
+ AudioCodec,
+ };
+
+ enum class StreamInfo
+ {
+ VideoWidth = 0,
+ VideoHeight,
+ VideoBitRate,
+ AudioBits,
+ AudioSampleRate,
+ AudioBitRate
+ };
+
class TheStream
{
CODEINE_NO_EXPORT( TheStream )
public:
+
+ static TQMap<MetaData, TQString> metaData();
+ static TQMap<StreamInfo, TQString> info();
+
static const KURL &url();
static bool canSeek();
@@ -38,7 +64,6 @@ namespace Codeine
static int audioChannel();
static TQString prettyTitle();
- static TQString information();
static inline bool hasProfile()
{ return TDEGlobal::config()->hasGroup( url().prettyURL() ); }