summaryrefslogtreecommitdiffstats
path: root/kaffeine/src/player-parts/xine-part/README
diff options
context:
space:
mode:
Diffstat (limited to 'kaffeine/src/player-parts/xine-part/README')
-rw-r--r--kaffeine/src/player-parts/xine-part/README81
1 files changed, 81 insertions, 0 deletions
diff --git a/kaffeine/src/player-parts/xine-part/README b/kaffeine/src/player-parts/xine-part/README
new file mode 100644
index 0000000..b97bb38
--- /dev/null
+++ b/kaffeine/src/player-parts/xine-part/README
@@ -0,0 +1,81 @@
+********************
+* XINE-PART *
+********************
+
+The xine-based default player-part of Kaffeine.
+
+
+*** IMPORTANT ***
+The following example is outdated and unlikely to work.
+*** IMPORTANT ***
+
+
+You can use this part in your Application like this:
+----------------------------------------------------
+
+*** myplayer.h: ***
+
+#include <kmainwindow.h>
+
+class KaffeinePart;
+
+class MyPlayer : public MainWindow
+{
+ public:
+ MyPlayer();
+ ~MyPlayer();
+
+ void loadURL(const QString&);
+
+ //...
+ private:
+ KaffeinePart* m_player;
+};
+
+*** myplayer.cpp: ***
+
+#include <kaffeine/xine_part.h>
+
+MyPlayer::MyPlayer() : KMainWindow(0)
+{
+ initMyActions();
+ createGUI();
+
+ //...
+
+ m_player = new XinePart(this, "my_player", this, 0, QStringList());
+ guiFactory()->addClient(m_player);
+ setCentralWidget(m_player->widget());
+
+ //..
+}
+
+void MyPlayer::loadURL(const QString& url)
+{
+ m_player->openURL(url);
+}
+
+*** Makefile.am ***
+
+bin_PROGRAMS = myplayer
+
+INCLUDES = $(all_includes)
+
+noinst_HEADERS = myplayer.h
+
+METASOURCES = AUTO
+
+myplayer_SOURCES = myplayer.cpp
+myplayer_LDFLAGS = $(KDE_RPATH) $(all_libraries)
+myplayer_LDADD = $(LIB_KPARTS) -lxinepart
+
+
+*******************
+
+Thats it. If you need to implement your own UI, check kxinewidget.h
+
+
+
+
+
+