digiKam
wslogindialog.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2015-11-12
7  * Description : a common login dialog for Web Service tools
8  *
9  * Copyright (C) 2007-2008 by Vardhman Jain <vardhman at gmail dot com>
10  * Copyright (C) 2011 by Roman Tsisyk <roman at tsisyk dot com>
11  * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com>
12  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_WS_LOGIN_DIALOG_H
27 #define DIGIKAM_WS_LOGIN_DIALOG_H
28 
29 #include <QDialog>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT WSLoginDialog : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit WSLoginDialog(QWidget* const parent,
45  const QString& prompt,
46  const QString& header=QString(),
47  const QString& passwd=QString());
48  ~WSLoginDialog() override;
49 
50  QString login() const;
51  QString password() const;
52 
53  void setLogin(const QString&);
54  void setPassword(const QString&);
55 
56 protected Q_SLOTS:
57 
58  void slotAccept();
59 
60 private:
61 
62  class Private;
63  Private* const d;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_WS_LOGIN_DIALOG_H
Definition: wslogindialog.h:39
Definition: datefolderview.cpp:43