1 /* 2 * This file is part of Licq, an instant messaging client for UNIX. 3 * Copyright (C) 2004-2012 Licq developers <licq-dev@googlegroups.com> 4 * 5 * Licq is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * Licq is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Licq; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 #ifndef OWNEREDITDLG_H 21 #define OWNEREDITDLG_H 22 23 #include <QDialog> 24 25 #include <licq/userid.h> 26 27 class QCheckBox; 28 class QLineEdit; 29 30 namespace LicqQtGui 31 { 32 class SpecialSpinBox; 33 34 class OwnerEditDlg : public QDialog 35 { 36 Q_OBJECT 37 38 public: 39 OwnerEditDlg(unsigned long ppid, QWidget* parent = NULL); 40 41 OwnerEditDlg(const Licq::UserId& ownerId, unsigned setStatus = 0, 42 const QString& autoMessage = QString::null, QWidget* parent = NULL); 43 44 private slots: 45 void slot_ok(); 46 47 private: 48 void init(); 49 50 QLineEdit* edtId; 51 QLineEdit* edtPassword; 52 QCheckBox* chkSave; 53 QLineEdit* myHostEdit; 54 SpecialSpinBox* myPortSpin; 55 Licq::UserId myOwnerId; 56 unsigned long myPpid; 57 bool myNewOwner; 58 unsigned mySetStatus; 59 QString myAutoMessage; 60 }; 61 62 } // namespace LicqQtGui 63 64 #endif // OWNEREDITDLG_H 65