QTfrontend/ui/dialog/bandialog.h
author unc0rr
Tue, 18 Nov 2014 00:32:39 +0300
changeset 10511 c33b2f001730
parent 8330 aaefa587e277
permissions -rw-r--r--
This should work, can't test: room flags passed in room info message instead of just 'in-game' state, including 'in-game', 'restricted joins', 'registered only' and 'passworded' flags

#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