File indexing completed on 2025-01-19 03:55:41
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2015-11-12 0007 * Description : a common login dialog for Web Service tools 0008 * 0009 * SPDX-FileCopyrightText: 2007-2008 by Vardhman Jain <vardhman at gmail dot com> 0010 * SPDX-FileCopyrightText: 2011 by Roman Tsisyk <roman at tsisyk dot com> 0011 * SPDX-FileCopyrightText: 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com> 0012 * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0013 * 0014 * SPDX-License-Identifier: GPL-2.0-or-later 0015 * 0016 * ============================================================ */ 0017 0018 #ifndef DIGIKAM_WS_LOGIN_DIALOG_H 0019 #define DIGIKAM_WS_LOGIN_DIALOG_H 0020 0021 #include <QDialog> 0022 0023 // Local includes 0024 0025 #include "digikam_export.h" 0026 0027 namespace Digikam 0028 { 0029 0030 class DIGIKAM_EXPORT WSLoginDialog : public QDialog 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit WSLoginDialog(QWidget* const parent, 0037 const QString& prompt, 0038 const QString& header=QString(), 0039 const QString& passwd=QString()); 0040 ~WSLoginDialog() override; 0041 0042 QString login() const; 0043 QString password() const; 0044 0045 void setLogin(const QString&); 0046 void setPassword(const QString&); 0047 0048 protected Q_SLOTS: 0049 0050 void slotAccept(); 0051 0052 private: 0053 0054 class Private; 0055 Private* const d; 0056 }; 0057 0058 } // namespace Digikam 0059 0060 #endif // DIGIKAM_WS_LOGIN_DIALOG_H