]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/vlm.hpp
Qt Imageset update.
[vlc] / modules / gui / qt4 / dialogs / vlm.hpp
index c763cae820e8586f40564bb7155aff570f94c70b..cf0cb148fcae14d2d331789c665fa2b8eade81ff 100644 (file)
@@ -2,7 +2,7 @@
  * vlm.hpp : VLM Management
  ****************************************************************************
  * Copyright ( C ) 2006 the VideoLAN team
- * $Id: vlm.hpp 21875 2007-09-08 16:01:33Z jb $
+ * $Id$
  *
  * Authors: Jean-François Massol <jf.massol@gmail.com>
  *          Jean-Baptiste Kempf <jb@videolan.org>
@@ -29,7 +29,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 
 #ifdef ENABLE_VLM
 
@@ -37,6 +37,7 @@
 
 #include "ui/vlm.h"
 #include "util/qvlcframe.hpp"
+#include <QDateTime>
 
 enum{
     QVLM_Broadcast,
@@ -97,6 +98,7 @@ private:
     QDateTimeEdit *time, *date, *repeatTime;
     QSpinBox *scherepeatnumber, *repeatDays;
     bool isNameGenuine( QString );
+    void mediasPopulator();
 public slots:
     void removeVLMItem( VLMAWidget * );
     void startModifyVLMItem( VLMAWidget * );
@@ -108,6 +110,8 @@ private slots:
     void selectVLMItem( int );
     void selectInput();
     void selectOutput();
+    bool exportVLMConf();
+    bool importVLMConf();
 };
 
 class VLMWrapper
@@ -122,10 +126,18 @@ public:
     static void EditBroadcast( const QString, const QString, const QString,
                        bool b_enabled = true,
                        bool b_loop = false );
+    static void EditSchedule( const QString, const QString, const QString,
+                       QDateTime _schetime, QDateTime _schedate,
+                       int _scherepeatnumber, int _repeatDays,
+                       bool b_enabled = true, QString mux = "" );
     static void AddVod( const QString, const QString, const QString,
                        bool b_enabled = true, QString mux = "" );
     static void EditVod( const QString, const QString, const QString,
                        bool b_enabled = true, QString mux = "" );
+    static void AddSchedule( const QString, const QString, const QString,
+                       QDateTime _schetime, QDateTime _schedate,
+                       int _scherepeatnumber, int _repeatDays,
+                       bool b_enabled = true, QString mux = "" );
 
     static void ControlBroadcast( const QString, int, unsigned int seek = 0 );
     static void EnableItem( const QString, bool );
@@ -155,7 +167,6 @@ protected:
     bool b_enabled;
     int type;
     VLMDialog *parent;
-    virtual void enterEvent( QEvent * );
     QGridLayout *objLayout;
 private slots:
     virtual void modify();
@@ -196,12 +207,18 @@ private:
 
 class VLMSchedule : public VLMAWidget
 {
+    Q_OBJECT
     friend class VLMDialog;
 public:
-    VLMSchedule( QString name, QString input, QString output, bool _enable, VLMDialog *parent );
+    VLMSchedule( QString name, QString input, QString output,
+            QDateTime schetime, QDateTime schedate, int repeatnumber,
+            int repeatdays, bool enabled, VLMDialog *parent );
     void update();
 private:
-
+    QDateTime schetime;
+    QDateTime schedate;
+    int rNumber;
+    int rDays;
 };
 
 #endif