CopperSpice API  1.7.2
QCameraZoomControl Class Referenceabstract

The QCameraZoomControl class supplies control for optical and digital camera zoom. More...

Inheritance diagram for QCameraZoomControl:
QMediaControl QObject

Public Signals

void currentDigitalZoomChanged (qreal digitalZoom)
 
void currentOpticalZoomChanged (qreal opticalZoom)
 
void maximumDigitalZoomChanged (qreal un_named_arg1)
 
void maximumOpticalZoomChanged (qreal un_named_arg1)
 
void requestedDigitalZoomChanged (qreal digitalZoom)
 
void requestedOpticalZoomChanged (qreal opticalZoom)
 
- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 

Public Methods

virtual qreal currentDigitalZoom () const = 0
 
virtual qreal currentOpticalZoom () const = 0
 
virtual qreal maximumDigitalZoom () const = 0
 
virtual qreal maximumOpticalZoom () const = 0
 
virtual qreal requestedDigitalZoom () const = 0
 
virtual qreal requestedOpticalZoom () const = 0
 
virtual void zoomTo (qreal optical, qreal digital) = 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
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- 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 >())
 
- 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)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The QCameraZoomControl class supplies control for optical and digital camera zoom.

The interface name of QCameraZoomControl is "com.copperspice.CS.cameraZoomControl/1.0" as defined in QCameraZoomControl_iid.

See also
QMediaService::requestControl(), QCamera

Method Documentation

qreal QCameraZoomControl::currentDigitalZoom ( ) const
pure virtual

Return the current digital zoom value.

void QCameraZoomControl::currentDigitalZoomChanged ( qreal  zoom)
signal

Signal emitted when the current digital zoom value changed.

qreal QCameraZoomControl::currentOpticalZoom ( ) const
pure virtual

Return the current optical zoom value.

void QCameraZoomControl::currentOpticalZoomChanged ( qreal  zoom)
signal

Signal emitted when the current optical zoom value changed.

qreal QCameraZoomControl::maximumDigitalZoom ( ) const
pure virtual

Returns the maximum digital zoom value, or 1.0 if digital zoom is not supported.

void QCameraZoomControl::maximumDigitalZoomChanged ( qreal  zoom)
signal

Signal emitted when the maximum supported digital zoom value changed.

The maximum supported zoom value can depend on other camera settings, like capture mode or resolution.

qreal QCameraZoomControl::maximumOpticalZoom ( ) const
pure virtual

Returns the maximum optical zoom value, or 1.0 if optical zoom is not supported.

void QCameraZoomControl::maximumOpticalZoomChanged ( qreal  zoom)
signal

Signal emitted when the maximum supported optical zoom value changed.

The maximum supported zoom value can depend on other camera settings, like focusing mode.

qreal QCameraZoomControl::requestedDigitalZoom ( ) const
pure virtual

Return the requested digital zoom value.

void QCameraZoomControl::requestedDigitalZoomChanged ( qreal  zoom)
signal

Signal emitted when the requested digital zoom value changed.

qreal QCameraZoomControl::requestedOpticalZoom ( ) const
pure virtual

Return the requested optical zoom value.

void QCameraZoomControl::requestedOpticalZoomChanged ( qreal  zoom)
signal

Signal emitted when the requested optical zoom value changed.

void QCameraZoomControl::zoomTo ( qreal  optical,
qreal  digital 
)
pure virtual

Sets optical and digital zoom values.

Zooming can be asynchronous with value changes reported with currentDigitalZoomChanged() and currentOpticalZoomChanged() signals.

The backend should expect and correctly handle frequent zoomTo() calls during zoom animations or slider movements.