File indexing completed on 2024-04-28 15:35:03

0001 /***************************************************************************
0002                           dlgeditprofile.h  -  Edit Profile dialog
0003     This file is a part of KMuddy distribution.
0004                              -------------------
0005     begin                : Pá Aug 9 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 DLGEDITPROFILE_H
0020 #define DLGEDITPROFILE_H
0021 
0022 #include <QDialog>
0023 
0024 class QLineEdit;
0025 class KTextEdit;
0026 class QSpinBox;
0027 
0028 /**
0029 Dialog used to edit basic profile settings (server, port, ...)
0030   *@author Tomas Mecir
0031   */
0032 
0033 class dlgEditProfile : public QDialog {
0034    Q_OBJECT
0035 public: 
0036   dlgEditProfile (QWidget *parent=nullptr);
0037   ~dlgEditProfile() override;
0038 
0039   QSize sizeHint() const override;
0040   /** values in LineEdits */
0041   QString name ();
0042   QString server ();
0043   int port ();
0044   QString login ();
0045   QString password ();
0046   QStringList connectionString ();
0047 
0048   /** set new values! */
0049   void setName (QString name);
0050   void setServer (QString server);
0051   void setPort (int port);
0052   void setLogin (QString login);
0053   void setPassword (QString password);
0054   void setConnectionString (QStringList conn);  
0055 protected slots:
0056   void accept() override;
0057 
0058 protected:
0059   QLineEdit *ed1, *ed2, *ed4, *ed5;
0060   KTextEdit *connstr;
0061   QSpinBox *ed3;
0062 };
0063 
0064 #endif