void YaDayUse::dayUse() { PsiLogger::instance()->log("YaDayUse::dayUse()"); int timeout = 86400; #ifdef YAPSI_ACTIVEX_SERVER QAxObject updater("Yandex.YandexUpdater"); updater.dynamicCall("PingStat(const QString&, const QString&, const QString&)", YaDayUse::appId(), YaDayUse::basePingUrl(), QString::number(timeout)); #else QString url = QString("%1?yasoft=%2&ui=%3&ver=%4&os=%5&osver=%6") .arg(basePingUrl()) .arg(appId()) .arg(ui()) .arg(ver()) .arg(osId()) .arg(osVer()); httpGet(url); #endif QTimer::singleShot(timeout * 1000, this, SLOT(dayUse())); }
void Log2File::writeLogHeader() { if (logHeaderProvider) logfile << "========================================\n" << logHeaderProvider() << "\n========================================\n"; else logfile << "========================================\n" << "Logger built " __TIMESTAMP__ << "\nis running on " << pcType() << " powered by " << osName() << " " << osVer() << "\n========================================\n"; }