[PC-BSD Commits] r3832 - in pcbsd: trunk/SystemUpdaterTray trunk-current/SystemUpdaterTray

svn at pcbsd.org svn at pcbsd.org
Tue Apr 21 10:14:22 PDT 2009


Author: kris
Date: 2009-04-21 10:14:22 -0700 (Tue, 21 Apr 2009)
New Revision: 3832

Modified:
   pcbsd/trunk-current/SystemUpdaterTray/UpdaterTray.cpp
   pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp
Log:

Added a watcher file, which we can trigger when updates have been performed, and have tray icon rescan for updates



Modified: pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp
===================================================================
--- pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp	2009-04-21 13:57:21 UTC (rev 3831)
+++ pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp	2009-04-21 17:14:22 UTC (rev 3832)
@@ -114,11 +114,17 @@
   // Start the monitor service for PBI updates
   QTimer::singleShot(1000, this, SLOT(slotScheduledPBICheck()));
 
+   // Watch our trigger file to see if the list of installed PBIs changes
    fileWatcher = KDirWatch::self();
    fileWatcher->addFile("/Programs/.config/ProgList");
 
    connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledPBICheck() ));
 
+   // Watch our trigger file, to see if any updates have been changed
+   fileWatcher = KDirWatch::self();
+   fileWatcher->addFile("/PCBSD/SystemUpdater/conf/.last-update");
+
+   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledSystemCheck() ));
   
 }
 

Modified: pcbsd/trunk-current/SystemUpdaterTray/UpdaterTray.cpp
===================================================================
--- pcbsd/trunk-current/SystemUpdaterTray/UpdaterTray.cpp	2009-04-21 13:57:21 UTC (rev 3831)
+++ pcbsd/trunk-current/SystemUpdaterTray/UpdaterTray.cpp	2009-04-21 17:14:22 UTC (rev 3832)
@@ -114,11 +114,17 @@
   // Start the monitor service for PBI updates
   QTimer::singleShot(1000, this, SLOT(slotScheduledPBICheck()));
 
+   // Watch our trigger file to see if the list of installed PBIs changes
    fileWatcher = KDirWatch::self();
    fileWatcher->addFile("/Programs/.config/ProgList");
 
    connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledPBICheck() ));
 
+   // Watch our trigger file, to see if any updates have been changed
+   fileWatcher = KDirWatch::self();
+   fileWatcher->addFile("/PCBSD/SystemUpdater/conf/.last-update");
+
+   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledSystemCheck() ));
   
 }
 



More information about the Commits mailing list