[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesdk/cervisia
From: Christian Loose <christian.loose () hamburg ! de>
Date: 2004-10-26 15:16:27
Message-ID: 20041026151627.4954416CD3 () office ! kde ! org
[Download RAW message or body]
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 <kinstance.h>
#include <klocale.h>
+#include <knotifyclient.h>
#include <kprocess.h>
#include <kpropertiesdialog.h>
@@ -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 <christian.loose@kdemail.net>
+
+ * Implemented wish #78696:
+ Added possibility to get a notification, when a cvs commit job
+ has finished.
+
2004-10-14 André Wöbbeking <Woebbeking@web.de>
--- 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic