Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

settingsimpl.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the OPIE Project
00003                              
00004                =.            Copyright (c)  2002 Andy Qua <andy.qua@blueyonder.co.uk>
00005              .=l.                                Dan Williams <drw@handhelds.org>
00006            .>+-=
00007  _;:,     .>    :=|.         This file is free software; you can
00008 .> <`_,   >  .   <=          redistribute it and/or modify it under
00009 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00010 .="- .-=="i,     .._         License as published by the Free Software
00011  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00012      ._= =}       :          or (at your option) any later version.
00013     .%`+i>       _;_.
00014     .i_,=:_.      -<s.       This file is distributed in the hope that
00015      +  .  -:.       =       it will be useful, but WITHOUT ANY WARRANTY;
00016     : ..    .:,     . . .    without even the implied warranty of
00017     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00018   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU General
00019 ..}^=.=       =       ;      Public License for more details.
00020 ++=   -.     .`     .:
00021  :     =  ...= . :.=-        You should have received a copy of the GNU
00022  -.   .:....=;==+<;          General Public License along with this file;
00023   -_. . .   )=.  =           see the file COPYING. If not, write to the
00024     --        :-=`           Free Software Foundation, Inc.,
00025                              59 Temple Place - Suite 330,
00026                              Boston, MA 02111-1307, USA.
00027 
00028 */
00029 
00030 #include "datamgr.h"
00031 
00032 #include <qdialog.h>
00033 
00034 class QCheckBox;
00035 class QLineEdit;
00036 class QListBox;
00037 
00038 class SettingsImpl : public QDialog
00039 {
00040     Q_OBJECT
00041 public:
00042      SettingsImpl( DataManager *dataManager, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00043     ~SettingsImpl();
00044 
00045         bool showDlg();
00046 
00047 private:
00048     QListBox  *servers;
00049     QLineEdit *servername;
00050     QLineEdit *serverurl;
00051     QCheckBox *active;
00052     QListBox  *destinations;
00053     QLineEdit *destinationname;
00054     QLineEdit *destinationurl;
00055     QCheckBox *linkToRoot;
00056     QLineEdit *txtHttpProxy;
00057     QCheckBox *chkHttpProxyEnabled;
00058     QLineEdit *txtFtpProxy;
00059     QCheckBox *chkFtpProxyEnabled;
00060     QLineEdit *txtUsername;
00061     QLineEdit *txtPassword;
00062 
00063     DataManager *dataMgr;
00064     QString serverName;
00065     QString destinationName;
00066     int currentSelectedServer;
00067     int currentSelectedDestination;
00068     bool changed;
00069     bool newserver;
00070     bool newdestination;
00071 
00072     QWidget *initServerTab();
00073     QWidget *initDestinationTab();
00074     QWidget *initProxyTab();
00075     
00076     void setupConnections();
00077     void setupData();
00078 
00079 public slots:
00080     void editServer( int s );
00081     void changeServerDetails();
00082     void newServer();
00083     void removeServer();
00084     void editDestination( int s );
00085     void changeDestinationDetails();
00086     void newDestination();
00087     void removeDestination();
00088     void proxyApplyChanges();
00089 };

Generated on Sat Nov 5 16:17:48 2005 for OPIE by  doxygen 1.4.2