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/libmpeg3/libmpeg3pluginimpl.cpp | |
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/libmpeg3/libmpeg3pluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.cpp b/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.cpp index e7216af..bf3f372 100644 --- a/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.cpp +++ b/core/multimedia/opieplayer/libmpeg3/libmpeg3pluginimpl.cpp | |||
@@ -9,62 +9,62 @@ | |||
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "libmpeg3plugin.h" | 20 | #include "libmpeg3plugin.h" |
21 | #include "libmpeg3pluginimpl.h" | 21 | #include "libmpeg3pluginimpl.h" |
22 | 22 | ||
23 | 23 | ||
24 | LibMpeg3PluginImpl::LibMpeg3PluginImpl() | 24 | LibMpeg3PluginImpl::LibMpeg3PluginImpl() |
25 | : libmpeg3plugin(0), ref(0) | 25 | : libmpeg3plugin(0), ref(0) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | 29 | ||
30 | LibMpeg3PluginImpl::~LibMpeg3PluginImpl() | 30 | LibMpeg3PluginImpl::~LibMpeg3PluginImpl() |
31 | { | 31 | { |
32 | if ( libmpeg3plugin ) | 32 | if ( libmpeg3plugin ) |
33 | delete libmpeg3plugin; | 33 | delete libmpeg3plugin; |
34 | } | 34 | } |
35 | 35 | ||
36 | 36 | ||
37 | MediaPlayerDecoder *LibMpeg3PluginImpl::decoder() | 37 | MediaPlayerDecoder *LibMpeg3PluginImpl::decoder() |
38 | { | 38 | { |
39 | if ( !libmpeg3plugin ) | 39 | if ( !libmpeg3plugin ) |
40 | libmpeg3plugin = new LibMpeg3Plugin; | 40 | libmpeg3plugin = new LibMpeg3Plugin; |
41 | return libmpeg3plugin; | 41 | return libmpeg3plugin; |
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ||
45 | MediaPlayerEncoder *LibMpeg3PluginImpl::encoder() | 45 | MediaPlayerEncoder *LibMpeg3PluginImpl::encoder() |
46 | { | 46 | { |
47 | return NULL; | 47 | return NULL; |
48 | } | 48 | } |
49 | 49 | ||
50 | 50 | ||
51 | #ifndef QT_NO_COMPONENT | 51 | #ifndef QT_NO_COMPONENT |
52 | 52 | ||
53 | 53 | ||
54 | QRESULT LibMpeg3PluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) | 54 | QRESULT LibMpeg3PluginImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) |
55 | { | 55 | { |
56 | *iface = 0; | 56 | *iface = 0; |
57 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MediaPlayerPlugin ) ) | 57 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_MediaPlayerPlugin ) ) |
58 | *iface = this, (*iface)->addRef(); | 58 | *iface = this, (*iface)->addRef(); |
59 | return QS_OK; | 59 | return QS_OK; |
60 | } | 60 | } |
61 | 61 | ||
62 | 62 | ||
63 | Q_EXPORT_INTERFACE() | 63 | Q_EXPORT_INTERFACE() |
64 | { | 64 | { |
65 | Q_CREATE_INSTANCE( LibMpeg3PluginImpl ) | 65 | Q_CREATE_INSTANCE( LibMpeg3PluginImpl ) |
66 | } | 66 | } |
67 | 67 | ||
68 | 68 | ||
69 | #endif | 69 | #endif |
70 | 70 | ||