Changeset 3832

Show
Ignore:
Timestamp:
04/21/09 10:14:22 (11 months ago)
Author:
kris
Message:

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

Location:
pcbsd
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk-current/SystemUpdaterTray/UpdaterTray.cpp

    r3736 r3832  
    115115  QTimer::singleShot(1000, this, SLOT(slotScheduledPBICheck())); 
    116116 
     117   // Watch our trigger file to see if the list of installed PBIs changes 
    117118   fileWatcher = KDirWatch::self(); 
    118119   fileWatcher->addFile("/Programs/.config/ProgList"); 
     
    120121   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledPBICheck() )); 
    121122 
     123   // Watch our trigger file, to see if any updates have been changed 
     124   fileWatcher = KDirWatch::self(); 
     125   fileWatcher->addFile("/PCBSD/SystemUpdater/conf/.last-update"); 
     126 
     127   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledSystemCheck() )); 
    122128   
    123129} 
  • pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp

    r3736 r3832  
    115115  QTimer::singleShot(1000, this, SLOT(slotScheduledPBICheck())); 
    116116 
     117   // Watch our trigger file to see if the list of installed PBIs changes 
    117118   fileWatcher = KDirWatch::self(); 
    118119   fileWatcher->addFile("/Programs/.config/ProgList"); 
     
    120121   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledPBICheck() )); 
    121122 
     123   // Watch our trigger file, to see if any updates have been changed 
     124   fileWatcher = KDirWatch::self(); 
     125   fileWatcher->addFile("/PCBSD/SystemUpdater/conf/.last-update"); 
     126 
     127   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledSystemCheck() )); 
    122128   
    123129}