kopete/libkopete
kopetetask.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "kopetetask.h"
00020
00021 #include <kdebug.h>
00022
00023 namespace Kopete
00024 {
00025
00026 class Task::Private
00027 {
00028 public:
00029 };
00030
00031 Task::Task(QObject *parent)
00032 : KCompositeJob(parent), d( new Private )
00033 {
00034 }
00035
00036 Task::~Task()
00037 {
00038 delete d;
00039 }
00040
00041 void Task::addSubTask(KJob *task)
00042 {
00043 addSubjob(task);
00044 }
00045
00046 void Task::start()
00047 {
00048 kDebug(14010) << "Executing children tasks for this task.";
00049 KJob *subTask = 0;
00050 foreach( subTask, subjobs() )
00051 {
00052 subTask->start();
00053 }
00054 }
00055
00056 }
00057
00058 #include "kopetetask.moc"