36 lines
680 B
C++
Executable File
36 lines
680 B
C++
Executable File
#include "stream_list_result.h"
|
|
|
|
#include <QMap>
|
|
|
|
namespace AudioVideoManagement {
|
|
|
|
|
|
StreamListResult::StreamListResult()
|
|
: QObject(nullptr)
|
|
{
|
|
}
|
|
|
|
void StreamListResult::onStreamListReceived(const QVector<AvaStream> &streams)
|
|
{
|
|
QMap<QString, QString> streamInternalNameToDisplayName;
|
|
for(const auto &stream : streams)
|
|
{
|
|
streamInternalNameToDisplayName.insert(stream.toString(), stream.displayName);
|
|
}
|
|
emit emitStreamList(streamInternalNameToDisplayName);
|
|
}
|
|
|
|
|
|
|
|
StreamClipsResult::StreamClipsResult()
|
|
: QObject(nullptr)
|
|
{
|
|
}
|
|
|
|
void StreamClipsResult::onClipsListReceived(const AvaTimeline &clips)
|
|
{
|
|
emit emitClipsList(clips);
|
|
}
|
|
|
|
} // namespace AudioVideoManagement
|