mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #5 from sebasje/mkdirreply
Return QNetworkReply from remote mkdir
This commit is contained in:
commit
edbb79b79c
@ -195,7 +195,7 @@ void ownCloudInfo::qhttpRequestFinished(int id, bool success )
|
||||
}
|
||||
}
|
||||
#else
|
||||
void ownCloudInfo::mkdirRequest( const QString& dir )
|
||||
QNetworkReply* ownCloudInfo::mkdirRequest( const QString& dir )
|
||||
{
|
||||
qDebug() << "OCInfo Making dir " << dir;
|
||||
_authAttempts = 0;
|
||||
@ -216,6 +216,7 @@ void ownCloudInfo::mkdirRequest( const QString& dir )
|
||||
connect( reply, SIGNAL(finished()), SLOT(slotMkdirFinished()) );
|
||||
connect( reply, SIGNAL( error(QNetworkReply::NetworkError )),
|
||||
this, SLOT(slotError(QNetworkReply::NetworkError )));
|
||||
return reply;
|
||||
}
|
||||
|
||||
void ownCloudInfo::slotMkdirFinished()
|
||||
|
||||
@ -77,7 +77,11 @@ 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 New Issue
Block a user