mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-18 03:41:50 +03:00
Remove unused stuff.
This commit is contained in:
parent
7f6dc291c0
commit
52b3f7105d
3 changed files with 1 additions and 33 deletions
|
@ -613,7 +613,7 @@ void MirallConfigFile::setMonoIcons(bool useMonoIcons)
|
||||||
|
|
||||||
AbstractCredentials* MirallConfigFile::getCredentials() const
|
AbstractCredentials* MirallConfigFile::getCredentials() const
|
||||||
{
|
{
|
||||||
return credentialsPerConfig[_customHandle].data();
|
return credentialsPerConfig[_customHandle].data();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -516,24 +516,6 @@ void ownCloudInfo::slotError( QNetworkReply::NetworkError err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ownCloudInfo::setCredentials( const QString& user, const QString& passwd,
|
|
||||||
const QString& configHandle )
|
|
||||||
{
|
|
||||||
QString con( configHandle );
|
|
||||||
if( configHandle.isEmpty() )
|
|
||||||
con = DEFAULT_CONNECTION;
|
|
||||||
|
|
||||||
if( _credentials.contains(con) ) {
|
|
||||||
qDebug() << "Overwriting credentials for connection " << con;
|
|
||||||
}
|
|
||||||
|
|
||||||
oCICredentials creds;
|
|
||||||
creds.user = user;
|
|
||||||
creds.passwd = passwd;
|
|
||||||
creds.connection = con;
|
|
||||||
_credentials[con] = creds;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
void ownCloudInfo::setupHeaders( QNetworkRequest & req, quint64 size )
|
void ownCloudInfo::setupHeaders( QNetworkRequest & req, quint64 size )
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,12 +21,6 @@
|
||||||
namespace Mirall
|
namespace Mirall
|
||||||
{
|
{
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
QString user;
|
|
||||||
QString passwd;
|
|
||||||
QString connection;
|
|
||||||
} oCICredentials;
|
|
||||||
|
|
||||||
class ownCloudInfo : public QObject
|
class ownCloudInfo : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -101,13 +95,6 @@ public:
|
||||||
*/
|
*/
|
||||||
QList<QSslCertificate> certificateChain() const;
|
QList<QSslCertificate> certificateChain() const;
|
||||||
|
|
||||||
/**
|
|
||||||
* Store credentials for a given connection. Empty connection parameter
|
|
||||||
* means "default connection".
|
|
||||||
*/
|
|
||||||
void setCredentials( const QString&, const QString&,
|
|
||||||
const QString& configHandle = QString::null );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns the owncloud webdav url.
|
* returns the owncloud webdav url.
|
||||||
* It may be different from the one in the config if there was a HTTP redirection
|
* It may be different from the one in the config if there was a HTTP redirection
|
||||||
|
@ -163,7 +150,6 @@ private:
|
||||||
QList<QSslCertificate> _certificateChain;
|
QList<QSslCertificate> _certificateChain;
|
||||||
bool _certsUntrusted;
|
bool _certsUntrusted;
|
||||||
int _authAttempts;
|
int _authAttempts;
|
||||||
QMap<QString, oCICredentials> _credentials;
|
|
||||||
QMutex _certChainMutex;
|
QMutex _certChainMutex;
|
||||||
int _redirectCount;
|
int _redirectCount;
|
||||||
qint64 _lastQuotaUsedBytes;
|
qint64 _lastQuotaUsedBytes;
|
||||||
|
|
Loading…
Reference in a new issue