From kde-commits Tue Oct 26 15:16:27 2004 From: Christian Loose Date: Tue, 26 Oct 2004 15:16:27 +0000 To: kde-commits Subject: kdesdk/cervisia Message-Id: <20041026151627.4954416CD3 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109880520900909 CVS commit by cloose: Implemented wish #78696: Added possibility to get a notification, when a cvs commit job has finished. FEATURE: 78696 A eventsrc 1.1 M +6 -0 ChangeLog 1.143 M +1 -1 Makefile.am 1.62 M +11 -0 cervisiapart.cpp 1.157 M +3 -0 cervisiapart.h 1.34 --- kdesdk/cervisia/cervisiapart.cpp #1.156:1.157 @@ -26,4 +26,5 @@ #include #include +#include #include #include @@ -93,4 +94,5 @@ CervisiaPart::CervisiaPart( QWidget *par , m_editWithId(0) , m_currentEditMenu(0) + , m_jobType(Unknown) { KGlobal::locale()->insertCatalogue("cervisia"); @@ -938,4 +940,5 @@ void CervisiaPart::slotCommit() if( protocol->startJob() ) { + m_jobType = Commit; showJobStart(cmdline); connect( protocol, SIGNAL(jobFinished(bool, int)), update, SLOT(finishJob(bool, int)) ); @@ -1620,4 +1623,12 @@ void CervisiaPart::slotJobFinished() disconnect( protocol, SIGNAL(receivedLine(QString)), update, SLOT(processUpdateLine(QString)) ); + + if( m_jobType == Commit ) + { + KNotifyClient::event(widget()->parentWidget()->winId(), "cvs_commit_done", + i18n("A CVS commit to repository %1 is done") + .arg(repository)); + m_jobType = Unknown; + } } --- kdesdk/cervisia/cervisiapart.h #1.33:1.34 @@ -153,4 +153,6 @@ protected: private: + enum JobType { Unknown, Commit }; + void setupActions(); @@ -191,4 +193,5 @@ private: int m_editWithId; Cervisia::EditWithMenu* m_currentEditMenu; + JobType m_jobType; }; --- kdesdk/cervisia/ChangeLog #1.142:1.143 @@ -1,2 +1,8 @@ +2004-10-26 Christian Loose + + * Implemented wish #78696: + Added possibility to get a notification, when a cvs commit job + has finished. + 2004-10-14 André Wöbbeking --- kdesdk/cervisia/Makefile.am #1.61:1.62 @@ -49,5 +49,5 @@ shellrcdir = $(kde_datadir)/cervisia -shellrc_DATA = cervisiashellui.rc +shellrc_DATA = cervisiashellui.rc eventsrc update_DATA = cervisia.upd