CopperSpice API  1.7.2
QImageEncoderControl Class Referenceabstract

Provides access to the settings of a media service that performs image encoding. More...

Inheritance diagram for QImageEncoderControl:
QMediaControl QObject

Public Methods

virtual ~QImageEncoderControl ()
 
virtual QString imageCodecDescription (const QString &codecName) const = 0
 
virtual QImageEncoderSettings imageSettings () const = 0
 
virtual void setImageSettings (const QImageEncoderSettings &settings) = 0
 
virtual QStringList supportedImageCodecs () const = 0
 
virtual QList< QSizesupportedResolutions (const QImageEncoderSettings &settings, bool *continuous=nullptr) 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

 QImageEncoderControl (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 QImageEncoderControl_iid   "com.copperspice.CS.imageEncoderControl/1.0"
 

Additional Inherited Members

- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 
- 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 >())
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The QImageEncoderControl class provides access to the settings of a media service that performs image encoding. If a QMediaService supports encoding image data it will implement QImageEncoderControl. This control allows to set image encoding settings and provides functions for querying supported image codecs and resolutions.

The interface name of QImageEncoderControl is "com.copperspice.CS.imageencodercontrol/1.0" as defined in QImageEncoderControl_iid.

See also
QImageEncoderSettings, QMediaService::requestControl()

Constructor & Destructor Documentation

QImageEncoderControl::~QImageEncoderControl ( )
virtual

Destroys the image encoder control.

QImageEncoderControl::QImageEncoderControl ( QObject parent = nullptr)
explicitprotected

Constructs a new image encoder control object with the given parent.

Method Documentation

QString QImageEncoderControl::imageCodecDescription ( const QString codec) const
pure virtual

Returns a description of an image codec.

QImageEncoderSettings QImageEncoderControl::imageSettings ( ) const
pure virtual

Returns the currently used image encoder settings.

The returned value from this method may be different from what was passed to setImageSettings(). This can occur if the settings contained parameters which had default or undefined values.

See also
setImageSettings()
void QImageEncoderControl::setImageSettings ( const QImageEncoderSettings settings)
pure virtual

Sets the selected image encoder settings.

See also
imageSettings()
QStringList QImageEncoderControl::supportedImageCodecs ( ) const
pure virtual

Returns a list of supported image codecs.

QList< QSize > QImageEncoderControl::supportedResolutions ( const QImageEncoderSettings settings,
bool *  continuous = nullptr 
) const
pure virtual

Returns a list of supported resolutions. If settings is passed, the list which is returned is filtered to only contain resolutions supported with the given settings. The methods can be used to query the list of resolutions supported by specific image codec.

If the encoder supports arbitrary resolutions within the supported resolutions range, continuous is set to true, otherwise continuous is set to false.

Friends And Related Function Documentation

#define QImageEncoderControl_iid   "com.copperspice.CS.imageEncoderControl/1.0"
related

Defines the interface name of the QImageEncoderControl class to "com.copperspice.CS.imageEncoderControl/1.0".