allow for immediate syncs to be required

svn path=/trunk/KDE/kdelibs/; revision=898745
This commit is contained in:
Aaron J. Seigo 2008-12-18 22:12:49 +00:00
parent b8c4897535
commit c8621101c1
2 changed files with 14 additions and 0 deletions

View File

@ -248,6 +248,11 @@ void Corona::requestConfigSync()
}
}
void Corona::requireConfigSync()
{
d->syncConfig();
}
void Corona::initializeLayout(const QString &configName)
{
clearContainments();

View File

@ -190,6 +190,15 @@ public Q_SLOTS:
*/
void requestConfigSync();
/**
* Schedules a time sensitive flush-to-disk synchronization of the
* configuration state. Since this method does not provide any sort of
* event compression, it should only be used when an *immediate* disk
* sync is *absolutely* required. Otherwise, use @see requestConfigSync()
* which does do event compression.
*/
void requireConfigSync();
Q_SIGNALS:
/**
* This signal indicates a new containment has been added to