本文整理汇总了C++中CNotify::updateStatus方法的典型用法代码示例。如果您正苦于以下问题:C++ CNotify::updateStatus方法的具体用法?C++ CNotify::updateStatus怎么用?C++ CNotify::updateStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CNotify
的用法示例。
在下文中一共展示了CNotify::updateStatus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: saveFileToDeviceSelected
void CFileBrowser::saveFileToDeviceSelected(QStringList filenames){
CNotify notify;
if( copyFilesToDevice(link(), filenames, ui->tree->currentItem()->text(1)) == false ){
notify.execLinkError(link_errno);
} else {
notify.updateStatus("File Saved");
refresh();
}
}
示例2: file
/*! \details This is the main window constructor. It initializes the GUI as
* as well as the USB Link driver.
*
*
*/
Caoslink::Caoslink(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Caoslink)
{
CNotify notify;
notify.updateStatus("");
qDebug("CAOS Init");
CLink * linkDevice;
QCoreApplication::setOrganizationName("CoActionOS, Inc");
QCoreApplication::setOrganizationDomain("coactionos.com");
QCoreApplication::setApplicationName("CoActionOS Link");
QCoreApplication::setApplicationVersion(COACTIONOS_LINK_VERSION);
CFont::init();
link_set_debug(1);
ui->setupUi(this);
linkDevice = ui->connectWidget->clink();
ui->caosInterface->setLink(linkDevice);
ui->progressBar->setVisible(false);
//Connect link thread
connect(linkDevice, SIGNAL(reconnectSignal(bool)), ui->connectWidget, SLOT(connectRequested(bool)));
ui->connectWidget->setObjectName("connectWidget");
ui->statusBar->setObjectName("statusBar");
QFile file(":/data/CStyle.css");
if(file.open(QFile::ReadOnly)) {
QString StyleSheet = QLatin1String(file.readAll());
file.close();
#ifdef Q_WS_WIN
file.setFileName(":/data/CStyle-win32.css");
if( file.open(QFile::ReadOnly)){
StyleSheet += QLatin1String(file.readAll());
file.close();
}
#endif
qApp->setStyleSheet(StyleSheet);
}
CNotify::setUpdateObjects(ui->statusBar, ui->progressBar);
qDebug("CAOS Init Complete");
}
示例3: copyDirToDevice
bool CFileBrowser::copyDirToDevice(CLink * d, QString srcDir, QString targetDir){
QDir dir(srcDir);
CNotify notify;
QStringList files;
bool ret;
int i;
files = dir.entryList(QDir::Files);
for(i=0; i < files.size(); i++){
ret = copyFileToDevice(d,
dir.path() + "/" + files.at(i),
targetDir
);
if( ret < 0 ){
return false;
}
notify.updateStatus("Copied " + files.at(i));
}
return true;
}