SVN_SILENT made messages (.desktop file)
[kdeadmin.git] / kcron / src / taskWidget.h
blob390c4be2dd17f963ad2636b28b39d5f9244f5cdf
1 /***************************************************************************
2 * KT list view item task header. *
3 * -------------------------------------------------------------------- *
4 * Copyright (C) 1999, Gary Meyer <gary@meyer.net> *
5 * -------------------------------------------------------------------- *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 ***************************************************************************/
12 #ifndef TASK_WIDGET_H
13 #define TASK_WIDGET_H
15 #include <QTreeWidgetItem>
17 class CTTask;
18 class TasksWidget;
20 /**
21 * QTreeWidgetItem with a CTTask.
23 class TaskWidget : public QTreeWidgetItem {
24 public:
26 /**
27 * Initialize the list view item and task.
29 TaskWidget(TasksWidget* tasksWidget, CTTask* _cttask);
32 * Change the status of this task
34 void toggleEnable();
36 /**
37 * Get the task.
39 CTTask* getCTTask() const;
41 /**
42 * Refresh from underlying task.
44 void refresh();
46 private:
48 /**
49 * Task.
51 CTTask* ctTask;
53 TasksWidget* tasksWidget;
56 #endif // TASK_WIDGET_H