Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
3e0615bb
Commit
3e0615bb
authored
Jul 30, 2016
by
luyikei
Browse files
IInput, IOutput: Add errorEncountered()
parent
ba5e7df4
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/Backend/IInput.h
View file @
3e0615bb
...
...
@@ -38,6 +38,7 @@ namespace Backend
virtual
void
onEndReached
()
=
0
;
virtual
void
onPositionChanged
(
int64_t
)
=
0
;
virtual
void
onLengthChanged
(
int64_t
)
=
0
;
virtual
void
onErrorEncountered
()
=
0
;
};
class
IInput
...
...
src/Backend/IOutput.h
View file @
3e0615bb
...
...
@@ -38,6 +38,7 @@ namespace Backend
virtual
void
onPlaying
()
=
0
;
virtual
void
onStopped
()
=
0
;
virtual
void
onVolumeChanged
()
=
0
;
virtual
void
onErrorEncountered
()
=
0
;
};
class
IOutput
...
...
src/Tools/OutputEventWatcher.cpp
View file @
3e0615bb
...
...
@@ -44,3 +44,9 @@ OutputEventWatcher::onVolumeChanged()
{
emit
volumeChanged
();
}
void
OutputEventWatcher
::
onErrorEncountered
()
{
emit
errorEncountered
();
}
src/Tools/OutputEventWatcher.h
View file @
3e0615bb
...
...
@@ -37,11 +37,13 @@ private:
virtual
void
onPlaying
();
virtual
void
onStopped
();
virtual
void
onVolumeChanged
();
virtual
void
onErrorEncountered
();
signals:
void
playing
();
void
stopped
();
void
volumeChanged
();
void
errorEncountered
();
};
#endif // OUTPUTEVENTWATCHER_H
src/Tools/RendererEventWatcher.cpp
View file @
3e0615bb
...
...
@@ -69,3 +69,9 @@ RendererEventWatcher::onLengthChanged( int64_t length )
{
emit
lengthChanged
(
length
);
}
void
RendererEventWatcher
::
onErrorEncountered
()
{
emit
errorEncountered
();
}
src/Tools/RendererEventWatcher.h
View file @
3e0615bb
...
...
@@ -43,6 +43,7 @@ private:
virtual
void
onVolumeChanged
();
virtual
void
onPositionChanged
(
int64_t
);
virtual
void
onLengthChanged
(
int64_t
);
virtual
void
onErrorEncountered
();
signals:
void
playing
();
...
...
@@ -52,6 +53,7 @@ signals:
void
volumeChanged
();
void
positionChanged
(
qint64
);
void
lengthChanged
(
qint64
);
void
errorEncountered
();
};
#endif // RENDEREREVENTWATCHER_H
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