[vlmc-devel] IInput, IOutput: Add errorEncountered()
Yikai Lu
git at videolan.org
Sat Jul 30 07:49:02 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 30 14:44:31 2016 +0900| [3e0615bbc3654386df27b2f1a13465f4ce244b17] | committer: Yikai Lu
IInput, IOutput: Add errorEncountered()
> https://code.videolan.org/videolan/vlmc/commit/3e0615bbc3654386df27b2f1a13465f4ce244b17
---
src/Backend/IInput.h | 1 +
src/Backend/IOutput.h | 1 +
src/Tools/OutputEventWatcher.cpp | 6 ++++++
src/Tools/OutputEventWatcher.h | 2 ++
src/Tools/RendererEventWatcher.cpp | 6 ++++++
src/Tools/RendererEventWatcher.h | 2 ++
6 files changed, 18 insertions(+)
diff --git a/src/Backend/IInput.h b/src/Backend/IInput.h
index 730c583..9321025 100644
--- a/src/Backend/IInput.h
+++ b/src/Backend/IInput.h
@@ -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
diff --git a/src/Backend/IOutput.h b/src/Backend/IOutput.h
index bef6528..c84cf02 100644
--- a/src/Backend/IOutput.h
+++ b/src/Backend/IOutput.h
@@ -38,6 +38,7 @@ namespace Backend
virtual void onPlaying() = 0;
virtual void onStopped() = 0;
virtual void onVolumeChanged() = 0;
+ virtual void onErrorEncountered() = 0;
};
class IOutput
diff --git a/src/Tools/OutputEventWatcher.cpp b/src/Tools/OutputEventWatcher.cpp
index f717236..b0b5470 100644
--- a/src/Tools/OutputEventWatcher.cpp
+++ b/src/Tools/OutputEventWatcher.cpp
@@ -44,3 +44,9 @@ OutputEventWatcher::onVolumeChanged()
{
emit volumeChanged();
}
+
+void
+OutputEventWatcher::onErrorEncountered()
+{
+ emit errorEncountered();
+}
diff --git a/src/Tools/OutputEventWatcher.h b/src/Tools/OutputEventWatcher.h
index c8a81fc..744eeed 100644
--- a/src/Tools/OutputEventWatcher.h
+++ b/src/Tools/OutputEventWatcher.h
@@ -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
diff --git a/src/Tools/RendererEventWatcher.cpp b/src/Tools/RendererEventWatcher.cpp
index 2285f9c..a1b0a04 100644
--- a/src/Tools/RendererEventWatcher.cpp
+++ b/src/Tools/RendererEventWatcher.cpp
@@ -69,3 +69,9 @@ RendererEventWatcher::onLengthChanged( int64_t length )
{
emit lengthChanged( length );
}
+
+void
+RendererEventWatcher::onErrorEncountered()
+{
+ emit errorEncountered();
+}
diff --git a/src/Tools/RendererEventWatcher.h b/src/Tools/RendererEventWatcher.h
index 2a44202..258c3fe 100644
--- a/src/Tools/RendererEventWatcher.h
+++ b/src/Tools/RendererEventWatcher.h
@@ -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
More information about the Vlmc-devel
mailing list