-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:qgis/Quantum-GIS
- Loading branch information
Showing
31 changed files
with
5,281 additions
and
3,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class QgsCredentials | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscredentials.h> | ||
%End | ||
public: | ||
//! virtual destructor | ||
virtual ~QgsCredentials(); | ||
|
||
bool get( QString realm, QString &username, QString &password, QString message = QString::null ); | ||
void put( QString realm, QString username, QString password ); | ||
|
||
//! retrieves instance | ||
static QgsCredentials *instance(); | ||
|
||
protected: | ||
//! request a password | ||
virtual bool request( QString realm, QString &username, QString &password, QString message = QString::null ) = 0; | ||
|
||
//! register instance | ||
void setInstance( QgsCredentials *theInstance ); | ||
}; | ||
|
||
|
||
class QgsCredentialsConsole : QObject, QgsCredentials | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscredentials.h> | ||
%End | ||
|
||
public: | ||
QgsCredentialsConsole(); | ||
|
||
signals: | ||
//! signals that object will be destroyed and shouldn't be used anymore | ||
void destroyed(); | ||
|
||
protected: | ||
virtual bool request( QString realm, QString &username, QString &password, QString message = QString::null ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.