File indexing completed on 2023-09-24 08:19:52

0001 /* ============================================================
0002  *
0003  * This file is a part of KDE project
0004  *
0005  *
0006  * Date        : 2015-16-05
0007  * Description : a kipi plugin to export images to Flickr web service
0008  *
0009  * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com>
0010  *
0011  * This program is free software; you can redistribute it
0012  * and/or modify it under the terms of the GNU General
0013  * Public License as published by the Free Software Foundation;
0014  * either version 2, or (at your option) any later version.
0015  *
0016  * This program is distributed in the hope that it will be useful,
0017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0019  * GNU General Public License for more details.
0020  *
0021  * ============================================================ */
0022 
0023 #ifndef SELECTUSERDLG_H
0024 #define SELECTUSERDLG_H
0025 
0026 // Qt includes
0027 
0028 #include <QString>
0029 #include <QDialog>
0030 #include <QComboBox>
0031 
0032 class QLabel;
0033 
0034 namespace KIPIFlickrPlugin
0035 {
0036 
0037 class SelectUserDlg : public QDialog
0038 {
0039     Q_OBJECT
0040 public:
0041 
0042     SelectUserDlg(QWidget* const parent, const QString& serviceName);
0043     ~SelectUserDlg();
0044 
0045     void           reactivate();
0046     QString        getUname() const;
0047     SelectUserDlg* getDlg();
0048 
0049 private:
0050 
0051     QComboBox*   m_userComboBox;
0052     QLabel*      m_label;
0053     QPushButton* m_okButton;
0054 
0055     QString      m_uname;
0056     QString      m_serviceName;
0057 
0058 protected Q_SLOTS:
0059 
0060     void slotOkClicked();
0061     void slotNewAccountClicked();
0062 };
0063 
0064 } // namespace KIPIFlickrPlugin
0065 
0066 #endif // SELECTUSERDLG_H