CopperSpice API  1.7.2
QRadioDataControl Class Referenceabstract

The QRadioDataControl class provides access to the RDS functionality of the radio in the QMediaService. More...

Inheritance diagram for QRadioDataControl:
QMediaControl QObject

Public Signals

void alternativeFrequenciesEnabledChanged (bool enabled)
 
void error (QRadioData::Error err)
 
void programTypeChanged (QRadioData::ProgramType programType)
 
void programTypeNameChanged (QString programTypeName)
 
void radioTextChanged (QString radioText)
 
void stationIdChanged (QString stationId)
 
void stationNameChanged (QString stationName)
 
- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 

Public Methods

 ~QRadioDataControl ()
 
virtual QRadioData::Error error () const = 0
 
virtual QString errorString () const = 0
 
virtual bool isAlternativeFrequenciesEnabled () const = 0
 
virtual QRadioData::ProgramType programType () const = 0
 
virtual QString programTypeName () const = 0
 
virtual QString radioText () const = 0
 
virtual void setAlternativeFrequenciesEnabled (bool enabled) = 0
 
virtual QString stationId () const = 0
 
virtual QString stationName () 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

 QRadioDataControl (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 QRadioDataControl_iid   "com.copperspice.CS.radioDataControl/1.0"
 

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 >())
 
- Properties inherited from QObject
 objectName
 

Detailed Description

The QRadioDataControl class provides access to the RDS functionality of the radio in the QMediaService. The functionality provided by this control is exposed to application code through the QRadioData class.

The interface name of QRadioDataControl is "com.copperspice.CS.radioDataControl/1.0" as defined in QRadioDataControl_iid.

See also
QMediaService::requestControl(), QRadioData

Constructor & Destructor Documentation

QRadioDataControl::~QRadioDataControl ( )

Destroys a radio data control.

QRadioDataControl::QRadioDataControl ( QObject parent = nullptr)
explicitprotected

Constructs a radio data control with the given parent.

Method Documentation

void QRadioDataControl::alternativeFrequenciesEnabledChanged ( bool  enabled)
signal

Signals that the alternative frequencies setting has changed to the value of enabled.

QRadioData::Error QRadioDataControl::error ( ) const
pure virtual

Returns the error state of a radio data.

void QRadioDataControl::error ( QRadioData::Error  error)
signal

Signals that an error has occurred. The error signal is overloaded in this class. To connect to this overload use the function pointer syntax.

connect(radioDataControl,
this,
[](QRadioData::Error error){ handle_error_here(); });
QString QRadioDataControl::errorString ( ) const
pure virtual

Returns a string describing a radio data's error state.

bool QRadioDataControl::isAlternativeFrequenciesEnabled ( ) const
pure virtual

Returns true if Alternative Frequency is currently enabled.

QRadioData::ProgramType QRadioDataControl::programType ( ) const
pure virtual

Returns the current Program Type.

void QRadioDataControl::programTypeChanged ( QRadioData::ProgramType  programType)
signal

Signals that the Program Type programType has changed.

QString QRadioDataControl::programTypeName ( ) const
pure virtual

Returns the current Program Type Name.

void QRadioDataControl::programTypeNameChanged ( QString  programTypeName)
signal

Signals that the Program Type Name programTypeName has changed.

QString QRadioDataControl::radioText ( ) const
pure virtual

Returns the current Radio Text.

void QRadioDataControl::radioTextChanged ( QString  radioText)
signal

Signals that the Radio Text radioText has changed.

void QRadioDataControl::setAlternativeFrequenciesEnabled ( bool  enabled)
pure virtual

Sets the Alternative Frequency to enabled.

See also
isAlternativeFrequenciesEnabled()
QString QRadioDataControl::stationId ( ) const
pure virtual

Returns the current Program Identification.

void QRadioDataControl::stationIdChanged ( QString  stationId)
signal

Signals that the Program Identification stationId has changed.

QString QRadioDataControl::stationName ( ) const
pure virtual

Returns the current Program Service.

void QRadioDataControl::stationNameChanged ( QString  stationName)
signal

Signals that the Program Service stationName has changed.

Friends And Related Function Documentation

#define QRadioDataControl_iid   "com.copperspice.CS.radioDataControl/1.0"
related

Defines the interface name of the QRadioTunerControl class to "com.copperspice.CS.radioDataControl/1.0".