Cloud storage: clean up handling of cloud storage account

Correctly tracking the status of our authentication with the cloud service
is non-trivial, especially since the user may quit Subsurface between
registering and verifying an account, they might even register on one
machine and verify on another.

This tries to make sure that when in doubt we check with the cloud service
backend. And we show errors in the UI.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-14 13:50:13 -07:00
parent 8f7a4a1a97
commit b5eb66545b
5 changed files with 43 additions and 27 deletions

View file

@ -117,7 +117,7 @@ public:
QNetworkReply* authenticate(QString email, QString password, QString pin = "");
explicit CloudStorageAuthenticate(QObject *parent);
signals:
void finishedAuthenticate(bool toggle);
void finishedAuthenticate();
private
slots:
void uploadError(QNetworkReply::NetworkError error);