mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Always return QNetworkReply* on mkdir and also on checkInstall.
This commit is contained in:
parent
a1d64af7b1
commit
28af8068e9
2 changed files with 5 additions and 9 deletions
|
@ -96,10 +96,10 @@ bool ownCloudInfo::isConfigured()
|
|||
return cfgFile.connectionExists( _connection );
|
||||
}
|
||||
|
||||
void ownCloudInfo::checkInstallation()
|
||||
QNetworkReply *ownCloudInfo::checkInstallation()
|
||||
{
|
||||
/* No authentication required for this. */
|
||||
getRequest( QLatin1String("status.php"), false );
|
||||
return getRequest( QLatin1String("status.php"), false );
|
||||
}
|
||||
|
||||
QNetworkReply* ownCloudInfo::getWebDAVPath( const QString& path )
|
||||
|
@ -132,7 +132,7 @@ QNetworkReply* ownCloudInfo::getRequest( const QString& path, bool webdav )
|
|||
}
|
||||
|
||||
#if QT46_IMPL
|
||||
void ownCloudInfo::mkdirRequest( const QString& dir )
|
||||
QNetworkReply* ownCloudInfo::mkdirRequest( const QString& dir )
|
||||
{
|
||||
qDebug() << "OCInfo Making dir " << dir;
|
||||
|
||||
|
@ -176,7 +176,7 @@ void ownCloudInfo::mkdirRequest( const QString& dir )
|
|||
//connect(_http, SIGNAL(requestFinished(int, bool)), this,SLOT(qhttpRequestFinished(int,bool)));
|
||||
///////////connect(davinfo, SIGNAL(responseHeaderReceived(constQHttpResponseHeader &)), this, SLOT(RegisterBackHeader(constQHttpResponseHeader &)));
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void ownCloudInfo::qhttpResponseHeaderReceived(const QHttpResponseHeader& header)
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
/**
|
||||
* call status.php
|
||||
*/
|
||||
void checkInstallation();
|
||||
QNetworkReply* checkInstallation();
|
||||
|
||||
/**
|
||||
* a general GET request to the ownCloud. If the second bool parameter is
|
||||
|
@ -85,11 +85,7 @@ public:
|
|||
/**
|
||||
* Create a collection via owncloud. Provide a relative path.
|
||||
*/
|
||||
#if QT46_IMPL
|
||||
void mkdirRequest( const QString& );
|
||||
#else
|
||||
QNetworkReply* mkdirRequest( const QString& );
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Use a custom ownCloud configuration file identified by handle
|
||||
|
|
Loading…
Reference in a new issue