void test_one_ip(MMDB_s *mmdb, const char *ip, const char *filename, const char *mode_desc) { MMDB_lookup_result_s result = lookup_string_ok(mmdb, ip, filename, mode_desc); ok( result.found_entry, "got a result for an IPv4 address included in a larger-than-IPv4 subnet - %s - %s", ip, mode_desc); data_ok(&result, MMDB_DATA_TYPE_UTF8_STRING, "string value for IP", NULL); }
void proxyDialog::slot_ok() { QNetworkProxy proxy; proxy.setUser(ui->user->text()); proxy.setPort(ui->port->text().toInt()); proxy.setPassword(ui->password->text()); proxy.setHostName(ui->name->text()); proxy.setType((QNetworkProxy::ProxyType)ui->type->currentIndex()); emit data_ok(proxy); hide(); }
void MainWindow::connectSignalsAndSlots() { //if track info emit e_dane run update function connect(info, SIGNAL(dataReady()), this, SLOT(update())); //this function load actual track image to label connect(load, SIGNAL(image(QPixmap*)), this, SLOT(image(QPixmap*))); //this function load next track image to label connect(loadNext, SIGNAL(image(QPixmap*)), this, SLOT(imageNext(QPixmap*))); //proxy setup connect(proxyDial, SIGNAL(data_ok(QNetworkProxy)), this, SLOT(setProxy(QNetworkProxy))); connect(ui->play_pause, SIGNAL(clicked()), this, SLOT(play_pause())); connect(ui->actionO_programie, SIGNAL(triggered()), this, SLOT(about())); connect(&tray, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconClicked(QSystemTrayIcon::ActivationReason))); //play on enter key push connect(ui->listWidget, SIGNAL(activated(QModelIndex)), this, SLOT(on_listWidget_doubleClicked(QModelIndex))); connect(ui->actionOpcje, SIGNAL(triggered()), this, SLOT(options())); }