summaryrefslogtreecommitdiffstats
path: root/pica-client/askpassword.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2015-03-13 03:45:11 +0400
committerAnton <anton@picapica>2015-03-13 03:45:11 +0400
commita3b23291f5c50b423faa4d3c3ae88889be02d6cb (patch)
treef4ba6e7a6cfbeafd3ccd5cb2efb8a4a4f0a5cb2b /pica-client/askpassword.h
parent94587f893a83cf505d655169b6b45b24345a8aa9 (diff)
downloadpica-pica-a3b23291f5c50b423faa4d3c3ae88889be02d6cb.tar.gz
pica-pica-a3b23291f5c50b423faa4d3c3ae88889be02d6cb.zip
updated client library calls in pica-client and fixed password asking dialog behaviour, now invalid password error is detected and asked again, cancel button is handled
Diffstat (limited to 'pica-client/askpassword.h')
-rw-r--r--pica-client/askpassword.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/pica-client/askpassword.h b/pica-client/askpassword.h
index 6abc009..9deb691 100644
--- a/pica-client/askpassword.h
+++ b/pica-client/askpassword.h
@@ -10,12 +10,18 @@ class AskPassword : public QObject
Q_OBJECT
public:
explicit AskPassword(QObject *parent = 0);
+ ~AskPassword();
static int ask_password_cb(char *buf, int size, int rwflag, void *userdata);
+ static void setInvalidPassword();
+ static void clear();
private:
void emit_sig();
- static QMap<QByteArray,QString> idpasswd;
static QMutex passwd_mutex;
+ static char current_password[256];
+ static int is_cancelled;
+ static int is_invalid;
+ static int is_set;
signals:
void password_requested();