Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcAuthenticationDialog.h

00001 //           ///          //                                        Mx clientSDK
00002 //          /////        ////                    Mx Crossplatform Client Library
00003 //         /// XXX     XXX ///
00004 //        ///    XXX XXX    ///     $RCSfile: mxcpcAuthenticationDialog.h,v $
00005 //       ///       XXX       ///     $Revision: 1.4 $
00006 //      ///      XXX XXX      ///     $Date: 2006/01/05 11:56:09 $
00007 //     ////    XXX     XXX    ////     $Author: cvs-kai $
00008 //    ////                     ////
00009 //   ////  M  O  B  O  T  I  X  ////////////////////////////////////////////////
00010 //  //// Security Vision Systems //////////////////////////////////////////////
00011 //                                                                          //
00012 //  Copyright (C) 2005 - 2006, MOBOTIX AG, Germany                         //
00013 //  This software is made available under the BSD licence. Please refer   //
00014 //  to the file LICENCE.TXT contained in this distribution for details.  //
00015 //                                                                      //
00016 //  /////////////////////////////////////////////////////////////////////
00017 
00018 
00019 
00020 #ifndef __MXCPC_AUTHENTICATIONDIALOG_H__
00021 #define __MXCPC_AUTHENTICATIONDIALOG_H__
00022 
00023 
00024 
00025 #include <mxcpcDialog.h>
00026 
00027 
00028 
00029 class QLabel;
00030 class QLineEdit;
00031 
00032 
00033 
00034 //! Dialog querying for user name and password.
00035 /*!
00036  *  \ingroup mxcpc_gui
00037  */
00038 class mxcpcAuthenticationDialog : public mxcpcDialog {
00039 
00040   Q_OBJECT
00041   
00042  private:
00043   QLabel *MessageLabel; 
00044   QLineEdit *UserEdit, *PasswordEdit;
00045   
00046  public:
00047   mxcpcAuthenticationDialog(QWidget *parent = 0);
00048 
00049  signals:
00050   //! Emmitted when the user commits the authentication data.
00051   void authenticationCommitted(QString user, QString password);
00052   //! Emmitted when the user has cancelled authentication.
00053   void authenticationCancelled(void);
00054   
00055  public slots:
00056   //! Sets the text message displayed above the login and password input fields.
00057   void setMessage(const QString& msg);
00058   //! Shows and raises the authentication dialog.
00059   void openDialog(const QString& msg);
00060   
00061  protected:
00062   void closeEvent(QCloseEvent *e); 
00063   
00064  private slots:
00065   void okClicked(void);
00066   void cancelClicked(void);
00067 };
00068 
00069 
00070 
00071 #endif   // __MXCPC_AUTHENTICATIONDIALOG_H__
00072 

Generated on Mon Jan 30 15:13:05 2006 for mxcpc by  doxygen 1.4.4