Merge pull request #5 from sebasje/mkdirreply

Return QNetworkReply from remote mkdir
This commit is contained in:
dragotin 2013-02-10 02:34:36 -08:00
commit edbb79b79c
2 changed files with 6 additions and 1 deletions

View File

@ -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()

View File

@ -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