return OauthSettings.value("net_auto", true).toBool();
}
+void GoogleLatitude::setDaemonMode(bool status) {
+ qDebug() << "* GoogleLatitude::setDaemonMode" << status;
+ OauthSettings.setValue("daemon", status);
+}
+
+bool GoogleLatitude::getDaemonMode() {
+ qDebug() << "* GoogleLatitude::getDaemonMode";
+ return OauthSettings.value("daemon", true).toBool();
+}
+
void GoogleLatitude::onTemporaryTokenReceived(QString temporaryToken, QString temporaryTokenSecret) {
qDebug() << "* GoogleLatitude::onTemporaryTokenReceived" << temporaryToken << temporaryTokenSecret;
if( OauthManager->lastError() == KQOAuthManager::NoError) {
void GoogleLatitude::onRequestReady(QByteArray response) {
qDebug() << "* GoogleLatitude::onRequestReady" << response;
if (response.contains("Invalid Credentials") ) {
+ qDebug() << "* GoogleLatitude::onRequestReady" << "Invalid Credentials";
OauthSettings.remove("oauth_token");
OauthSettings.remove("oauth_token_secret");
+ UserAuthorization.clear();
emit notToken();
}
}