• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
  • tasks
kopetetask.cpp
Go to the documentation of this file.
1 /*
2  kopetetask.cpp - Kopete Task
3 
4  Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
5  Copyright (c) 2007 by MichaĆ«l Larouche <larouche@kde.org>
6 
7  Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2 of the License, or (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #include "kopetetask.h"
20 
21 #include <kdebug.h>
22 
23 namespace Kopete
24 {
25 
26 class Task::Private
27 {
28 public:
29 };
30 
31 Task::Task(QObject *parent)
32  : KCompositeJob(parent), d( new Private )
33 {
34 }
35 
36 Task::~Task()
37 {
38  delete d;
39 }
40 
41 void Task::addSubTask(KJob *task)
42 {
43  addSubjob(task);
44 }
45 
46 void Task::start()
47 {
48  kDebug(14010) << "Executing children tasks for this task.";
49  KJob *subTask = 0;
50  foreach( subTask, subjobs() )
51  {
52  subTask->start();
53  }
54 }
55 
56 }
57 
58 #include "kopetetask.moc"
Kopete::Task::~Task
virtual ~Task()
Destructor.
Definition: kopetetask.cpp:36
kopetetask.h
Kopete::Task::Task
Task(QObject *parent=0)
Create a new task.
Definition: kopetetask.cpp:31
Kopete::Task::start
virtual void start()
Execute the task.
Definition: kopetetask.cpp:46
QObject
Kopete::Task::addSubTask
void addSubTask(KJob *task)
Add a new sub task.
Definition: kopetetask.cpp:41
KCompositeJob
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal