summaryrefslogtreecommitdiffstats
path: root/pica-client/askpassword.h
blob: 6abc009e29112e02c2510c40c57f2e5ec3e98d04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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<QByteArray,QString> idpasswd;
    static QMutex passwd_mutex;

signals:
    void password_requested();

public slots:
    void password_dialog();
};

#endif // ASKPASSWORD_H