~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/rbackend/rcommand.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2008-04-20 21:30:00 UTC
  • mfrom: (1.2.2 upstream) (3.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080420213000-fs4i8efmfc793bnn
new upstream release
closes: #475175
closes: #463348
closes: #475982

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
                          rcommand.cpp  -  description
3
3
                             -------------------
4
4
    begin                : Mon Nov 11 2002
5
 
    copyright            : (C) 2002, 2006 by Thomas Friedrichsmeier
 
5
    copyright            : (C) 2002, 2006, 2007 by Thomas Friedrichsmeier
6
6
    email                : tfry@users.sourceforge.net
7
7
 ***************************************************************************/
8
8
 
18
18
#include "rcommand.h"
19
19
#include "rcommandreceiver.h"
20
20
#include "rinterface.h"
21
 
#include "../rkwatch.h"
 
21
#include "../windows/rkcommandlog.h"
22
22
 
23
23
#include "../debug.h"
24
24
#include "../rkglobals.h"
44
44
        RCommand::receivers = new RCommandReceiver* [MAX_RECEIVERS];
45
45
        num_receivers = 0;
46
46
        addReceiver (receiver);
47
 
        addReceiver (RKGlobals::rInterface ()->watch);
 
47
        addReceiver (RKCommandLog::getLog ());
48
48
}
49
49
 
50
50
RCommand::~RCommand(){
87
87
                RK_DO (qDebug ("Was not a receiver in RCommand::removeReceiver"), RBACKEND, DL_WARNING);
88
88
        }
89
89
 
90
 
        delete receivers;
 
90
        delete [] receivers;
91
91
        receivers = newlist;
92
92
        num_receivers = num_new_receivers;
93
93
}
113
113
        RK_TRACE (RBACKEND);
114
114
 
115
115
        QString ret;
116
 
        for (QValueList<ROutput*>::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
 
116
        for (ROutputList::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
117
117
                if ((*it)->type == ROutput::Error) {
118
118
                        ret.append ((*it)->output);
119
119
                }
125
125
        RK_TRACE (RBACKEND);
126
126
 
127
127
        QString ret;
128
 
        for (QValueList<ROutput*>::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
 
128
        for (ROutputList::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
129
129
                if ((*it)->type == ROutput::Output) {
130
130
                        ret.append ((*it)->output);
131
131
                }
137
137
        RK_TRACE (RBACKEND);
138
138
 
139
139
        QString ret;
140
 
        for (QValueList<ROutput*>::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
 
140
        for (ROutputList::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
141
141
                if ((*it)->type == ROutput::Warning) {
142
142
                        ret.append ((*it)->output);
143
143
                }
149
149
        RK_TRACE (RBACKEND);
150
150
 
151
151
        QString ret;
152
 
        for (QValueList<ROutput*>::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
 
152
        for (ROutputList::const_iterator it = output_list.begin (); it != output_list.end (); ++it) {
153
153
                ret.append ((*it)->output);
154
154
        }
155
155
        return ret;