You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

// C++ Interface:
// Description:
// Author: Jean-Michel PETIT <>, (C) 2007
// Copyright: See COPYING file that comes with this distribution
#include "k9common.h"
#include "../libk9copy/processList.h"
#include "k9process.h"
#include <tqmap.h>
#include <tqtimer.h>
class k9ProcessList : public processList {
k9ProcessList(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
void execute();
void addProgress(const TQString &_text);
void setProgress (k9Process * _process,int _position, int _total);
void setText(k9Process *_process, const TQString &_text,int _col);
void setFileName(k9Process *_process,const TQString &_fileName);
void setPos(k9Process *_process,double _pos);
k9Process *addProcess(const TQString &label);
void setMaxProcess(int _value);
int getMaxProcess() const;
bool getCancel() const;
void clear();
bool getError() const;
public slots:
int m_maxProcess;
TQMap <k9Process*,TQListViewItem*> m_items;
TQPtrList <k9Process> m_processes;
TQTimer m_timer;
bool m_cancel;
bool m_error;
bool m_waitSync;
int getNbRunning();
void wait(int _msec);
protected slots:
void timeout();
virtual void bCancelClick();
virtual void processExited(TDEProcess *);