summaryrefslogtreecommitdiffstats
path: root/pica-client/askpassword.h
diff options
context:
space:
mode:
Diffstat (limited to 'pica-client/askpassword.h')
-rw-r--r--pica-client/askpassword.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/pica-client/askpassword.h b/pica-client/askpassword.h
new file mode 100644
index 0000000..c841693
--- /dev/null
+++ b/pica-client/askpassword.h
@@ -0,0 +1,27 @@
+#ifndef ASKPASSWORD_H
+#define ASKPASSWORD_H
+
+#include <QObject>
+#include <QMap>
+#include <QMutex>
+
+class AskPassword : public QObject
+{
+ Q_OBJECT
+public:
+ explicit AskPassword(QObject *parent = 0);
+ static int ask_password_cb(char *buf, int size, int rwflag, void *userdata);
+
+private:
+ void emit_sig();
+ static QMap<quint32,QString> idpasswd;
+ static QMutex passwd_mutex;
+
+signals:
+ void password_requested();
+
+public slots:
+ void password_dialog();
+};
+
+#endif // ASKPASSWORD_H