You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kaffeine/kaffeine/src/player-parts/xine-part
Timothy Pearson e7327f33f2
Rename most device icons to comply with XDG standards
9 years ago
..
Makefile.am Additional k => tde renaming and fixes 11 years ago
README Additional k => tde renaming and fixes 11 years ago
deinterlacequality.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
deinterlacequality.h Fix nominal "tqt" typos and fix slow DVB start. 12 years ago
equalizer.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
equalizer.h Rename a number of libraries and executables to avoid conflicts with KDE4 12 years ago
filterdialog.cpp Fix FTBFS due to accidental double quote duplication 10 years ago
filterdialog.h Remove spurious TQ_OBJECT instances 12 years ago
kxinewidget.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
kxinewidget.h Remove spurious TQ_OBJECT instances 12 years ago
positionslider.cpp Fix typos, branding, and inadvertent tqt changes. 12 years ago
positionslider.h Remove spurious TQ_OBJECT instances 12 years ago
postfilter.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
postfilter.h Remove spurious TQ_OBJECT instances 12 years ago
screenshotpreview.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
screenshotpreview.h Remove spurious TQ_OBJECT instances 12 years ago
videosettings.cpp Rename additional header files to avoid conflicts with KDE4 11 years ago
videosettings.h Remove spurious TQ_OBJECT instances 12 years ago
xine_part.cpp Fix accidental rename of TDEAction action names in xine_part 10 years ago
xine_part.desktop Fix ServiceTypes, ExcludeServiceTypes, and DocPath desktop file entries to match XDG specifications 10 years ago
xine_part.h Rename a number of classes to enhance compatibility with KDE4 12 years ago
xine_part.rc Added old abandoned KDE3 version of Kaffeine 15 years ago
xine_part_iface.h TQt4 port Kaffeine 13 years ago
xineconfig.cpp Rename most device icons to comply with XDG standards 9 years ago
xineconfig.h Remove spurious TQ_OBJECT instances 12 years ago

README

********************
*   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 <tdemainwindow.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() : TDEMainWindow(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_TDEPARTS) -lxinepart


*******************

Thats it. If you need to implement your own UI, check kxinewidget.h