Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return QNetworkReply from remote mkdir #5

Merged
merged 1 commit into from
Feb 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/mirall/owncloudinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,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;
Expand All @@ -206,6 +206,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()
Expand Down
4 changes: 4 additions & 0 deletions src/mirall/owncloudinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ class ownCloudInfo : public QObject
/**
* 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
Expand Down