~ubuntu-branches/ubuntu/karmic/rkward/karmic

« back to all changes in this revision

Viewing changes to rkward/rbackend/rinterface.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2006-11-06 16:30:00 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 feisty)
  • Revision ID: james.westby@ubuntu.com-20061106163000-qi8ju75eqecrfay7
* new upstream release
* depend on either php4-cli or php5-cli

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <qobject.h>
22
22
#include <qmutex.h>
23
23
 
24
 
#include "rthread.h"
 
24
#include "rcommand.h"
25
25
 
26
26
//#define DEBUG_MUTEX
27
27
#ifdef DEBUG_MUTEX
37
37
class RKwardApp;
38
38
struct RCallbackArgs;
39
39
class QTimer;
 
40
class RThread;
 
41
class RCommandReceiver;
 
42
struct REvalRequest;
40
43
 
41
44
/** This class provides the main interface to the R-processor.
42
45
 
82
85
#endif
83
86
 
84
87
/** returns the command currently running in the thread. Be careful when using the returned pointer! */
85
 
        RCommand *runningCommand () { return r_thread->current_command; };
 
88
        RCommand *runningCommand ();
86
89
public slots:
87
90
/** called periodically to flush output buffer in RThread */
88
91
        void flushOutput ();
100
103
/** See \ref RThread::doStandardCallback (). Does the actual job. */
101
104
        void processRCallbackRequest (RCallbackArgs *args);
102
105
friend class RKwardApp;
 
106
friend class RCommand;
103
107
/** pointer to the RKwatch. TODO: (re-)move this pointer */
104
108
        RKwatch *watch;
 
109
/** Used (once!) to start the RThread. Need to make this separate to avoid race conditions */
 
110
        void startThread ();
105
111
protected:
106
112
/** needed to handle the QCustomEvent s, the RThread is sending (notifications on what's happening in the backend thread) */
107
113
        void customEvent (QCustomEvent *e);