Commit 053930ee authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Change PersistentSearchAttribute::queryCollections to QVector<qint64>

Because QList is lame.
parent 526ccda4
......@@ -104,7 +104,7 @@ void CollectionModifyJob::doStart()
cmd.setAttributes(ProtocolHelper::attributesToProtocol(d->mCollection));
}
if (auto attr = d->mCollection.attribute<Akonadi::PersistentSearchAttribute>()) {
cmd.setPersistentSearchCollections(attr->queryCollections().toVector());
cmd.setPersistentSearchCollections(attr->queryCollections());
cmd.setPersistentSearchQuery(attr->queryString());
cmd.setPersistentSearchRecursive(attr->isRecursive());
cmd.setPersistentSearchRemote(attr->isRemoteSearchEnabled());
......
......@@ -38,7 +38,7 @@ public:
}
QString queryString;
QList<qint64> queryCollections;
QVector<qint64> queryCollections;
bool remote;
bool recursive;
};
......@@ -63,7 +63,7 @@ void PersistentSearchAttribute::setQueryString(const QString &query)
d->queryString = query;
}
QList<qint64> PersistentSearchAttribute::queryCollections() const
QVector<qint64> PersistentSearchAttribute::queryCollections() const
{
return d->queryCollections;
}
......@@ -77,7 +77,7 @@ void PersistentSearchAttribute::setQueryCollections(const QVector<Collection> &c
}
}
void PersistentSearchAttribute::setQueryCollections(const QList<qint64> &collectionsIds)
void PersistentSearchAttribute::setQueryCollections(const QVector<qint64> &collectionsIds)
{
d->queryCollections = collectionsIds;
}
......
......@@ -100,7 +100,7 @@ public:
* Returns IDs of collections that will be queried
* @since 4.13
*/
QList<qint64> queryCollections() const;
QVector<qint64> queryCollections() const;
/**
* Sets collections to be queried.
......@@ -114,7 +114,7 @@ public:
* @param collectionsIds IDs of collections to query
* @since 4.13
*/
void setQueryCollections(const QList<qint64> &collectionsIds);
void setQueryCollections(const QVector<qint64> &collectionsIds);
/**
* Sets whether resources should be queried too.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment