diff options
author | mio <stigma@disroot.org> | 2025-04-21 13:38:39 +1000 |
---|---|---|
committer | mio <stigma@disroot.org> | 2025-04-27 11:35:46 +1000 |
commit | acabf89e015ed0931b5534af54a27c2a575d0bc2 (patch) | |
tree | f93a2b62606873ec5873db633557a0d5e2381b9e /src/app/theStream.h | |
parent | 37df0c3b3c2ff66308d5e345ac8ead8de6304612 (diff) | |
download | codeine-other/media-info-window.tar.gz codeine-other/media-info-window.zip |
Rework media information dialogother/media-info-window
Currently, the info dialog (shortcut I) can exceed the screen bounds as
it requests all information and displays it in a single vertical list.
This commit changes it so less information is requested and cleans up
the dialog.
Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'src/app/theStream.h')
-rw-r--r-- | src/app/theStream.h | 27 |
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() ); }
|