void MainWindow::on_pushButton_clicked() { //tranzitia spre login cleandb(); ui->pushButton->setVisible(false); ui->pushButton_2->setVisible(false); ui->lineEdit->setVisible(true); ui->pushButton_3->setVisible(true); ui->label_2->setVisible(true); ui->lineEdit_2->setVisible(true); ui->label_6->setVisible(true); ui->label_7->setVisible(true); ui->pushButton_9->setVisible(true); }
int main(int argc, char **argv) { sqlite3 *db; sqlite3_stmt *pStmt; int rc; rc = sqlite3_open("example.db", &db); if (rc != SQLITE_OK) { printf("db open error\n"); return -1; } sqlite3_enable_load_extension(db, 1); rc = sqlite3_load_extension(db, "libbfile_ext.so", NULL, NULL); if (rc != SQLITE_OK) { printf("load bfile extension error\n"); return -1; } /* clean the database */ cleandb(db); /* create table & directory, and insert data */ rc = prepare_db(db); if (rc) return -1; /* query bfile data */ rc = query_bfile(db); if (rc) return -1; /* replace directory alias */ rc = change_dir(db); if (rc) return -1; sqlite3_close(db); return 0; }