Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
28ff8dc8
Commit
28ff8dc8
authored
Dec 15, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - VLM update. Add the actual vlm queries, the modifications and so on for VOD and Broadcast.
parent
84939716
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
317 additions
and
37 deletions
+317
-37
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+255
-34
modules/gui/qt4/dialogs/vlm.hpp
modules/gui/qt4/dialogs/vlm.hpp
+62
-3
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
28ff8dc8
This diff is collapsed.
Click to expand it.
modules/gui/qt4/dialogs/vlm.hpp
View file @
28ff8dc8
...
...
@@ -26,6 +26,7 @@
#define _VLM_DIALOG_H_
#include <vlc/vlc.h>
#include <vlc_vlm.h>
#include "ui/vlm.h"
#include "util/qvlcframe.hpp"
...
...
@@ -36,6 +37,13 @@ enum{
QVLM_VOD
};
enum
{
ControlBroadcastPlay
,
ControlBroadcastPause
,
ControlBroadcastStop
,
ControlBroadcastSeek
};
class
QComboBox
;
class
QVBoxLayout
;
class
QStackedWidget
;
...
...
@@ -50,6 +58,9 @@ class QHBoxLayout;
class
QDateTimeEdit
;
class
QSpinBox
;
class
VLMAWidget
;
class
VLMWrapper
;
#define THEVLM parent->vlmWrapper->GetVLM()
class
VLMDialog
:
public
QVLCFrame
{
...
...
@@ -63,6 +74,8 @@ public:
};
virtual
~
VLMDialog
();
VLMWrapper
*
vlmWrapper
;
private:
VLMDialog
(
intf_thread_t
*
);
static
VLMDialog
*
instance
;
...
...
@@ -89,12 +102,46 @@ private slots:
void
selectVLMItem
(
int
);
};
class
VLMWrapper
{
public:
VLMWrapper
(
intf_thread_t
*
);
virtual
~
VLMWrapper
();
bool
AttachVLM
();
static
void
AddBroadcast
(
vlm_t
*
,
const
QString
,
const
QString
,
const
QString
,
bool
b_enabled
=
true
,
bool
b_loop
=
false
);
static
void
EditBroadcast
(
vlm_t
*
,
const
QString
,
const
QString
,
const
QString
,
bool
b_enabled
=
true
,
bool
b_loop
=
false
);
static
void
AddVod
(
vlm_t
*
,
const
QString
,
const
QString
,
const
QString
,
bool
b_enabled
=
true
,
QString
mux
=
""
);
static
void
EditVod
(
vlm_t
*
,
const
QString
,
const
QString
,
const
QString
,
bool
b_enabled
=
true
,
QString
mux
=
""
);
static
void
ControlBroadcast
(
vlm_t
*
,
const
QString
,
int
,
unsigned
int
seek
=
0
);
vlm_t
*
GetVLM
(){
return
p_vlm
;}
/* We don't have yet the accessors in the core, so the following is commented */
//unsigned int NbMedia() { if( p_vlm ) return p_vlm->i_media; return 0; }
/* vlm_media_t *GetMedia( int i )
{ if( p_vlm ) return p_vlm->media[i]; return NULL; }*/
private:
vlm_t
*
p_vlm
;
intf_thread_t
*
p_intf
;
};
class
VLMAWidget
:
public
QGroupBox
{
Q_OBJECT
friend
class
VLMDialog
;
public:
VLMAWidget
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
,
int
_type
=
QVLM_Broadcast
);
VLMAWidget
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
,
int
_type
=
QVLM_Broadcast
);
virtual
void
update
()
=
0
;
protected:
QLabel
*
nameLabel
;
QString
name
;
...
...
@@ -113,10 +160,15 @@ private slots:
class
VLMBroadcast
:
public
VLMAWidget
{
Q_OBJECT
friend
class
VLMDialog
;
public:
VLMBroadcast
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
);
VLMBroadcast
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
bool
_loop
,
VLMDialog
*
parent
);
void
update
();
private:
bool
b_looped
;
bool
b_playing
;
QToolButton
*
loopButton
,
*
playButton
;
private
slots
:
void
stop
();
void
togglePlayPause
();
...
...
@@ -125,16 +177,23 @@ private slots:
class
VLMVod
:
public
VLMAWidget
{
Q_OBJECT
friend
class
VLMDialog
;
public:
VLMVod
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
);
VLMVod
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
QString
_mux
,
VLMDialog
*
parent
);
void
update
();
private:
QString
mux
;
QLabel
*
muxLabel
;
};
class
VLMSchedule
:
public
VLMAWidget
{
friend
class
VLMDialog
;
public:
VLMSchedule
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
);
void
update
();
private:
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment