~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to ktimetracker/taskview.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef KTIMETRACKER_TASK_VIEW
24
24
#define KTIMETRACKER_TASK_VIEW
25
25
 
 
26
 
26
27
#include <QList>
27
28
#include <QTreeWidget>
28
29
 
29
 
#include <kcal/resourcecalendar.h>
30
 
 
31
30
#include "desktoplist.h"
32
31
#include "timetrackerstorage.h"
33
32
#include "reportcriteria.h"
44
43
class timetrackerstorage;
45
44
class HistoryEvent;
46
45
 
47
 
using namespace KCal;
48
 
 
49
46
/**
50
47
 * Container and interface for the tasks.
51
48
 */
123
120
    /** Stop the timer for the current item in the view.  */
124
121
    void stopCurrentTimer();
125
122
 
126
 
    /** Stop all running timers.  
 
123
    /** Stop all running timers.
127
124
     *  @param when When the timer stopped - this makes sense if the idletime-
128
125
     *              detector detects the user stopped working 5 minutes ago.
129
126
     */
136
133
    /** Calls newTask dialog with caption "New Task".  */
137
134
    void newTask();
138
135
 
139
 
    /** Display edit task dialog and create a new task with results. 
 
136
    /** Display edit task dialog and create a new task with results.
140
137
     *  @param caption Window title of the edit task dialog
141
138
     */
142
139
    void newTask( const QString &caption, Task* parent );
176
173
    /**
177
174
     * Deletes the given or the current task (and children) from the view.
178
175
     * It does this in batch mode, no user dialog.
179
 
     * @param task Task to be deleted. If empty, the current task is deleted. 
 
176
     * @param task Task to be deleted. If empty, the current task is deleted.
180
177
     *             if non-existent, an error message is displayed.
181
178
     */
182
179
    void deleteTaskBatch( Task* task=0 );
184
181
    /**
185
182
     * Deletes the given or the current task (and children) from the view.
186
183
     * Depending on configuration, there may be a user dialog.
187
 
     * @param task Task to be deleted. If empty, the current task is deleted. 
 
184
     * @param task Task to be deleted. If empty, the current task is deleted.
188
185
     *             if non-existent, an error message is displayed.
189
186
     */
190
187
    void deleteTask( Task* task=0 );
206
203
     * @param task      task to start timer of
207
204
     * @param startTime if taskview has been modified by another program, we
208
205
                            have to set the starting time to not-now. */
209
 
    void startTimerFor( Task* task, 
 
206
    void startTimerFor( Task* task,
210
207
                        const QDateTime &startTime = QDateTime::currentDateTime() );
211
208
    void stopTimerFor( Task* task );
212
209
 
269
266
    /** item state stores if a task is expanded so you can see the subtasks */
270
267
    void itemStateChanged( QTreeWidgetItem *item );
271
268
 
272
 
    /** React on another process having modified the iCal file we rely on. 
273
 
       This is not iCalFileChanged. */
274
 
    void iCalFileModified(ResourceCalendar *);
 
269
    /** React on another process having modified the iCal file we rely on.
 
270
        This is not iCalFileChanged. */
 
271
    void iCalFileModified();
275
272
    void slotItemDoubleClicked( QTreeWidgetItem *item, int );
276
273
 
277
274
    /** React on the focus having changed to Window QString **/