use a hash instead of a map: the sorting was irrelevant and the API that uses this was ported to hashes as well

This commit is contained in:
Aaron Seigo 2011-09-19 08:01:40 +02:00
parent 00b0cc8085
commit f8d94a98b8
2 changed files with 8 additions and 8 deletions

View File

@ -83,7 +83,7 @@ void StorageThread::initializeDb(StorageJob *caller)
m_db.transaction();
}
void StorageThread::save(QWeakPointer<StorageJob> wcaller, const QVariantMap &params)
void StorageThread::save(QWeakPointer<StorageJob> wcaller, const QVariantHash &params)
{
StorageJob *caller = wcaller.data();
if (!caller) {
@ -185,7 +185,7 @@ void StorageThread::save(QWeakPointer<StorageJob> wcaller, const QVariantMap &pa
emit newResult(caller, true);
}
void StorageThread::retrieve(QWeakPointer<StorageJob> wcaller, const QVariantMap &params)
void StorageThread::retrieve(QWeakPointer<StorageJob> wcaller, const QVariantHash &params)
{
StorageJob *caller = wcaller.data();
if (!caller) {
@ -259,7 +259,7 @@ void StorageThread::retrieve(QWeakPointer<StorageJob> wcaller, const QVariantMap
emit newResult(caller, result);
}
void StorageThread::deleteEntry(QWeakPointer<StorageJob> wcaller, const QVariantMap &params)
void StorageThread::deleteEntry(QWeakPointer<StorageJob> wcaller, const QVariantHash &params)
{
StorageJob *caller = wcaller.data();
if (!caller) {
@ -289,7 +289,7 @@ void StorageThread::deleteEntry(QWeakPointer<StorageJob> wcaller, const QVariant
emit newResult(caller, success);
}
void StorageThread::expire(QWeakPointer<StorageJob> wcaller, const QVariantMap &params)
void StorageThread::expire(QWeakPointer<StorageJob> wcaller, const QVariantHash &params)
{
StorageJob *caller = wcaller.data();
if (!caller) {

View File

@ -42,10 +42,10 @@ public:
static Plasma::StorageThread *self();
public Q_SLOTS:
void save(QWeakPointer<StorageJob> caller, const QVariantMap &parameters);
void retrieve(QWeakPointer<StorageJob> caller, const QVariantMap &parameters);
void deleteEntry(QWeakPointer<StorageJob> caller, const QVariantMap &parameters);
void expire(QWeakPointer<StorageJob> caller, const QVariantMap &parameters);
void save(QWeakPointer<StorageJob> caller, const QVariantHash &parameters);
void retrieve(QWeakPointer<StorageJob> caller, const QVariantHash &parameters);
void deleteEntry(QWeakPointer<StorageJob> caller, const QVariantHash &parameters);
void expire(QWeakPointer<StorageJob> caller, const QVariantHash &parameters);
Q_SIGNALS:
void newResult(StorageJob* caller, const QVariant &result);