Add an (untested) connection widget for connections
This commit is contained in:
parent
8b9e31d8e4
commit
46dd3d9688
2 changed files with 192 additions and 7 deletions
|
@ -28,8 +28,16 @@
|
|||
|
||||
#include <KUrl>
|
||||
|
||||
namespace KWallet {
|
||||
class Wallet;
|
||||
}
|
||||
|
||||
namespace Danbooru {
|
||||
|
||||
class DanbooruService;
|
||||
|
||||
const QMap< KUrl, QString > initBoardSalts();
|
||||
|
||||
class DanbooruConnectWidget: public QWidget, public Ui::DanbooruConnectWidget {
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -40,19 +48,26 @@ namespace Danbooru {
|
|||
|
||||
QString username() const;
|
||||
QString password() const;
|
||||
KUrl boardUrl() const;
|
||||
|
||||
private:
|
||||
KUrl m_Boardurl;
|
||||
KUrl m_boardUrl;
|
||||
QString m_username;
|
||||
QString m_password;
|
||||
KWallet::Wallet* m_wallet;
|
||||
static const QMap<KUrl, QString> boardSalts;
|
||||
|
||||
Q_SIGNALS:
|
||||
void connectionEstablished();
|
||||
void connectionEstablished(DanbooruService* service);
|
||||
void rejected();
|
||||
|
||||
|
||||
|
||||
private Q_SLOTS:
|
||||
void checkWallet(bool);
|
||||
void getWalletData();
|
||||
void toggleLineEdits(int state);
|
||||
void emitRejected();
|
||||
void accept();
|
||||
};
|
||||
|
||||
|
||||
} // namespace Danbooru
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue