Package: jenirok
Architecture: any
Depends: ${shlibs:Depends}, libqt4-sql-sqlite
-Description: Searches unknown callers' details using Eniro person search.
+Description: Searches unknown callers' details automatically using Eniro person search or 1881.no.
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.
+ automatically using Eniro person search or 1881.no
+ (for Norwegian users). Person search can also be done by
+ using a gui application. Jenirok is currently mainly
+ usable for Finnish, Swedish, Danish and Norwegian 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ä.
#!/bin/sh -e
gtk-update-icon-cache -f /usr/share/icons/hicolor
+/etc/init.d/jenirokd start -boot
exit 0
if(!details.location.isEmpty())
{
- query += details.location;
+ query += " " + details.location;
}
url.addQueryItem("s", query);
}
Source::Source(QObject* parent): QObject(parent),
-maxResults_(DEFAULT_MAX_RESULTS), timeout_(0), timerId_(0), findNumber_(false),
+maxResults_(DEFAULT_MAX_RESULTS), timeout_(0), timerId_(0), findNumber_(true),
error_(NO_ERROR), loggedIn_(false)
{
connect(&http_, SIGNAL(requestFinished(int, bool)), this, SLOT(httpReady(int, bool)));
string = string.replace("&" + entities[i] + ";", QChar(entityValues[i]));
}
+ static QRegExp entityCleaner("&#([0-9]{1,3});");
+ entityCleaner.setMinimal(true);
+
+ int pos = 0;
+
+ while((pos = entityCleaner.indexIn(string, pos)) != -1)
+ {
+ QString match = entityCleaner.cap(1);
+
+ int value = match.toInt();
+
+ if(value >= 1 && value <= 255)
+ {
+ string = string.replace(pos, match.length() + 3, QChar(value));
+ }
+
+ pos += entityCleaner.matchedLength();
+ }
+
+
return string;
}
enum Error {NO_ERROR, CONNECTION_FAILURE, INVALID_LOGIN, TIMEOUT};
- enum SourceId {SOURCE_NONE, ENIRO, MOBIL1881};
+ enum SourceId {ENIRO, MOBIL1881};
static int const SOURCE_COUNT = 2;
struct SourceDetails
#include "sourcecoreconfig.h"
ResultWindow::ResultWindow(QWidget* parent): QMainWindow(parent),
-sourceId_(Source::SOURCE_NONE), source_(0), list_(0), connectionManager_(0)
+source_(0), list_(0), connectionManager_(0)
{
setAttribute(Qt::WA_Maemo5StackedWindow);
setWindowTitle(tr("Search results"));
Settings::instance()->startEdit();
- sourceConfig_->save();
Settings::instance()->set("cache_size", cacheInput_->text());
QString source = sourceSelector_->value().toString();
Settings::instance()->set("source", source);
Settings::instance()->set("connection_name", connectionSelector_->text());
QString language = languageSelector_->value().toString();
Settings::instance()->set("language", language);
+ sourceConfig_->save();
Settings::instance()->endEdit();
if(Daemon::isRunning())
{
- QMaemo5InformationBox::information(this, tr("Restarting daemon..."));
+ QMaemo5InformationBox::information(this, tr("Restarting daemon..."), 1500);
Daemon::restart();
}
if(source != currentSource_)
{
- tabs_->removeTab(tabs_->count() - 1);
+ int tabId = tabs_->indexOf(sourceConfig_);
+
+ if(tabId >= 0)
+ {
+ tabs_->removeTab(tabId);
+ }
+
delete sourceConfig_;
Source::SourceId sourceId = Source::stringToId(value.toString());
sourceConfig_ = SourceGuiConfig::getGuiConfig(sourceId, this);