File: ManagedReportInfo.h

package info (click to toggle)
taskjuggler 2.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,156 kB
  • ctags: 3,713
  • sloc: cpp: 37,683; sh: 13,617; xml: 6,021; perl: 5,207; lisp: 538; makefile: 283; python: 258
file content (56 lines) | stat: -rw-r--r-- 1,249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * The TaskJuggler Project Management Software
 *
 * Copyright (c) 2001, 2002, 2003, 2004, 2005 by Chris Schlaeger <cs@kde.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * $Id$
 */

#ifndef _ManagedReportInfo_h_
#define _ManagedReportInfo_h_

#include <qstring.h>

class KListViewItem;
class ReportManager;
class TjUIReportBase;
class Report;

class ManagedReportInfo
{
public:
    ManagedReportInfo(ReportManager* rm, Report* const r);
    ~ManagedReportInfo();

    Report* getProjectReport() const { return projectReport; }

    const QString& getName() const;

    void setBrowserEntry(KListViewItem* lvi) { browserEntry = lvi; }
    KListViewItem* getBrowserEntry() const { return browserEntry; }

    void setReport(TjUIReportBase* r) { report = r; }
    TjUIReportBase* getReport() const { return report; }

    void setLoadingProject(bool lp);

    void print();

private:
    ManagedReportInfo() : projectReport(0) { }

    ReportManager* manager;
    Report* const projectReport;

    KListViewItem* browserEntry;
    TjUIReportBase* report;

    bool loadingProject;
} ;

#endif