00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __QUERYDLG_H__
00009 #define __QUERYDLG_H__
00010
00011 #include <tqdialog.h>
00012 #include <tqstringlist.h>
00013
00014 #include <kpassdlg.h>
00015
00016 #include "lockprocess.h"
00017
00018 class TQFrame;
00019 class TQGridLayout;
00020 class TQLabel;
00021 class KPushButton;
00022 class TQListView;
00023
00024
00025
00026
00027
00028
00029 class QueryDlg : public QDialog
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 QueryDlg(LockProcess *parent);
00035 ~QueryDlg();
00036 virtual void show();
00037
00038 void updateLabel( TQString &txt );
00039 void setUnlockIcon();
00040 void setWarningIcon();
00041 const char * getEntry();
00042
00043 private slots:
00044 void slotOK();
00045
00046 private:
00047 TQFrame *frame;
00048 TQGridLayout *frameLayout;
00049 TQLabel *mStatusLabel;
00050 TQLabel *mpixLabel;
00051 int mCapsLocked;
00052 bool mUnlockingFailed;
00053 TQStringList layoutsList;
00054 TQStringList::iterator currLayout;
00055 int sPid, sFd;
00056 KPushButton *ok;
00057 KPasswordEdit *pin_box;
00058 };
00059
00060 #endif
00061