Logo Search packages:      
Sourcecode: lemonpos version File versions

LoginWindow Class Reference

#include <loginwindow.h>

List of all members.

Detailed Description

A Login Window.

This class is for asking login and password. Derived from QDialog, but to use full screen and no borders. Also to have an image in the background.

Miguel Chavez Gamboa miguel.chavez.gamboa@gmail.com

Definition at line 47 of file loginwindow.h.

Public Types

enum  Mode { FullScreen = 0, PasswordOnly = 1 }

Public Member Functions

bool checkPassword ()
void clearLines ()
 LoginWindow (QWidget *parent, QString caption, QString prompt, LoginWindow::Mode mode=LoginWindow::FullScreen)
QString password ()
void setCaption (QString text)
void setDb (QSqlDatabase database)
void setPrompt (QString text)
void showErrorMessage (QString text)
QString username ()
bool wantToQuit ()

Public Attributes

LoginWindow::Mode currentMode

Protected Slots

void acceptIt ()
QHash< QString, UserInfo > getUsers ()
void hideError ()
void setQuit ()
void showAdminPhoto ()
void updateUserPhoto (const QString &)

Private Slots

virtual void paintEvent (QPaintEvent *)

Private Attributes

QPushButton * btnOk
QPushButton * btnQuit
QSqlDatabase db
QLineEdit * editPassword
QVBoxLayout * editsLayout
QLineEdit * editUsername
QHBoxLayout * errorLayout
QGridLayout * gridLayout
QLabel * imageError
QLabel * labelCaption
QLabel * labelError
QLabel * labelPassword
QLabel * labelPrompt
QLabel * labelUsername
QLabel * mainImage
QHBoxLayout * middleLayout
QHBoxLayout * okLayout
QHBoxLayout * quitLayout
QSpacerItem * spacerItemBottom
QSpacerItem * spacerItemTop
QHash< QString, UserInfo > uHash
QVBoxLayout * vLayout
bool wantQuit

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index