QTfrontend/ui/page/pageadmin.h
changeset 8157 695f1eef72c8
parent 6952 7f70f37bbf08
child 9080 9b42757d7e71
equal deleted inserted replaced
8156:3ccc61102b58 8157:695f1eef72c8
    19 #ifndef PAGE_ADMIN_H
    19 #ifndef PAGE_ADMIN_H
    20 #define PAGE_ADMIN_H
    20 #define PAGE_ADMIN_H
    21 
    21 
    22 #include "AbstractPage.h"
    22 #include "AbstractPage.h"
    23 
    23 
       
    24 class QTableWidget;
       
    25 
    24 class PageAdmin : public AbstractPage
    26 class PageAdmin : public AbstractPage
    25 {
    27 {
    26         Q_OBJECT
    28         Q_OBJECT
    27 
    29 
    28     public:
    30     public:
    30 
    32 
    31     public slots:
    33     public slots:
    32         void serverMessageNew(const QString & str);
    34         void serverMessageNew(const QString & str);
    33         void serverMessageOld(const QString & str);
    35         void serverMessageOld(const QString & str);
    34         void protocol(int proto);
    36         void protocol(int proto);
       
    37         void setBansList(const QStringList & bans);
    35 
    38 
    36     signals:
    39     signals:
    37         void setServerMessageNew(const QString & str);
    40         void setServerMessageNew(const QString & str);
    38         void setServerMessageOld(const QString & str);
    41         void setServerMessageOld(const QString & str);
    39         void setProtocol(int proto);
    42         void setProtocol(int proto);
    40         void askServerVars();
    43         void askServerVars();
    41         void clearAccountsCache();
    44         void clearAccountsCache();
       
    45         void bansListRequest();
       
    46         void removeBan(const QString &);
       
    47         void banIP(const QString & ip, const QString & reason, int seconds);
       
    48         void banNick(const QString & nick, const QString & reason, int seconds);
    42 
    49 
    43     protected:
    50     protected:
    44         QLayout * bodyLayoutDefinition();
    51         QLayout * bodyLayoutDefinition();
    45         void connectSignals();
    52         void connectSignals();
    46 
    53 
    50         QPushButton * pbSetSM;
    57         QPushButton * pbSetSM;
    51         QPushButton * pbAsk;
    58         QPushButton * pbAsk;
    52         QSpinBox * sbProtocol;
    59         QSpinBox * sbProtocol;
    53         QTextBrowser * tb;
    60         QTextBrowser * tb;
    54         QPushButton * pbClearAccountsCache;
    61         QPushButton * pbClearAccountsCache;
       
    62         QTableWidget * twBans;
    55 
    63 
    56     private slots:
    64     private slots:
    57         void smChanged();
    65         void smChanged();
       
    66         void onAddClicked();
       
    67         void onRemoveClicked();
       
    68         void onRefreshClicked();
    58 };
    69 };
    59 
    70 
    60 #endif
    71 #endif