Skip to content

Commit

Permalink
[libqofono] Made QOfonoModemInterface::modemPath and setModemPath public
Browse files Browse the repository at this point in the history
Can't think of any good reason to keep them protected.
  • Loading branch information
monich committed Jun 24, 2020
1 parent c26eefa commit 5eae1ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
7 changes: 3 additions & 4 deletions src/qofonomodeminterface.cpp
@@ -1,7 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2014-2015 Jolla Ltd.
** Contact: slava.monich@jolla.com
** Copyright (C) 2014-2020 Jolla Ltd.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
Expand Down Expand Up @@ -45,12 +44,12 @@ QOfonoModemInterface::~QOfonoModemInterface()
{
}

QOfonoModemInterface::Private* QOfonoModemInterface::privateData() const
QOfonoModemInterface::Private *QOfonoModemInterface::privateData() const
{
return (Private*)SUPER::extData();
}

QOfonoObject::ExtData* QOfonoModemInterface::extData() const
QOfonoObject::ExtData *QOfonoModemInterface::extData() const
{
return privateData()->ext;
}
Expand Down
24 changes: 12 additions & 12 deletions src/qofonomodeminterface.h
@@ -1,7 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2014-2015 Jolla Ltd.
** Contact: slava.monich@jolla.com
** Copyright (C) 2014-2020 Jolla Ltd.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
Expand All @@ -17,11 +16,12 @@
#define QOFONOMODEMINTERFACE_H

#include "qofonoobject.h"
#include "qofono_global.h"

/**
* Modem interface with properties.
*/
class QOfonoModemInterface : public QOfonoObject
class QOFONOSHARED_EXPORT QOfonoModemInterface : public QOfonoObject
{
Q_OBJECT
Q_PROPERTY(QString modemPath READ modemPath WRITE setModemPath NOTIFY modemPathChanged)
Expand All @@ -32,25 +32,25 @@ class QOfonoModemInterface : public QOfonoObject
QOfonoModemInterface(const QString &iface, QObject *parent = NULL);
~QOfonoModemInterface();

virtual ExtData* extData() const;

QString modemPath() const;
void setModemPath(const QString &path);
virtual ExtData *extData() const Q_DECL_OVERRIDE;

bool isReady() const;

public:
bool isValid() const;
QString modemPath() const;
void setModemPath(const QString &path);
void fixModemPath(const QString &path);

bool isValid() const Q_DECL_OVERRIDE;

Q_SIGNALS:
void modemPathChanged(const QString &path);
void readyChanged(/* No parameter for historical reasons */);
void readyChanged();

protected:
void getPropertiesFinished(const QVariantMap &properties, const QDBusError *error);
void updateProperty(const QString &key, const QVariant &value);
void objectPathChanged(const QString &path, const QVariantMap *properties);
void getPropertiesFinished(const QVariantMap &properties, const QDBusError *error) Q_DECL_OVERRIDE;
void updateProperty(const QString &key, const QVariant &value) Q_DECL_OVERRIDE;
void objectPathChanged(const QString &path, const QVariantMap *properties) Q_DECL_OVERRIDE;

private Q_SLOTS:
void onModemInterfacesChanged(const QStringList &interfaces);
Expand Down

0 comments on commit 5eae1ef

Please sign in to comment.