Nepomuk-Core
Go to the documentation of this file.
25 #include <KLocalizedString>
26 #include <KTemporaryFile>
29 using namespace Nepomuk2;
33 setStatus( KStatusNotifierItem::Active );
34 setIconByName(
"nepomuk" );
35 setCategory( KStatusNotifierItem::SystemServices );
36 setTitle( i18n(
"Optimizing search database") );
37 setToolTip(
"nepomuk", i18n(
"Optimizing search database"), QString() );
39 m_storageService =
new StorageService( QLatin1String(
"org.kde.NepomukStorage"),
40 QLatin1String(
"/nepomukstorage"),
41 QDBusConnection::sessionBus(),
this);
42 connect( m_storageService, SIGNAL(migrateGraphsPercent(
int)),
this, SLOT(setPercent(
int)) );
43 connect( m_storageService, SIGNAL(migrateGraphsDone()),
this, SLOT(slotMigrationDone()) );
45 m_storageService->migrateGraphsByBackup();
52 void SysTray::setPercent(
int percent)
55 setToolTipSubTitle( i18n(
"In Progress") );
57 setToolTipSubTitle( i18n(
"Progress: %1%", percent ) );
60 void SysTray::slotMigrationDone()
62 QCoreApplication::instance()->quit();
SysTray(QObject *parent=0)
org::kde::nepomuk::Storage StorageService
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.