void CFileBrowser::on_uploadButton_clicked(){ CNotify notify; if( topItem != 0 ){ this->loadFileFromDevice(); } else { notify.execInfo("No Source File Selected"); } }
void CFileBrowser::on_deleteButton_clicked(){ CNotify notify; if( topItem != 0 ){ this->deleteFile(); } else { notify.execInfo("No File Selected"); } }
void CFileBrowser::on_downloadButton_clicked(){ CNotify notify; if( topItem != 0 ){ this->saveFileToDevice(); } else { notify.execInfo("No Target Folder Selected"); } }
void CFileBrowser::on_formatButton_clicked() { QString filename; QTreeWidgetItem* item; CNotify notify; if( topItem != 0 ){ item = ui->tree->currentItem(); filename = item->text(1); qDebug("format %s", filename.toLocal8Bit().constData()); link()->format(filename.toStdString()); this->refresh(); } else { notify.execInfo("No Mount Selected to Format"); } }