Made some methods const
This commit is contained in:
parent
4dcbb3531a
commit
baa0e5ff95
6 changed files with 11 additions and 10 deletions
|
@ -52,6 +52,7 @@ public Q_SLOTS:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool doKill();
|
virtual bool doKill();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void startTransfer();
|
void startTransfer();
|
||||||
QSharedPointer<QIODevice> mOrigin;
|
QSharedPointer<QIODevice> mOrigin;
|
||||||
|
|
|
@ -33,8 +33,8 @@ public:
|
||||||
explicit BatteryDbusInterface(QObject *parent);
|
explicit BatteryDbusInterface(QObject *parent);
|
||||||
virtual ~BatteryDbusInterface();
|
virtual ~BatteryDbusInterface();
|
||||||
|
|
||||||
Q_SCRIPTABLE int charge() { return mCharge; }
|
Q_SCRIPTABLE int charge() const { return mCharge; }
|
||||||
Q_SCRIPTABLE bool isCharging() { return mIsCharging; }
|
Q_SCRIPTABLE bool isCharging() const { return mIsCharging; }
|
||||||
|
|
||||||
void updateValues(bool isCharging, int currentCharge);
|
void updateValues(bool isCharging, int currentCharge);
|
||||||
|
|
||||||
|
|
|
@ -41,11 +41,11 @@ public:
|
||||||
Notification(const NetworkPackage& np, const QString& iconPath, QObject* parent);
|
Notification(const NetworkPackage& np, const QString& iconPath, QObject* parent);
|
||||||
virtual ~Notification();
|
virtual ~Notification();
|
||||||
|
|
||||||
QString internalId() { return mId; }
|
QString internalId() const { return mId; }
|
||||||
QString appName() { return mAppName; }
|
QString appName() const { return mAppName; }
|
||||||
QString ticker() { return mTicker; }
|
QString ticker() const { return mTicker; }
|
||||||
QString iconPath() { return mIconPath; }
|
QString iconPath() const { return mIconPath; }
|
||||||
bool dismissable() { return mDismissable; }
|
bool dismissable() const { return mDismissable; }
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
Q_SCRIPTABLE void dismiss();
|
Q_SCRIPTABLE void dismiss();
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
virtual ~Mounter();
|
virtual ~Mounter();
|
||||||
|
|
||||||
bool wait();
|
bool wait();
|
||||||
bool isMounted() const {return m_started;}
|
bool isMounted() const { return m_started; }
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void mounted();
|
void mounted();
|
||||||
|
|
|
@ -123,7 +123,7 @@ bool SftpPlugin::mountAndWait()
|
||||||
return m_d->mounter->wait();
|
return m_d->mounter->wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SftpPlugin::isMounted()
|
bool SftpPlugin::isMounted() const
|
||||||
{
|
{
|
||||||
return m_d->mounter && m_d->mounter->isMounted();
|
return m_d->mounter && m_d->mounter->isMounted();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public Q_SLOTS:
|
||||||
Q_SCRIPTABLE void mount();
|
Q_SCRIPTABLE void mount();
|
||||||
Q_SCRIPTABLE void unmount();
|
Q_SCRIPTABLE void unmount();
|
||||||
Q_SCRIPTABLE bool mountAndWait();
|
Q_SCRIPTABLE bool mountAndWait();
|
||||||
Q_SCRIPTABLE bool isMounted();
|
Q_SCRIPTABLE bool isMounted() const;
|
||||||
|
|
||||||
Q_SCRIPTABLE bool startBrowsing();
|
Q_SCRIPTABLE bool startBrowsing();
|
||||||
Q_SCRIPTABLE QString mountPoint();
|
Q_SCRIPTABLE QString mountPoint();
|
||||||
|
|
Loading…
Reference in a new issue