[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/kaudiocreator
From:       Benjamin Meyer <benjamin () csh ! rit ! edu>
Date:       2005-04-28 3:03:02
Message-ID: 20050428030302.215024AA () office ! kde ! org
[Download RAW message or body]

CVS commit by bmeyer: 

Add event when there are no more jobs left, thus allowing you to logoff when done
FEATURE:85192


  M +4 -0      eventsrc   1.53
  M +4 -0      jobqueimp.cpp   1.28


--- kdemultimedia/kaudiocreator/eventsrc  #1.52:1.53
@@ -9,4 +9,8 @@
 Comment[xx]=xxKAudioCreatorxx
 
+[no jobs left]
+Name=All jobs finshed
+Comment=All of the jobs in the que have been finished.
+
 [track ripped]
 Name=Track Ripped

--- kdemultimedia/kaudiocreator/jobqueimp.cpp  #1.27:1.28
@@ -35,4 +35,5 @@
 #include <qfileinfo.h>
 #include <kstandarddirs.h>
+#include <knotifyclient.h>
 #include <qdir.h>
 
@@ -103,4 +104,5 @@ void JobQueImp::addJob(Job*job, const QS
  */
 void JobQueImp::updateProgress(int id, int progress){
+        int currentJobCount = numberOfJobsNotFinished();
         QueListViewItem * currentItem = (QueListViewItem*)todoQue->firstChild();
         QString buffer = getStringFromNumber(id);
@@ -141,4 +143,6 @@ void JobQueImp::updateProgress(int id, i
                 currentItem->setPixmap(ICON_LOC, SmallIcon("button_ok", currentItem->height()));
         }
+        if(currentJobCount > 0 && numberOfJobsNotFinished() == 0) 
+                KNotifyClient::event("no jobs left");
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic