void Credentials::setUsername(QString* username) { if (_username == username) return; _username = username; emit usernameChanged(username); }
void Settings::setUsername(QString username) { if (_username != username) { _username = username; m_settings->setValue("username", _username); emit usernameChanged(); } }
void TTTUser::setUsername(QString name) { if (_username != name) { _username = name; emit usernameChanged(); } }
void OurUserItemWidget::onUsernameChanged(const QString& newUsername, const QString& oldUsername) { // restore old username until Core tells us to set it usernameWidget->setText(oldUsername); // ask Core to change it emit usernameChanged(newUsername); }
void OurUserItemWidget::onUsernameChange() { QString newUsername = usernameEdit->text(); //restore old username, usernameLabel still contains it usernameEdit->setText(usernameLabel->text()); usernameEdit->clearFocus(); usernameStackedWidget->setCurrentWidget(usernameLabel); emit usernameChanged(newUsername); }
void AccountManager::logout() { // a logout means we want to delete the DataServerAccountInfo we currently have for this URL, in-memory and in file _accountInfo = DataServerAccountInfo(); // remove this account from the account settings file removeAccountFromFile(); emit logoutComplete(); // the username has changed to blank emit usernameChanged(QString()); }
void FilterDialog::accept() { if (!ui->usernameEdit->text().isEmpty()) { emit usernameChanged(ui->usernameEdit->text()); } if (!ui->emailEdit->text().isEmpty()) { emit emailChanged(ui->emailEdit->text()); } if (!ui->uidEdit->text().isEmpty()) { emit uidChanged(ui->uidEdit->text()); } close(); }
bool MClient::setUsername(const QString &username){ /* se l'username è diverso da quello precedente */ if(m_user != username){ /* cambio l'username */ m_user = username; /* ed emetto il segnale */ emit usernameChanged(username); /* ritorno true */ return true; } /* altrimenti ritorno false */ return false; }
void AccountManager::logout() { // a logout means we want to delete the DataServerAccountInfo we currently have for this URL, in-memory and in file _accountInfo = DataServerAccountInfo(); emit balanceChanged(0); connect(&_accountInfo, &DataServerAccountInfo::balanceChanged, this, &AccountManager::accountInfoBalanceChanged); QSettings settings; settings.beginGroup(ACCOUNTS_GROUP); QString keyURLString(_authURL.toString().replace("//", DOUBLE_SLASH_SUBSTITUTE)); settings.remove(keyURLString); qDebug() << "Removed account info for" << _authURL << "from in-memory accounts and .ini file"; emit logoutComplete(); // the username has changed to blank emit usernameChanged(QString()); }
void MainWindow::applyChanges() { // Get new Entry QApplication::setOverrideCursor(Qt::WaitCursor); QString newRootEntry = getNewRootEntry(); QString cvsPath = ui->currentFolder->text(); ui->infoWindow->appendPlainText("======== START UPDATING CVS ENTRIES ======"); if (replaceRootEntries(cvsPath, newRootEntry)) { // Update the rootEntry rootEntry = newRootEntry; updateDefaultParameters(); usernameChanged(ui->usernameLE->text()); serverChanged(ui->serverLE->text()); ui->infoWindow->appendPlainText("======== FINISHED UPDATING CVS ENTRIES ======\n\n"); } else ui->infoWindow->appendPlainText("======== SOME ERROR OCCURRED !!! ======\n\n"); QApplication::restoreOverrideCursor(); }
MeeTv::MeeTv(QObject *parent) : QObject(parent) { #ifndef QT_SIMULATOR m_settings = new MeeTvSettingsGConf(this); #else m_settings = new MeeTvSettingsHard(this); #endif m_active = false; m_authenticationSettingsChanged = false; m_connecting = false; m_connectionSettingsChanged = false; connect(m_settings, SIGNAL(hostnameChanged()), this, SLOT(_connectionSettingsChanged())); connect(m_settings, SIGNAL(portChanged()), this, SLOT(_connectionSettingsChanged())); connect(this, SIGNAL(activeChanged()), this, SLOT(_connectHtsp())); connect(m_settings, SIGNAL(passwordChanged()), this, SLOT(_authenticationSettingsChanged())); connect(m_settings, SIGNAL(usernameChanged()), this, SLOT(_authenticationSettingsChanged())); m_idleTimer.setSingleShot(true); m_idleTimer.setMinimumInterval(60); m_idleTimer.setMaximumInterval(90); }
void Enigma1ScreenShot::setUsername(const QString &u) { if (u != username()) { m_username = u; emit usernameChanged(); } }
void testQOfonoConnectionManagerContext () { QSignalSpy conadd(m, SIGNAL(contextAdded(QString))); QSignalSpy conrem(m, SIGNAL(contextRemoved(QString))); m->addContext("internet"); QTRY_COMPARE(conadd.count(), 1); QString contextid = conadd.takeFirst().at(0).toString(); QVERIFY(m->contexts().contains(contextid)); QOfonoConnectionContext* context = new QOfonoConnectionContext(this); context->setContextPath(contextid); QSignalSpy active(context, SIGNAL(activeChanged(bool))); QSignalSpy apn(context,SIGNAL(accessPointNameChanged(QString))); QSignalSpy name(context, SIGNAL(nameChanged(QString))); QSignalSpy type (context, SIGNAL(typeChanged(QString))); QSignalSpy uname (context, SIGNAL(usernameChanged(QString))); QSignalSpy pw (context, SIGNAL(passwordChanged(QString))); QSignalSpy proto (context, SIGNAL(protocolChanged(QString))); QSignalSpy sett (context, SIGNAL(settingsChanged(QVariantMap))); QSignalSpy sett6 (context, SIGNAL(IPv6SettingsChanged(QVariantMap))); context->setAccessPointName("hyva"); QTRY_COMPARE(apn.count(), 1); QCOMPARE(apn.takeFirst().at(0).toString(), QString("hyva")); context->setUsername("huomenta"); QTRY_COMPARE(uname.count(), 1); QCOMPARE(uname.takeFirst().at(0).toString(), QString("huomenta")); context->setPassword("HYVA"); QTRY_COMPARE(pw.count(), 1); QCOMPARE(pw.takeFirst().at(0).toString(), QString("HYVA")); context->setName("yota"); QTRY_COMPARE(name.count(), 1); QCOMPARE(name.takeFirst().at(0).toString(), QString("yota")); context->setType("mms"); QTRY_COMPARE(type.count(), 1); QCOMPARE(type.takeFirst().at(0).toString(), QString("mms")); context->setProtocol("ipv6"); QTRY_COMPARE(proto.count(), 1); QCOMPARE(proto.takeFirst().at(0).toString(), QString("ipv6")); context->setActive(true); QTRY_COMPARE(active.count(), 1); QCOMPARE(active.takeFirst().at(0).toBool(), true); QTRY_COMPARE(sett6.count(), 1); QCOMPARE(sett6.takeFirst().at(0).toMap()["Interface"].value<QString>().left(5), QString("dummy")); // "dummy" plus number QVariantMap settings = context->IPv6Settings(); QCOMPARE(settings["Interface"].value<QString>().left(5),QString("dummy")); // "dummy" plus number QTest::qWait(REASONABLE_TIMEOUT); QCOMPARE(apn.count(), 0); QCOMPARE(uname.count(), 0); QCOMPARE(pw.count(), 0); QCOMPARE(name.count(), 0); QCOMPARE(type.count(), 0); QCOMPARE(sett.count(), 0); QCOMPARE(proto.count(), 0); QCOMPARE(active.count(), 0); context->setActive(false); QTRY_COMPARE(active.count(), 1); QCOMPARE(active.takeFirst().at(0).toBool(), false); delete context; m->removeContext(contextid); QTRY_COMPARE(conrem.count(), 1); QCOMPARE(conrem.takeFirst().at(0).toString(), contextid); }
connect(&runningApplication, SIGNAL(finished(int)), this, SLOT(applicationFinished())); devices.append(QPndman::Device::detectDevices(context)); foreach(QPndman::Device* device, devices) { qDebug() << " * Reading from" << device->getMount(); bool canRead = false; canRead |= repository->loadFrom(device, false); canRead |= localRepository->loadFrom(device, false); if(canRead) { commitableDevices << device; } } connect(this, SIGNAL(usernameChanged()), this, SLOT(login())); connect(this, SIGNAL(keyChanged()), this, SLOT(login())); repository->update(); localRepository->update(); downloadWorker.start(QThread::LowPriority); PNDDeclarativeImageProvider::registerPNDManager(this); } PNDManager::~PNDManager() { downloadWorker.stop(); saveRepositories(); delete context; }
void ImapAccess::setUsername(const QString &username) { m_username = username; m_settings->setValue(Common::SettingsNames::imapUserKey, m_username); emit usernameChanged();; }
void UserItem::setusername(const QString &username) { m_username = username; emit usernameChanged(); }
void BridgeContact::setUsername( QString username ) { this->username = username; emit usernameChanged(); }