QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsauthmethodedit.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsauthbasicedit.h
3  ---------------------
4  begin : September 1, 2015
5  copyright : (C) 2015 by Boundless Spatial, Inc. USA
6  author : Larry Shaffer
7  email : lshaffer at boundlessgeo dot com
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef QGSAUTHMETHODEDIT_H
18 #define QGSAUTHMETHODEDIT_H
19 
20 #include <QWidget>
21 
22 #include "qgis.h"
23 #include "qgsauthconfig.h"
24 
28 class GUI_EXPORT QgsAuthMethodEdit : public QWidget
29 {
30  Q_OBJECT
31 
32  public:
34  virtual bool validateConfig() = 0;
35 
37  virtual QgsStringMap configMap() const = 0;
38 
39  signals:
41  void validityChanged( bool valid );
42 
43  public slots:
48  virtual void loadConfig( const QgsStringMap &configmap ) = 0;
49 
51  virtual void resetConfig() = 0;
52 
54  virtual void clearConfig() = 0;
55 
56  protected:
62  explicit QgsAuthMethodEdit( QWidget *parent = nullptr )
63  : QWidget( parent )
64  {}
65 
66  virtual ~QgsAuthMethodEdit() {}
67 };
68 
69 #endif // QGSAUTHMETHODEDIT_H
Abstract base class for the edit widget of authentication method plugins.
QgsAuthMethodEdit(QWidget *parent=nullptr)
Construct widget to edit an authentication method configuration.
virtual ~QgsAuthMethodEdit()