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:
parent
00b0cc8085
commit
f8d94a98b8
@ -83,7 +83,7 @@ void StorageThread::initializeDb(StorageJob *caller)
|
|||||||
m_db.transaction();
|
m_db.transaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StorageThread::save(QWeakPointer<StorageJob> wcaller, const QVariantMap ¶ms)
|
void StorageThread::save(QWeakPointer<StorageJob> wcaller, const QVariantHash ¶ms)
|
||||||
{
|
{
|
||||||
StorageJob *caller = wcaller.data();
|
StorageJob *caller = wcaller.data();
|
||||||
if (!caller) {
|
if (!caller) {
|
||||||
@ -185,7 +185,7 @@ void StorageThread::save(QWeakPointer<StorageJob> wcaller, const QVariantMap &pa
|
|||||||
emit newResult(caller, true);
|
emit newResult(caller, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StorageThread::retrieve(QWeakPointer<StorageJob> wcaller, const QVariantMap ¶ms)
|
void StorageThread::retrieve(QWeakPointer<StorageJob> wcaller, const QVariantHash ¶ms)
|
||||||
{
|
{
|
||||||
StorageJob *caller = wcaller.data();
|
StorageJob *caller = wcaller.data();
|
||||||
if (!caller) {
|
if (!caller) {
|
||||||
@ -259,7 +259,7 @@ void StorageThread::retrieve(QWeakPointer<StorageJob> wcaller, const QVariantMap
|
|||||||
emit newResult(caller, result);
|
emit newResult(caller, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StorageThread::deleteEntry(QWeakPointer<StorageJob> wcaller, const QVariantMap ¶ms)
|
void StorageThread::deleteEntry(QWeakPointer<StorageJob> wcaller, const QVariantHash ¶ms)
|
||||||
{
|
{
|
||||||
StorageJob *caller = wcaller.data();
|
StorageJob *caller = wcaller.data();
|
||||||
if (!caller) {
|
if (!caller) {
|
||||||
@ -289,7 +289,7 @@ void StorageThread::deleteEntry(QWeakPointer<StorageJob> wcaller, const QVariant
|
|||||||
emit newResult(caller, success);
|
emit newResult(caller, success);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StorageThread::expire(QWeakPointer<StorageJob> wcaller, const QVariantMap ¶ms)
|
void StorageThread::expire(QWeakPointer<StorageJob> wcaller, const QVariantHash ¶ms)
|
||||||
{
|
{
|
||||||
StorageJob *caller = wcaller.data();
|
StorageJob *caller = wcaller.data();
|
||||||
if (!caller) {
|
if (!caller) {
|
||||||
|
@ -42,10 +42,10 @@ public:
|
|||||||
static Plasma::StorageThread *self();
|
static Plasma::StorageThread *self();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void save(QWeakPointer<StorageJob> caller, const QVariantMap ¶meters);
|
void save(QWeakPointer<StorageJob> caller, const QVariantHash ¶meters);
|
||||||
void retrieve(QWeakPointer<StorageJob> caller, const QVariantMap ¶meters);
|
void retrieve(QWeakPointer<StorageJob> caller, const QVariantHash ¶meters);
|
||||||
void deleteEntry(QWeakPointer<StorageJob> caller, const QVariantMap ¶meters);
|
void deleteEntry(QWeakPointer<StorageJob> caller, const QVariantHash ¶meters);
|
||||||
void expire(QWeakPointer<StorageJob> caller, const QVariantMap ¶meters);
|
void expire(QWeakPointer<StorageJob> caller, const QVariantHash ¶meters);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void newResult(StorageJob* caller, const QVariant &result);
|
void newResult(StorageJob* caller, const QVariant &result);
|
||||||
|
Loading…
Reference in New Issue
Block a user