00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Henri Lampela - henri.lampela@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 #ifndef LOGINDIALOG_H 00023 #define LOGINDIALOG_H 00024 00025 #include <QDialog> 00026 00027 class QDialogButtonBox; 00028 class QLabel; 00029 class QLineEdit; 00030 class QPushButton; 00031 00038 class LoginDialog : public QDialog 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 00049 LoginDialog(QWidget *parent = 0); 00050 00057 void userInput(QString &email, QString &password); 00058 00059 /******************************************************************************* 00060 * MEMBER FUNCTIONS AND SLOTS 00061 ******************************************************************************/ 00062 00063 public slots: 00064 00070 void setEmailField(const QString &email); 00071 00076 void clearTextFields(); 00077 00078 /******************************************************************************* 00079 * DATA MEMBERS 00080 ******************************************************************************/ 00081 00082 private: 00083 00084 QLineEdit *m_emailEdit; 00085 QLineEdit *m_passwordEdit; 00086 }; 00087 00088 #endif // LOGINDIALOG_H