QTfrontend/ui/dialog/bandialog.h
author nemo
Wed, 02 Jan 2019 11:06:34 -0500 (2019-01-02)
changeset 14515 bcb418530a1c
parent 8330 aaefa587e277
permissions -rw-r--r--
remove Wuzzy's val checking, add a FIXME to add that to the C implementation
#ifndef BANDIALOG_H
#define BANDIALOG_H

#include <QDialog>

class QComboBox;
class QRadioButton;
class QLineEdit;

class BanDialog : public QDialog
{
    Q_OBJECT
public:
    explicit BanDialog(QWidget *parent = 0);

    bool byIP();
    int duration();
    QString banId();
    QString reason();

private:
    QRadioButton * rbIP;
    QRadioButton * rbNick;
    QLineEdit * leId;
    QLineEdit * leReason;
    QComboBox * cbTime;

private slots:
    void okClicked();
};

#endif // BANDIALOG_H