kitchensync Library API Documentation

configpart.h

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2002 Holger Freyther <freyther@kde.org>
00005     Copyright (c) 2002 Maximilian Reiß <harlekin@handhelds.org>
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020     Boston, MA 02111-1307, USA.
00021 */
00022 #ifndef KSNYC_CONFIGPART_H
00023 #define KSNYC_CONFIGPART_H
00024 
00025 #include <qwidget.h>
00026 #include <qmap.h>
00027 
00028 #include "kapabilities.h"
00029 #include "configwidget.h"
00030 
00031 class QVBox;
00032 class QHBox;
00033 class QGridLayout;
00034 class QCheckBox;
00035 class QComboBox;
00036 class QLineEdit;
00037 class QLabel;
00038 class QFrame;
00039 class QGroupBox;
00040 class QSpacer;
00041 class QSpacerItem;
00042 class QPushButton;
00043 class QListView;
00044 
00045 namespace KSync {
00046 
00047     // responsible for configuring
00049     class ConfigPart : public ConfigWidget{  // no real part yet
00050     public:
00055         ConfigPart(const Kapabilities &src, QWidget*, const char *name=0 );
00056 
00061     ConfigPart(const Kapabilities& base,
00062            const Kapabilities& config,
00063            QWidget*, const char* name );
00064         ~ConfigPart();
00065         void setCapabilities(const Kapabilities & );
00066         Kapabilities capabilities()const; // return the modified capability
00067     private:
00068         void init();
00069         void initialize(const Kapabilities & );
00070         void apply( const Kapabilities& );
00071         class ConfigPartPrivate;
00072         ConfigPartPrivate *d;
00073         Kapabilities m_kap;
00074         QCheckBox *m_ckbMetaSyncing; // do meta syncing
00075         QGridLayout *m_mainLayout; // the Main Layout of the widget
00076 
00077         QLabel *m_lblAutoHandle; // auto Handle label
00078 
00079 
00080         QGroupBox *m_grpConnection; // The connection GroupBox
00081         QGridLayout *m_conLayout; // the Layout of the conBox
00082         //QSpacerItem *m_conSpacer; // the QSpacerItem
00083         QComboBox *m_conSrcIp; // SRC IP
00084         QComboBox *m_conDestIp; // DEST IP
00085         QComboBox *m_conUser; // COn USER;
00086         QComboBox *m_conPass; // con PASSWORD;
00087         QComboBox *m_conPort; // The con Port
00088         QLabel *m_lblSrcIp;
00089         QLabel *m_lblDestIp;
00090         QLabel *m_lblUser;
00091         QLabel *m_lblPass;
00092         QLabel *m_lblPort;
00093 
00094 
00095         QGroupBox *m_grpModel; // The Model configuration maybe QVGroupBox
00096         QGridLayout *m_grpLayout;
00097         QLabel *m_lblDevice;
00098         QLabel *m_lblConnection;
00099         QLabel *m_grpUser;
00100         QLabel *m_grpPass;
00101         QComboBox *m_cmbPass;
00102         QComboBox *m_cmbUser;
00103         QComboBox *m_cmbDevice;
00104         QComboBox *m_cmbConnection;
00105         // user and pass?
00106 
00107         QGroupBox *m_grpDevice; // Device specific options
00108         QGridLayout *m_devLay;
00109         QMap<QString,  QLineEdit*> m_devGroup;
00110 
00111         QGroupBox *m_grpFetch;
00112         QPushButton* m_fetchAdd;
00113         QPushButton* m_fetchBrowse;
00114         QPushButton* m_fetchRem;
00115         QListView *m_view;
00116 
00117         QLabel* m_lblName;
00118         QLineEdit* m_lneName;
00119         bool push:1;
00120     };
00121 }
00122 
00123 #endif
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:23:40 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003