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.
 
 
 

88 lines
1.1 KiB

// KMIOStatus: base class impl. to show transmission state
// Author: Markus Wuebben <markus.wuebben@kde.org>
// This code is published under the GPL.
#include <iostream.h>
#include "kmnewiostatus.h"
#include "kmnewiostatus.moc"
KMIOStatus::KMIOStatus(QWidget *parent, const char *name)
:QWidget(parent, name) {
initMetaObject();
}
void KMIOStatus::setHost(QString host) {
_host = host;
update();
}
QString KMIOStatus::host() {
return _host;
}
void KMIOStatus::setTask(task type) {
_task = type;
update(); // new task new text. Specified in update()
}
// Reimplement for your impl.
void KMIOStatus::update() {
}
void KMIOStatus::newMail(bool _newMail) {
}
KMIOStatus::task KMIOStatus::Task() {
return _task;
}
void KMIOStatus::transmissionCompleted() {
}
KMIOStatus::~KMIOStatus() {
}
void KMIOStatus::updateProgressBar(int,int) {
}
bool KMIOStatus::abortRequested() {
return abortPressedBool;
}
void KMIOStatus::abortPressed() {
cout << "Abort requested...\n";
abortPressedBool = true;
emit abort();
}