CallListener::CallListener(): eniro_(0),
closeConnection_(false), initialized_(false), box_(0), label_(0),
-retries_(-1), site_(Eniro::FI), timer_(0), autoconnect_(false)
+retries_(-1), site_(Eniro::FI), timer_(0)
{
}
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)