Changeset 3571

Show
Ignore:
Timestamp:
03/03/09 11:48:45 (13 months ago)
Author:
kris
Message:

Added kdirwatch to updater tray, now check for updates whenever a PBI gets removed, added, or updated, to ensure we stay in sync with other tools and whats currently on the system

Location:
pcbsd/trunk/SystemUpdaterTray
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/SystemUpdaterTray/SystemUpdaterTray.pro

    r3081 r3571  
    1414RESOURCES += SystemUpdaterTray.qrc 
    1515 
    16 INCLUDEPATH += /PCBSD/local/kde4/include 
     16INCLUDEPATH += /PCBSD/local/kde4/include /usr/local/kde4/include 
    1717 
    18 LIBS += -L/PCBSD/local/kde4/lib 
     18LIBS += -L/PCBSD/local/kde4/lib -L/usr/local/kde4/lib 
    1919 
    20 QMAKE_LIBDIR = /PCBSD/local/kde4/lib /PCBSD/local/lib/qt4 /PCBSD/local/lib 
     20QMAKE_LIBDIR = /PCBSD/local/kde4/lib /PCBSD/local/lib/qt4 /PCBSD/local/lib /usr/local/kde4/lib /usr/local/lib/qt4 /usr/local/lib 
    2121 
    2222TARGET  = SystemUpdaterTray 
  • pcbsd/trunk/SystemUpdaterTray/UpdaterTray.cpp

    r3115 r3571  
    109109  // Start the monitor service for system updates 
    110110  QTimer::singleShot(1000, this, SLOT(slotScheduledSystemCheck())); 
    111  
    112111  // Start the monitor service for PBI updates 
    113112  QTimer::singleShot(1000, this, SLOT(slotScheduledPBICheck())); 
     113 
     114   fileWatcher = KDirWatch::self(); 
     115   fileWatcher->addFile("/Programs/.config/ProgList"); 
     116 
     117   connect(fileWatcher, SIGNAL(dirty(const QString&)), this, SLOT(slotScheduledPBICheck() )); 
     118 
    114119   
    115120} 
     
    560565        return; 
    561566    } 
    562  
    563567 
    564568int i = -1; 
  • pcbsd/trunk/SystemUpdaterTray/UpdaterTray.h

    r3115 r3571  
    44#include <ksystemtrayicon.h> 
    55#include <kio/jobclasses.h> 
     6#include <kdirwatch.h> 
    67 
    78 
     
    4950   KJob *sysFetchJob; 
    5051   KIO::TransferJob *checkPBIJob; 
     52   KDirWatch *fileWatcher; 
    5153   QString sysPatchsetTmpFile; 
    5254   bool useCustomTmpDir;