Module::Module(QWidget *parent, const QVariantList &args) : KCModule(parent, args) , ui(new Ui::Module) , m_manager(new DriverManager(this)) { KAboutData *aboutData = new KAboutData("kcm-driver-manager", i18n("Driver Manager"), global_s_versionStringFull, QStringLiteral(""), KAboutLicense::LicenseKey::GPL_V3, i18n("Copyright 2013 Rohan Garg")); aboutData->addAuthor(i18n("Rohan Garg"), i18n("Author"), QStringLiteral("*****@*****.**")); aboutData->addAuthor(i18n("Harald Sitter"), i18n("Qt 5 port"), QStringLiteral("*****@*****.**")); setAboutData(aboutData); // We have no help so remove the button from the buttons. setButtons(buttons() ^ KCModule::Help); ui->setupUi(this); ui->progressBar->setVisible(false); connect(ui->reloadButton, SIGNAL(clicked(bool)), SLOT(load())); m_overlay = new KPixmapSequenceOverlayPainter(this); m_overlay->setWidget(this); #warning variable name QString label = xi18nc("@title/rich", "<title>Your computer requires no proprietary drivers</title>"); m_label = new QLabel(label, this); m_label->hide(); ui->driverOptionsVLayout->addWidget(m_label); //Debconf handling QString uuid = QUuid::createUuid().toString(); uuid.remove('{').remove('}').remove('-'); m_pipe = QDir::tempPath() % QLatin1String("/qapt-sock-") % uuid; m_debconfGui = new DebconfKde::DebconfGui(m_pipe, this); m_debconfGui->connect(m_debconfGui, SIGNAL(activated()), this, SLOT(showDebconf())); m_debconfGui->connect(m_debconfGui, SIGNAL(deactivated()), this, SLOT(hideDebconf())); m_debconfGui->hide(); connect(m_manager, SIGNAL(refreshFailed()), this, SLOT(onRefreshFailed())); connect(m_manager, SIGNAL(devicesReady(DeviceList)), this, SLOT(onDevicesReady(DeviceList))); connect(m_manager, SIGNAL(changeProgressChanged(int)), this, SLOT(progressChanged(int))); connect(m_manager, SIGNAL(changeFinished()), this, SLOT(finished())); connect(m_manager, SIGNAL(changeFailed(QString)), this, SLOT(failed(QString))); }
void RepoService::onRefreshFailed(const ApiError& error) { in_refresh_ = false; emit refreshFailed(error); }