Skip to content

Commit

Permalink
[libqofono] Expose softwareVersionNumber in QOfonoModem. Contributes …
Browse files Browse the repository at this point in the history
…to JB#38973
  • Loading branch information
Joona Petrell committed Jun 15, 2017
1 parent aed2af0 commit 5234a04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/qofonomodem.cpp
Expand Up @@ -35,6 +35,7 @@ Q_GLOBAL_STATIC(ModemMap, modemMap)
p(Revision) \
p(Serial) \
p(Type) \
p(SoftwareVersionNumber) \
p(Features) \
p(Interfaces) \

Expand Down Expand Up @@ -143,6 +144,11 @@ QString QOfonoModem::type() const
return getString(Private::Type);
}

QString QOfonoModem::softwareVersionNumber() const
{
return getString(Private::SoftwareVersionNumber);
}

QStringList QOfonoModem::features() const
{
return getStringList(Private::Features);
Expand Down Expand Up @@ -191,6 +197,8 @@ void QOfonoModem::propertyChanged(const QString &property, const QVariant &value
Q_EMIT serialChanged(value.toString());
} else if (property == Private::Type) {
Q_EMIT typeChanged(value.toString());
} else if (property == Private::SoftwareVersionNumber) {
Q_EMIT softwareVersionNumberChanged(value.toString());
} else if (property == Private::Features) {
Q_EMIT featuresChanged(value.toStringList());
} else if (property == Private::Interfaces) {
Expand Down
3 changes: 3 additions & 0 deletions src/qofonomodem.h
Expand Up @@ -39,6 +39,7 @@ class QOFONOSHARED_EXPORT QOfonoModem : public QOfonoObject
Q_PROPERTY(QString revision READ revision NOTIFY revisionChanged)
Q_PROPERTY(QString serial READ serial NOTIFY serialChanged)
Q_PROPERTY(QString type READ type NOTIFY typeChanged)
Q_PROPERTY(QString softwareVersionNumber READ softwareVersionNumber NOTIFY softwareVersionNumberChanged)

Q_PROPERTY(QStringList features READ features NOTIFY featuresChanged)
Q_PROPERTY(QStringList interfaces READ interfaces NOTIFY interfacesChanged)
Expand Down Expand Up @@ -69,6 +70,7 @@ class QOFONOSHARED_EXPORT QOfonoModem : public QOfonoObject
QString revision() const;
QString serial() const;
QString type() const;
QString softwareVersionNumber() const;

QStringList features() const;
QStringList interfaces() const;
Expand All @@ -89,6 +91,7 @@ class QOFONOSHARED_EXPORT QOfonoModem : public QOfonoObject
void revisionChanged(const QString &revision);
void serialChanged(const QString &serial);
void typeChanged(const QString &type);
void softwareVersionNumberChanged(const QString &version);
void featuresChanged(const QStringList &features);
void interfacesChanged(const QStringList &interfaces);
void modemPathChanged(const QString &path);
Expand Down

0 comments on commit 5234a04

Please sign in to comment.