37 m_Program = src->m_Program;
38 m_DisplayName = src->m_DisplayName;
75 m_Grabbers.append( QVariant::fromValue<QObject *>( pObject ));
82 auto matchProgram = [&program](
const QVariant& entry)
84 auto *grabber = entry.value<
V2Grabber*>();
85 return (grabber->GetProgram() == program);
87 return std::any_of(m_Grabbers.cbegin(), m_Grabbers.cend(), matchProgram);
V2Grabber * AddNewGrabber()
Q_INVOKABLE V2GrabberList(QObject *parent=nullptr)
Q_DISABLE_COPY(V2GrabberList)
SERVICE_PROPERTY2(QVariantList, Grabbers)
Q_CLASSINFO("Grabbers", "type=V2Grabber")
Q_CLASSINFO("Version", "1.0")
bool containsProgram(QString &program)
Q_DISABLE_COPY(V2Grabber)
Q_INVOKABLE V2Grabber(QObject *parent=nullptr)
void Copy(const V2Grabber *src)
Q_CLASSINFO("Version", "1.0")
Q_DECLARE_METATYPE(std::chrono::seconds)
#define SERVICE_PROPERTY2(Type, Name)