mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
make some QDBusAbstractInterface methods const
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
3d88728beb
commit
98fa09fde0
3 changed files with 8 additions and 7 deletions
1
README
1
README
|
@ -44,6 +44,7 @@ There are several things you should be aware before considering Katie:
|
|||
- support for generating SHA-224, SHA-256, SHA-384, SHA-512 hash sums (SHA-2)
|
||||
- desktop files, Shell profile and dynamic linker/loader config are installed
|
||||
to ease vendors and deployment in general
|
||||
- automatic async DBus calls based on method return type
|
||||
|
||||
Bugs fixed in Katie, some of which in Qt5 too:
|
||||
QTBUG-23502, QTBUG-37115, QTBUG-15052, QTBUG-23522, QTBUG-6139, QTBUG-26889,
|
||||
|
|
|
@ -492,9 +492,9 @@ QDBusMessage QDBusAbstractInterface::callWithArgumentList(QDBus::CallMode mode,
|
|||
\threadsafe
|
||||
*/
|
||||
QDBusPendingCall QDBusAbstractInterface::asyncCallWithArgumentList(const QString& method,
|
||||
const QList<QVariant>& args)
|
||||
const QList<QVariant>& args) const
|
||||
{
|
||||
Q_D(QDBusAbstractInterface);
|
||||
Q_D(const QDBusAbstractInterface);
|
||||
|
||||
if (!d->isValid || !d->canMakeCalls())
|
||||
return QDBusPendingCall::fromError(d->lastError);
|
||||
|
@ -666,7 +666,7 @@ QDBusMessage QDBusAbstractInterface::call(const QString &method, const QVariant
|
|||
const QVariant &arg5,
|
||||
const QVariant &arg6,
|
||||
const QVariant &arg7,
|
||||
const QVariant &arg8)
|
||||
const QVariant &arg8) const
|
||||
{
|
||||
return call(QDBus::AutoDetect, method, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
||||
}
|
||||
|
@ -758,7 +758,7 @@ QDBusPendingCall QDBusAbstractInterface::asyncCall(const QString &method, const
|
|||
const QVariant &arg5,
|
||||
const QVariant &arg6,
|
||||
const QVariant &arg7,
|
||||
const QVariant &arg8)
|
||||
const QVariant &arg8) const
|
||||
{
|
||||
QList<QVariant> argList;
|
||||
int count = 0 + arg1.isValid() + arg2.isValid() + arg3.isValid() + arg4.isValid() +
|
||||
|
|
|
@ -98,7 +98,7 @@ public:
|
|||
const QVariant &arg5 = QVariant(),
|
||||
const QVariant &arg6 = QVariant(),
|
||||
const QVariant &arg7 = QVariant(),
|
||||
const QVariant &arg8 = QVariant());
|
||||
const QVariant &arg8 = QVariant()) const;
|
||||
|
||||
QDBusMessage call(QDBus::CallMode mode,
|
||||
const QString &method,
|
||||
|
@ -130,9 +130,9 @@ public:
|
|||
const QVariant &arg5 = QVariant(),
|
||||
const QVariant &arg6 = QVariant(),
|
||||
const QVariant &arg7 = QVariant(),
|
||||
const QVariant &arg8 = QVariant());
|
||||
const QVariant &arg8 = QVariant()) const;
|
||||
QDBusPendingCall asyncCallWithArgumentList(const QString &method,
|
||||
const QList<QVariant> &args);
|
||||
const QList<QVariant> &args) const;
|
||||
|
||||
protected:
|
||||
QDBusAbstractInterface(const QString &service, const QString &path, const char *interface,
|
||||
|
|
Loading…
Add table
Reference in a new issue