mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Change interface to not support customHandles.
This commit is contained in:
parent
fa6331a40a
commit
2ae5ae6962
2 changed files with 5 additions and 19 deletions
|
@ -47,11 +47,11 @@ CredentialStore *CredentialStore::instance()
|
|||
return CredentialStore::_instance;
|
||||
}
|
||||
|
||||
QString CredentialStore::password( const QString& ) const
|
||||
QString CredentialStore::password() const
|
||||
{
|
||||
return _passwd;
|
||||
}
|
||||
QString CredentialStore::user( const QString& ) const
|
||||
QString CredentialStore::user() const
|
||||
{
|
||||
return _user;
|
||||
}
|
||||
|
@ -281,15 +281,6 @@ QString CredentialStore::errorMessage()
|
|||
return _errorMsg;
|
||||
}
|
||||
|
||||
QByteArray CredentialStore::basicAuthHeader() const
|
||||
{
|
||||
QString concatenated = _user + QLatin1Char(':') + _passwd;
|
||||
const QString b(QLatin1String("Basic "));
|
||||
QByteArray data = b.toLocal8Bit() + concatenated.toLocal8Bit().toBase64();
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
void CredentialStore::setCredentials( const QString& url, const QString& user, const QString& pwd )
|
||||
{
|
||||
_passwd = pwd;
|
||||
|
|
|
@ -74,8 +74,8 @@ public:
|
|||
KeyChain
|
||||
};
|
||||
|
||||
QString password( const QString& connection = QString::null ) const;
|
||||
QString user( const QString& connection = QString::null ) const;
|
||||
QString password( ) const;
|
||||
QString user( ) const;
|
||||
|
||||
/**
|
||||
* @brief state
|
||||
|
@ -91,12 +91,6 @@ public:
|
|||
*/
|
||||
void fetchCredentials();
|
||||
|
||||
/**
|
||||
* @brief basicAuthHeader - return a basic authentication header.
|
||||
* @return a QByteArray with a ready to use Header for HTTP basic auth.
|
||||
*/
|
||||
QByteArray basicAuthHeader() const;
|
||||
|
||||
/**
|
||||
* @brief instance - singleton pointer.
|
||||
* @return the singleton pointer to access the object.
|
||||
|
@ -109,6 +103,7 @@ public:
|
|||
* This function is called from the setup wizard to set the credentials
|
||||
* int this store. Note that it does not store the password.
|
||||
* The function also sets the state to ok.
|
||||
* @param url - the connection url
|
||||
* @param user - the user name
|
||||
* @param password - the password.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue