00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __MXCPC_AUTHENTICATIONDIALOG_H__
00021 #define __MXCPC_AUTHENTICATIONDIALOG_H__
00022
00023
00024
00025 #include <mxcpcDialog.h>
00026
00027
00028
00029 class QLabel;
00030 class QLineEdit;
00031
00032
00033
00034
00035
00036
00037
00038 class mxcpcAuthenticationDialog : public mxcpcDialog {
00039
00040 Q_OBJECT
00041
00042 private:
00043 QLabel *MessageLabel;
00044 QLineEdit *UserEdit, *PasswordEdit;
00045
00046 public:
00047 mxcpcAuthenticationDialog(QWidget *parent = 0);
00048
00049 signals:
00050
00051 void authenticationCommitted(QString user, QString password);
00052
00053 void authenticationCancelled(void);
00054
00055 public slots:
00056
00057 void setMessage(const QString& msg);
00058
00059 void openDialog(const QString& msg);
00060
00061 protected:
00062 void closeEvent(QCloseEvent *e);
00063
00064 private slots:
00065 void okClicked(void);
00066 void cancelClicked(void);
00067 };
00068
00069
00070
00071 #endif // __MXCPC_AUTHENTICATIONDIALOG_H__
00072