make this a private slot
svn path=/trunk/KDE/kdelibs/; revision=1159724
This commit is contained in:
parent
114c5373f3
commit
11c5c88c68
@ -228,12 +228,12 @@ void DataContainer::store()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DataContainer::storeJobFinished(KJob* job)
|
void DataContainerPrivate::storeJobFinished(KJob* )
|
||||||
{
|
{
|
||||||
d->storeCount--;
|
--storeCount;
|
||||||
if (d->storeCount == 0) {
|
if (storeCount < 1) {
|
||||||
d->store->deleteLater();
|
store->deleteLater();
|
||||||
d->store = 0;
|
store = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,15 +259,11 @@ class PLASMA_EXPORT DataContainer : public QObject
|
|||||||
*/
|
*/
|
||||||
void populateFromStoredData(KJob *job);
|
void populateFromStoredData(KJob *job);
|
||||||
|
|
||||||
/**
|
|
||||||
* Deletes the store member of DataContainerPrivate if
|
|
||||||
* there are no more references to it.
|
|
||||||
*/
|
|
||||||
void storeJobFinished(KJob *job);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class SignalRelay;
|
friend class SignalRelay;
|
||||||
DataContainerPrivate *const d;
|
DataContainerPrivate *const d;
|
||||||
|
|
||||||
|
Q_PRIVATE_SLOT(d, void storeJobFinished(KJob *job))
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Plasma namespace
|
} // Plasma namespace
|
||||||
|
@ -34,10 +34,10 @@ class DataContainerPrivate
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DataContainerPrivate()
|
DataContainerPrivate()
|
||||||
: dirty(false),
|
: store(NULL),
|
||||||
|
dirty(false),
|
||||||
cached(false),
|
cached(false),
|
||||||
enableStorage(false),
|
enableStorage(false),
|
||||||
store(NULL),
|
|
||||||
isStored(true),
|
isStored(true),
|
||||||
storeCount(0)
|
storeCount(0)
|
||||||
{}
|
{}
|
||||||
@ -49,6 +49,13 @@ public:
|
|||||||
bool hasUpdates();
|
bool hasUpdates();
|
||||||
void populateFromStoredData(KJob *job);
|
void populateFromStoredData(KJob *job);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deletes the store member of DataContainerPrivate if
|
||||||
|
* there are no more references to it.
|
||||||
|
*/
|
||||||
|
void storeJobFinished(KJob *job);
|
||||||
|
|
||||||
|
|
||||||
DataEngine::Data data;
|
DataEngine::Data data;
|
||||||
QMap<QObject *, SignalRelay *> relayObjects;
|
QMap<QObject *, SignalRelay *> relayObjects;
|
||||||
QMap<uint, SignalRelay *> relays;
|
QMap<uint, SignalRelay *> relays;
|
||||||
|
Loading…
Reference in New Issue
Block a user