Beispiel #1
0
void EvernoteSession::logout(){
    if(syncInProgress){
        return;
    }
    logoutStarted();
    cancelSync();
    DatabaseManager::instance()->clear();
    Cache::instance()->clear();
    Cache::instance()->clearFileCache();
    DatabaseManager::instance()->createTables();
    logoutFinished();
}
Beispiel #2
0
void
SmugMug::WebService::logout () {

    if (!_idLogout) {

        QUrl url (RestEndpoint);
        url.addQueryItem ("method", "smugmug.logout");
        url.addQueryItem ("SessionID", _sessionId);

        _idLogout = _httpGet (url);
        qDebug () << "logout:" << _idLogout << url.toString ();

        if (_idLogout) {
            emit logoutStarted ();
        }
    }
}