Jenirok finds unknown callers' details
automatically using Eniro person search. Person
search can also be done by using a gui application.
+ Jenirok is currently mainly usable for Finnish, Swedish
+ and Danish users.
XB-Description-fi_FI: Hakee tuntemattoman soittajan tiedot Eniron henkilöhaulla.
Jenirok hakee tuntemattoman soittajan tiedot
automaattisesti Eniron henkilöhakua käyttämällä.
values.push_back((char *)list->data);
list = list->next;
}
-
}
g_object_unref(gcClient);
if(configType == Settings::ALWAYS_ASK)
{
- showError(tr("Automatic connecting is not allowed by settings."));
+ showError(tr("Automatic connecting is not allowed by settings."), BANNER_DELAY);
return false;
}
return initialized_;
}
-void CallListener::showError(QString const& msg)
+void CallListener::showError(QString const& msg, int timeout)
{
qDebug() << "Error: " << msg;
box_->setTimeout(ERROR_BANNER_TIMEOUT);
- showResult(msg);
+
+ if(timeout)
+ {
+ showDelayedResult(msg, timeout);
+ }
+ else
+ {
+ showResult(msg);
+ }
}
void CallListener::timerEvent(QTimerEvent* event)
static const int CONNECT_RETRIES = 3;
static const int CONNECTION_LOOKUP_RETRIES = 15;
static const int WAIT_BETWEEN_RETRIES = 1000;
- static const int ERROR_BANNER_TIMEOUT = 4000;
+ static const int ERROR_BANNER_TIMEOUT = 4500;
protected:
virtual void timerEvent(QTimerEvent* event);
void searchInit();
void searchClose();
bool handleConnection();
- void showError(QString const& msg);
+ void showError(QString const& msg, int delay = 0);
void sleep(int ms);
QString createResult(QString const& name, QString const& street, QString const& city);
QString timedMessage_;