blob: 41c9ca92d2e4282d237705de7180e3d197249f74 (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*
* Copyright (c) 2007, Aconex. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* 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.
*/
#ifndef RECORDDIALOG_H
#define RECORDDIALOG_H
#include "ui_recorddialog.h"
#include <QtCore/QProcess>
#include <QtGui/QFileDialog>
#include <qmc_time.h>
class Tab;
class RecordDialog : public QDialog, public Ui::RecordDialog
{
Q_OBJECT
public:
RecordDialog(QWidget* parent);
virtual void init(Tab *tab);
virtual bool saveFolio(QString, QString);
virtual bool saveConfig(QString, QString);
virtual void startLoggers();
public slots:
virtual void deltaUnitsComboBox_activated(int);
virtual void selectedRadioButton_clicked();
virtual void allGadgetsRadioButton_clicked();
virtual void viewPushButton_clicked();
virtual void folioPushButton_clicked();
virtual void archivePushButton_clicked();
virtual void buttonOk_clicked();
protected slots:
virtual void languageChange();
private:
struct {
Tab *tab;
QString delta;
QmcTime::DeltaUnits units;
QString view;
QString folio;
QStringList hosts;
QStringList archives;
} my;
};
class PmLogger : public QProcess
{
Q_OBJECT
public:
PmLogger(QObject *parent);
void init(Tab *tab, QString host, QString log);
QString host() { return my.host; }
public slots:
void terminate();
void finished(int, QProcess::ExitStatus);
private:
struct {
Tab *tab;
QString host;
QString logfile;
bool terminating;
} my;
};
class RecordFileDialog : public QFileDialog, public Ui::RecordDialog
{
Q_OBJECT
public:
RecordFileDialog(QWidget* parent);
void setFileName(QString);
};
#endif // RECORDDIALOG_H
|