[rkward-cvs] rkward/rkward rkwatch.cpp, 1.44, 1.45 rkwatch.h, 1.20, 1.21

Thomas Friedrichsmeier tfry at users.sourceforge.net
Fri Sep 1 15:38:19 UTC 2006


Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8504

Modified Files:
	rkwatch.cpp rkwatch.h 
Log Message:
Allow commands to have more than one receiver (and the command log is just a receiver that will always be added). Will allow for improvements of RKCancelDialog and probably RKErrorDialog

Index: rkwatch.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rkwatch.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** rkwatch.cpp	5 May 2006 13:05:31 -0000	1.44
--- rkwatch.cpp	1 Sep 2006 15:38:17 -0000	1.45
***************
*** 126,130 ****
  }
  
! void RKwatch::addOutput (RCommand *command, ROutput *output_fragment) {
  	RK_TRACE (APP);
  
--- 126,130 ----
  }
  
! void RKwatch::newOutput (RCommand *command, ROutput *output_fragment) {
  	RK_TRACE (APP);
  

Index: rkwatch.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rkwatch.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** rkwatch.h	5 May 2006 13:05:31 -0000	1.20
--- rkwatch.h	1 Sep 2006 15:38:17 -0000	1.21
***************
*** 22,25 ****
--- 22,27 ----
  #include <kmdichildview.h>
  
+ #include "rbackend/rcommandreceiver.h"
+ 
  class RCommand;
  class ROutput;
***************
*** 34,38 ****
  */
  
! class RKwatch : public KMdiChildView {
  	Q_OBJECT
  public: 
--- 36,40 ----
  */
  
! class RKwatch : public KMdiChildView, public RCommandReceiver {
  	Q_OBJECT
  public: 
***************
*** 42,46 ****
  	void addInput (RCommand *command);
  /** Adds output to the watch-window (i.e. replies received) */
! 	void addOutput (RCommand *command, ROutput *output_fragment);
  /** Command has finished. If the command has failed, it may be neccessary to print some more information */
  	void commandDone (RCommand *command);
--- 44,48 ----
  	void addInput (RCommand *command);
  /** Adds output to the watch-window (i.e. replies received) */
! 	void newOutput (RCommand *command, ROutput *output_fragment);
  /** Command has finished. If the command has failed, it may be neccessary to print some more information */
  	void commandDone (RCommand *command);





More information about the rkward-tracker mailing list