mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kupdatenotifier: minor review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
330c6c1ba4
commit
47534c7a67
2 changed files with 4 additions and 1 deletions
|
@ -204,6 +204,7 @@ void KUpdateNotifier::slotRestartSchedule()
|
|||
void KUpdateNotifier::slotPackage(const uint info, const QString &package_id, const QString &summary)
|
||||
{
|
||||
// qDebug() << Q_FUNC_INFO << info << package_id << summary;
|
||||
|
||||
KPackageKitPackage package;
|
||||
package.info = info;
|
||||
package.package_id = package_id;
|
||||
|
@ -219,5 +220,6 @@ void KUpdateNotifier::slotErrorCode(const uint code, const QString &details)
|
|||
void KUpdateNotifier::slotFinished(const uint exit, const uint runtime)
|
||||
{
|
||||
// qDebug() << Q_FUNC_INFO << exit << runtime;
|
||||
|
||||
m_finished = true;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class KUpdateNotifier : public KStatusNotifierItem
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
// UpdatesChanged() can be emited multiple times from single cache refresh
|
||||
// UpdatesChanged() can be emited multiple times after single cache refresh
|
||||
// so tracking the state manually
|
||||
enum UpdateNotifierState {
|
||||
PassiveState = 0,
|
||||
|
@ -61,6 +61,7 @@ private Q_SLOTS:
|
|||
void slotPackage(const uint info, const QString &package_id, const QString &summary);
|
||||
void slotErrorCode(const uint code, const QString &details);
|
||||
void slotFinished(const uint exit, const uint runtime);
|
||||
|
||||
private:
|
||||
void refreshCache();
|
||||
QStringList getUpdates();
|
||||
|
|
Loading…
Add table
Reference in a new issue