CopperSpice API  1.7.2
QVideoDeviceSelectorControl Class Referenceabstract

Provides a video device selector media control. More...

Inheritance diagram for QVideoDeviceSelectorControl:
QMediaControl QObject

Public Signals

void devicesChanged ()
 
void selectedDeviceChanged (const QString &deviceName)
 
void selectedDeviceChanged (int index)
 
- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 

Public Slots

virtual void setSelectedDevice (int index)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Public Methods

virtual ~QVideoDeviceSelectorControl ()
 
virtual int defaultDevice () const = 0
 
virtual int deviceCount () const = 0
 
virtual QString deviceDescription (int index) const = 0
 
virtual QString deviceName (int index) const = 0
 
virtual int selectedDevice () const = 0
 
- Public Methods inherited from QMediaControl
 ~QMediaControl ()
 
- Public Methods inherited from QObject
 QObject (QObject *parent=nullptr)
 
 ~QObject ()
 
bool blockSignals (bool block)
 
const QList< QObject * > & children () const
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QStringdynamicPropertyNames () const
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
template<typename T >
findChild (const QString &childName=QString ()) const
 
template<class T >
QList< T > findChildren (const QRegularExpression &regExp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<class T >
QList< T > findChildren (const QString &objName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
bool inherits (const QString &className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
QObject * parent () const
 
template<class T = QVariant>
property (const QString &name) const
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const QString &name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
QThreadthread () const
 

Protected Methods

 QVideoDeviceSelectorControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QMediaControl
 QMediaControl (QObject *parent=nullptr)
 
- Protected Methods inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signalMethod) const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signalMethod) const
 
bool isSignalConnected (const QMetaMethod &signalMethod) const
 
int receivers (const QString &signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Related Functions

These are not member functions

#define QVideoDeviceSelectorControl_iid   "com.copperspice.CS.videoDeviceSelectorControl/1.0"
 

Additional Inherited Members

- Static Public Methods inherited from QObject
static bool connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ())
 
static bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...))
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod)
 
static QMetaObjectstaticMetaObject ()
 
static QString tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >())
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The QVideoDeviceSelectorControl class provides a video device selector media control. This class also provides descriptions of the video devices available on a system and allows one to be selected as the endpoint of a media service.

The interface name of QVideoDeviceSelectorControl is "com.copperspice.CS.videoDeviceSelectorControl/1.0" as defined in QVideoDeviceSelectorControl_iid.

Constructor & Destructor Documentation

QVideoDeviceSelectorControl::~QVideoDeviceSelectorControl ( )
virtual

Destroys a video device selector control.

QVideoDeviceSelectorControl::QVideoDeviceSelectorControl ( QObject parent = nullptr)
explicitprotected

Constructs a video device selector control with the given parent.

Method Documentation

int QVideoDeviceSelectorControl::defaultDevice ( ) const
pure virtual

Returns the index of the default video device.

int QVideoDeviceSelectorControl::deviceCount ( ) const
pure virtual

Returns the number of available video devices.

QString QVideoDeviceSelectorControl::deviceDescription ( int  index) const
pure virtual

Returns a description of the video device at index.

QString QVideoDeviceSelectorControl::deviceName ( int  index) const
pure virtual

Returns the name of the video device at index.

void QVideoDeviceSelectorControl::devicesChanged ( )
signal

Signals that the list of available video devices has changed.

int QVideoDeviceSelectorControl::selectedDevice ( ) const
pure virtual

Returns the index of the selected video device.

void QVideoDeviceSelectorControl::selectedDeviceChanged ( const QString name)
signal

Signals that the selected video device name has changed.

void QVideoDeviceSelectorControl::selectedDeviceChanged ( int  index)
signal

Signals that the selected video device index has changed. This signal is overloaded in this class. To connect to this overload use the function pointer syntax.

connect(videoDeviceSelectorControl,
this,
[](int index){ handle_here(); });
void QVideoDeviceSelectorControl::setSelectedDevice ( int  index)
slot

Sets the selected video device index.

Friends And Related Function Documentation

#define QVideoDeviceSelectorControl_iid   "com.copperspice.CS.videoDeviceSelectorControl/1.0"
related

Defines the interface name of the QVideoDeviceSelectorControl class to "com.copperspice.CS.videoDeviceSelectorControl/1.0".