00001 /* 00002 * Copyright (C) 2009, Edmundo Albuquerque de Souza e Silva. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 #ifndef __CONNECTWINDOW_H__ 00019 #define __CONNECTWINDOW_H__ 00020 00021 #include <qdialog.h> 00022 #include <qworkspace.h> 00023 #include <qwidget.h> 00024 #include <qlineedit.h> 00025 #include <qcombobox.h> 00026 00027 #include "RioQt.h" 00028 00029 class ConnectWindow : public QDialog 00030 { 00031 Q_OBJECT 00032 00033 private: 00034 QComboBox *host; 00035 QComboBox *login; 00036 QLineEdit *password; 00037 QComboBox *type; 00038 00039 QWorkspace *workspace; 00040 RioQt *rioQt; 00041 00042 // Monitor Connection update interval. 00043 00044 int UpIntMonConnection; 00045 00046 void updateConnectionSettings( void ); 00047 00048 public slots: 00049 void makeConnection( void ); 00050 void changeConnectionType( int index = 0 ); 00051 void changeLogin( int index = 0 ); 00052 void changeLogin( const QString &string ); 00053 00054 public: 00055 ConnectWindow( QWidget *parent = 0, 00056 QWorkspace *workspace = 0 ); 00057 00058 // Funcao para alterar o intervalo da monitor connection. 00059 void changeUpdateInterval( const int UpdateInterval ); 00060 }; 00061 00062 #endif