/*
 * CSVAccountReport.h - TaskJuggler
 *
 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@suse.de>
 *
 * 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: CSVAccountReport.cpp 635 2004-01-11 21:30:27Z cs $
 */

#include <qfile.h>

#include "CSVAccountReport.h"
#include "CSVAccountReportElement.h"

#define KW(a) a

CSVAccountReport::CSVAccountReport(Project* p, const QString& f, 
                                     const QString& df, int dl) :
    CSVReport(p, f, df, dl)
{
    tab = new CSVAccountReportElement(this, df, dl);
}

CSVAccountReport::~CSVAccountReport()
{
    delete tab;
}

bool
CSVAccountReport::generate()
{
    if (!open())
        return FALSE;

    generateHeader();
    tab->generate();
    generateFooter();

    f.close();
    return TRUE;
}

