Rivendellaudio/rdlogedit/list_reports.h
Fred Gleason 36b8e0020e 2019-10-04 Fred Gleason <fredg@paravelsystems.com>
* Refactored rdlogedit(1) to use the 'RDDialog' and 'RDWidget'
	base classes.
2019-10-04 16:30:27 -04:00

64 lines
1.7 KiB
C++

// list_reports.h
//
// List and Generate Log Reports
//
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef LIST_REPORTS_H
#define LIST_REPORTS_H
#include <q3datetimeedit.h>
#include <qcombobox.h>
#include <rddialog.h>
#include <rdlog.h>
class ListReports : public RDDialog
{
Q_OBJECT
public:
ListReports(const QString &logname,const QString &description,
const QString service_name,const QDate &start_date,
const QDate &end_date,bool auto_refresh,RDLogEvent *events,
QWidget *parent=0);
~ListReports();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void selectDateData();
void generateData();
void closeData();
private:
void GenerateLogReport(QString *report);
void GenerateExceptionReport(QString *report,const QDate &date);
QComboBox *list_reports_box;
QString list_log_name;
QString list_description;
QString list_service_name;
QDate list_start_date;
QDate list_end_date;
bool list_auto_refresh;
RDLogEvent *list_events;
Q3DateEdit *list_date_edit;
};
#endif // LIST_REPORTS_H