47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
|
//=============================================================================
|
||
|
// MuseScore
|
||
|
// Music Composition & Notation
|
||
|
//
|
||
|
// Copyright (C) 2014 Werner Schweer
|
||
|
//
|
||
|
// This program is free software; you can redistribute it and/or modify
|
||
|
// it under the terms of the GNU General Public License version 2
|
||
|
// as published by the Free Software Foundation and appearing in
|
||
|
// the file LICENCE.GPL
|
||
|
//=============================================================================
|
||
|
|
||
|
#ifndef __LOGINDIALOG_H__
|
||
|
#define __LOGINDIALOG_H__
|
||
|
|
||
|
#include "ui_logindialog.h"
|
||
|
#include "loginmanager.h"
|
||
|
|
||
|
namespace Ms {
|
||
|
|
||
|
//---------------------------------------------------------
|
||
|
// LoginDialog
|
||
|
//---------------------------------------------------------
|
||
|
|
||
|
class LoginDialog : public QDialog, public Ui::LoginDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
LoginManager* _loginManager;
|
||
|
|
||
|
signals:
|
||
|
void loginSuccessful();
|
||
|
|
||
|
private slots:
|
||
|
void buttonBoxClicked(QAbstractButton* button);
|
||
|
void onLoginSuccess();
|
||
|
void onLoginError(const QString& error);
|
||
|
void login();
|
||
|
|
||
|
public:
|
||
|
LoginDialog(LoginManager* loginManager);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|