author | bipolar <bipolar> | 2002-03-03 17:13:17 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-03 17:13:17 (UTC) |
commit | a99347380a9006ec81a9dba2340d6aaab690a86e (patch) (unidiff) | |
tree | 73fdc2eff476fba2113172ed881dd64a4031def6 /core/multimedia/opieplayer/mediaplayerplugininterface.h | |
parent | 0e245156b28b70be5cd98a58a9256fe5e2739562 (diff) | |
download | opie-a99347380a9006ec81a9dba2340d6aaab690a86e.zip opie-a99347380a9006ec81a9dba2340d6aaab690a86e.tar.gz opie-a99347380a9006ec81a9dba2340d6aaab690a86e.tar.bz2 |
commited by ljp (llornkcor) reverted to qpe's interface for compatibility. Added playlist features:
save, remove, and have different ones. Uncommented code for background image and added opielogo.
Diffstat (limited to 'core/multimedia/opieplayer/mediaplayerplugininterface.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/mediaplayerplugininterface.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/mediaplayerplugininterface.h b/core/multimedia/opieplayer/mediaplayerplugininterface.h index 339b2e4..97e4066 100644 --- a/core/multimedia/opieplayer/mediaplayerplugininterface.h +++ b/core/multimedia/opieplayer/mediaplayerplugininterface.h | |||
@@ -23,8 +23,12 @@ | |||
23 | #include <qpe/qcom.h> | 23 | #include <qpe/qcom.h> |
24 | 24 | ||
25 | #ifndef QT_NO_COMPONENT | 25 | #ifndef QT_NO_COMPONENT |
26 | // {c0093632-b44c-4cf7-a279-d82fe8a8890c} | 26 | # ifndef IID_OpiePlayerPlugin |
27 | // {F56F6CE0-1333-41FD-9B46-C0AF44D0B006} | ||
28 | # define IID_OpiePlayerPlugin QUuid( 0xF56F6CE0, 0x1333, 0x41FD, 0x9B, 0x46, 0xC0, 0xAF, 0x44, 0xD0, 0xB0, 0x06); | ||
29 | # endif | ||
27 | # ifndef IID_MediaPlayerPlugin | 30 | # ifndef IID_MediaPlayerPlugin |
31 | // {c0093632-b44c-4cf7-a279-d82fe8a8890c} | ||
28 | # define IID_MediaPlayerPlugin QUuid( 0xc0093632, 0xb44c, 0x4cf7, 0xa2, 0x79, 0xd8, 0x2f, 0xe8, 0xa8, 0x89, 0x0c ) | 32 | # define IID_MediaPlayerPlugin QUuid( 0xc0093632, 0xb44c, 0x4cf7, 0xa2, 0x79, 0xd8, 0x2f, 0xe8, 0xa8, 0x89, 0x0c ) |
29 | # endif | 33 | # endif |
30 | #endif | 34 | #endif |
@@ -93,7 +97,9 @@ public: | |||
93 | 97 | ||
94 | // File Properies | 98 | // File Properies |
95 | virtual long getPlayTime() { return -1; } | 99 | virtual long getPlayTime() { return -1; } |
100 | #ifdef IID_OpiePlayerPlugin | ||
96 | virtual int audioBitsPerSample( int stream ) = 0; | 101 | virtual int audioBitsPerSample( int stream ) = 0; |
102 | #endif | ||
97 | }; | 103 | }; |
98 | 104 | ||
99 | 105 | ||
@@ -106,6 +112,13 @@ struct MediaPlayerPluginInterface : public QUnknownInterface | |||
106 | virtual MediaPlayerEncoder *encoder() = 0; | 112 | virtual MediaPlayerEncoder *encoder() = 0; |
107 | }; | 113 | }; |
108 | 114 | ||
115 | #ifdef IID_OpiePlayerPlugin | ||
116 | struct OpiePlayerPluginInterface : public QUnknownInterface | ||
117 | { | ||
118 | virtual MediaPlayerDecoder *decoder() = 0; | ||
119 | virtual MediaPlayerEncoder *encoder() = 0; | ||
120 | }; | ||
121 | #endif | ||
109 | 122 | ||
110 | #endif | 123 | #endif |
111 | 124 | ||