File indexing completed on 2024-04-28 04:02:30
0001 /*************************************************************************** 0002 dlgconnect.h - Connect dialog 0003 This file is a part of KMuddy distribution. 0004 ------------------- 0005 begin : Út Jul 23 2002 0006 copyright : (C) 2002-2008 by Tomas Mecir 0007 email : kmuddy@kmuddy.com 0008 ***************************************************************************/ 0009 0010 /*************************************************************************** 0011 * * 0012 * This program is free software; you can redistribute it and/or modify * 0013 * it under the terms of the GNU General Public License as published by * 0014 * the Free Software Foundation; either version 2 of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 ***************************************************************************/ 0018 0019 #ifndef DLGCONNECT_H 0020 #define DLGCONNECT_H 0021 0022 #include <QDialog> 0023 #include <QItemSelection> 0024 #include <QModelIndex> 0025 0026 class QTreeView; 0027 class KPushButton; 0028 class QCheckBox; 0029 class QDialogButtonBox; 0030 0031 class dlgEditProfile; 0032 0033 /** 0034 Connect dialog. Shown and handled by cConnection. 0035 *@author Tomas Mecir 0036 */ 0037 0038 class dlgConnect : public QDialog { 0039 Q_OBJECT 0040 public: 0041 dlgConnect (QWidget *parent=nullptr); 0042 ~dlgConnect () override; 0043 0044 QSize sizeHint() const override; 0045 QString selectedProfile (); 0046 bool sendNothing (); 0047 bool isOffLine (); 0048 protected: 0049 QTreeView *lw; 0050 QCheckBox *chkSendNothing; 0051 QCheckBox *chkOffline; 0052 dlgEditProfile *mdlg; 0053 QDialogButtonBox *buttons; 0054 0055 void updateProfileFromDialog (const QString &profile); 0056 protected slots: 0057 void selectionChanged (const QItemSelection &); 0058 void doubleClicked (const QModelIndex &); 0059 0060 void addPressed (); 0061 void modifyPressed (); 0062 void deletePressed (); 0063 void duplicatePressed (); 0064 0065 void doAdd (); 0066 void doModify (); 0067 }; 0068 0069 #endif