home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bmovixdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  4.0 KB  |  126 lines

  1. /* 
  2.  *
  3.  * $Id: k3bmovixdoc.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16.  
  17. #ifndef _K3B_MOVIX_DOC_H_
  18. #define _K3B_MOVIX_DOC_H_
  19.  
  20.  
  21. #include <k3bdatadoc.h>
  22.  
  23. #include <qptrlist.h>
  24. #include "k3b_export.h"
  25. //class K3bView;
  26. class KURL;
  27. class QDomElement;
  28. class K3bFileItem;
  29. class K3bMovixFileItem;
  30. class K3bDataItem;
  31. class KConfig;
  32.  
  33.  
  34. class LIBK3B_EXPORT K3bMovixDoc : public K3bDataDoc
  35. {
  36.   Q_OBJECT
  37.  
  38.  public:
  39.   K3bMovixDoc( QObject* parent = 0 );
  40.   virtual ~K3bMovixDoc();
  41.  
  42.   virtual int type() const { return MOVIX; }
  43.  
  44.   virtual K3bBurnJob* newBurnJob( K3bJobHandler* hdl, QObject* parent );
  45.  
  46.   bool newDocument();
  47.  
  48.   const QPtrList<K3bMovixFileItem>& movixFileItems() const { return m_movixFiles; }
  49.  
  50.   int indexOf( K3bMovixFileItem* );
  51.  
  52.  
  53.   bool shutdown() const { return m_shutdown; }
  54.   bool reboot() const { return m_reboot; }
  55.   bool ejectDisk() const { return m_ejectDisk; }
  56.   bool randomPlay() const { return m_randomPlay; }
  57.   const QString& subtitleFontset() const { return m_subtitleFontset; }
  58.   const QString& bootMessageLanguage() const { return m_bootMessageLanguage; }
  59.   const QString& audioBackground() const { return m_audioBackground; }
  60.   const QString& keyboardLayout() const { return m_keyboardLayout; }
  61.   const QStringList& codecs() const { return m_codecs; }
  62.   const QString& defaultBootLabel() const { return m_defaultBootLabel; }
  63.   const QString& additionalMPlayerOptions() const { return m_additionalMPlayerOptions; }
  64.   const QString& unwantedMPlayerOptions() const { return m_unwantedMPlayerOptions; }
  65.   int loopPlaylist() const { return m_loopPlaylist; }
  66.   bool noDma() const { return m_noDma; }
  67.  
  68.   void setShutdown( bool v ) { m_shutdown = v; }
  69.   void setReboot( bool v ) { m_reboot = v; }
  70.   void setEjectDisk( bool v ) { m_ejectDisk = v; }
  71.   void setRandomPlay( bool v ) { m_randomPlay = v; }
  72.   void setSubtitleFontset( const QString& v ) { m_subtitleFontset = v; }
  73.   void setBootMessageLanguage( const QString& v ) { m_bootMessageLanguage = v; }
  74.   void setAudioBackground( const QString& b ) { m_audioBackground = b; }
  75.   void setKeyboardLayout( const QString& l ) { m_keyboardLayout = l; }
  76.   void setCodecs( const QStringList& c ) { m_codecs = c; }
  77.   void setDefaultBootLabel( const QString& v ) { m_defaultBootLabel = v; }
  78.   void setAdditionalMPlayerOptions( const QString& v ) { m_additionalMPlayerOptions = v; }
  79.   void setUnwantedMPlayerOptions( const QString& v ) { m_unwantedMPlayerOptions = v; }
  80.   void setLoopPlaylist( int v ) { m_loopPlaylist = v; }
  81.   void setNoDma( bool b ) { m_noDma = b; }
  82.  
  83.  signals:
  84.   void newMovixFileItems();
  85.   void movixItemRemoved( K3bMovixFileItem* );
  86.   void subTitleItemRemoved( K3bMovixFileItem* );
  87.  
  88.  public slots:
  89.   void addUrls( const KURL::List& urls );
  90.   void addMovixFile( const KURL& url, int pos = -1 );
  91.   void moveMovixItem( K3bMovixFileItem* item, K3bMovixFileItem* itemAfter );
  92.   void addSubTitleItem( K3bMovixFileItem*, const KURL& );
  93.   void removeSubTitleItem( K3bMovixFileItem* );
  94.  
  95.  protected:
  96.   /** reimplemented from K3bDoc */
  97.   bool loadDocumentData( QDomElement* root );
  98.   /** reimplemented from K3bDoc */
  99.   bool saveDocumentData( QDomElement* );
  100.  
  101.   virtual QString typeString() const { return "movix"; }
  102.  
  103.  private slots:
  104.   void slotDataItemRemoved( K3bDataItem* );
  105.  
  106.  private:
  107.   QPtrList<K3bMovixFileItem> m_movixFiles;
  108.  
  109.   bool m_shutdown;
  110.   bool m_reboot;
  111.   bool m_ejectDisk;
  112.   bool m_randomPlay;
  113.   QString m_subtitleFontset;
  114.   QString m_bootMessageLanguage;
  115.   QString m_audioBackground;
  116.   QString m_keyboardLayout;
  117.   QStringList m_codecs;
  118.   QString m_defaultBootLabel;
  119.   QString m_additionalMPlayerOptions;
  120.   QString m_unwantedMPlayerOptions;
  121.   int m_loopPlaylist;
  122.   bool m_noDma;
  123. };
  124.  
  125. #endif
  126.