void AbstractQueryItem::setAccount(AccountObject *account)
{
    if (m_account != account) {
        m_account = account;
        emit accountChanged();
    }
}
示例#2
0
void Lvk::FE::ConnectionWidget::onAccountOk()
{
    qDebug() << "ConnectionWidget: Verify Account Ok";

    setUiMode(DisconnectedUiMode);

    emit accountChanged();
}
示例#3
0
kOnlineTransferForm::kOnlineTransferForm(QWidget *parent)
  : QDialog(parent),
    ui(new Ui::kOnlineTransferFormDecl),
    m_onlineJobEditWidgets(QList<IonlineJobEdit*>()),
    m_requiredFields(new kMandatoryFieldGroup(this))
{
  ui->setupUi(this);
  ui->unsupportedIcon->setPixmap(QIcon::fromTheme("dialog-information").pixmap(style()->pixelMetric(QStyle::PM_MessageBoxIconSize)));
  // The ui designer fills the QScrollArea with a QWidget. Remove it so we can simply check for .widget() == nullptr
  // if it contains a valid widget
  delete ui->creditTransferEdit->takeWidget();

  OnlineBankingAccountNamesFilterProxyModel* accountsModel = new OnlineBankingAccountNamesFilterProxyModel(this);
  accountsModel->setSourceModel(Models::instance()->accountsModel());
  ui->originAccount->setModel(accountsModel);

  ui->convertMessage->hide();
  ui->convertMessage->setWordWrap(true);

  auto edits = onlineJobAdministration::instance()->onlineJobEdits();
  std::for_each(edits.constBegin(), edits.constEnd(), [this](onlineJobAdministration::onlineJobEditOffer in) {this->loadOnlineJobEditPlugin(in);});

  // Message Widget for read only jobs
  m_duplicateJob = KStandardAction::copy(this);
  connect(m_duplicateJob, SIGNAL(triggered(bool)), SLOT(duplicateCurrentJob()));

  ui->headMessage->hide();
  ui->headMessage->setWordWrap(true);
  ui->headMessage->setCloseButtonVisible(false);
  ui->headMessage->addAction(m_duplicateJob);

  connect(ui->transferTypeSelection, SIGNAL(currentIndexChanged(int)), this, SLOT(convertCurrentJob(int)));

  connect(ui->buttonAbort, SIGNAL(clicked(bool)), this, SLOT(reject()));
  connect(ui->buttonSend, SIGNAL(clicked(bool)), this, SLOT(sendJob()));
  connect(ui->buttonEnque, SIGNAL(clicked(bool)), this, SLOT(accept()));
  connect(m_requiredFields, SIGNAL(stateChanged(bool)), ui->buttonEnque, SLOT(setEnabled(bool)));

  connect(ui->originAccount, SIGNAL(accountSelected(QString)), this, SLOT(accountChanged()));

  accountChanged();
  setJobReadOnly(false);
  m_requiredFields->add(ui->originAccount);
  m_requiredFields->setOkButton(ui->buttonSend);
}
示例#4
0
void DialogEditAccount::on_btnDeleteAccount_clicked()
{
    int reply = QMessageBox::question(this, "Cancellazione conto", "Confermi la cancellazione del conto?",
                                  QMessageBox::Yes, QMessageBox::Cancel);
    if(reply == QMessageBox::Yes){
        elenco->deleteAccount(itAccount);
        emit accountChanged();
        this->close();
    }

}
示例#5
0
    void EtherIPC::handleAccountBalance() {
        QJsonValue jv;
        if ( !readReply(jv) ) {
            return bail();
        }

        const QString decStr = Helpers::toDecStrEther(jv);
        const int index = fActiveRequest.getIndex();
        fAccountList[index].setBalance(decStr);

        emit accountChanged(fAccountList.at(index));
        done();
    }
示例#6
0
    void EtherIPC::handleAccountTransactionCount() {
        QJsonValue jv;
        if ( !readReply(jv) ) {
            return bail();
        }

        std::string hexStr = jv.toString("0x0").remove(0, 2).toStdString();
        const BigInt::Vin bv(hexStr, 16);
        quint64 count = bv.toUlong();
        const int index = fActiveRequest.getIndex();
        fAccountList[index].setTransactionCount(count);

        emit accountChanged(fAccountList.at(index));
        done();
    }
示例#7
0
void VkAccount::handleConfigDialogAccepted()
{
    if (!AccConfigDia_)
        return;

    EnableFileLog_ = AccConfigDia_->GetFileLogEnabled ();
    Logger_->SetFileEnabled (EnableFileLog_);

    MarkAsOnline_ = AccConfigDia_->GetMarkAsOnline ();
    handleMarkOnline ();

    PublishTune_ = AccConfigDia_->GetPublishTuneEnabled ();

    emit accountChanged (this);

    AccConfigDia_->deleteLater ();
}
示例#8
0
bool DialogEditAccount::editAccountOwner(){
    QString newName = ui->txtEditName->text();
    QString newSurname = ui->txtEditSurname->text();
    if(!newName.size() || !newSurname.size()){
        QMessageBox err;
        err.setText("I campi dati non possono essere impostati a valori vuoti");
        err.exec();
        return false;
    }
    ElencoConti::ContoPtr& acc = elenco->getAccount(itAccount);
    acc->setNome(newName.toStdString());
    acc->setCognome(newSurname.toStdString());
    QMessageBox dlg;
    dlg.setText("Dati intestatario modificati con successo");
    dlg.exec();
    emit accountChanged();
    return true;
}
示例#9
0
	void AccountsManager::AddAccountImpl (Account_ptr account)
	{
		Accounts_ << account;

		const QList<QStandardItem*> row
		{
			new QStandardItem { account->GetName () },
			new QStandardItem { account->GetServer () }
		};
		AccountsModel_->appendRow (row);

		connect (account.get (),
				SIGNAL (accountChanged ()),
				this,
				SLOT (saveAccounts ()));
		connect (account->GetFolderManager (),
				SIGNAL (foldersUpdated ()),
				this,
				SLOT (saveAccounts ()));
	}
示例#10
0
	void Core::AddAccountImpl (Account_ptr account)
	{
		Accounts_ << account;

		QList<QStandardItem*> row;
		row << new QStandardItem (account->GetName ());
		row << new QStandardItem (account->GetServer ());
		row << new QStandardItem (account->GetType ());
		AccountsModel_->appendRow (row);

		ProgressManager_->AddAccount (account.get ());

		connect (account.get (),
				SIGNAL (accountChanged ()),
				this,
				SLOT (saveAccounts ()));
		connect (account->GetFolderManager (),
				SIGNAL (foldersUpdated ()),
				this,
				SLOT (saveAccounts ()));
	}
示例#11
0
	void VkAccount::RenameAccount (const QString& name)
	{
		Name_ = name;
		emit accountRenamed (name);
		emit accountChanged (this);
	}
示例#12
0
	void VkAccount::handleCookies (const QByteArray& cookies)
	{
		LastCookies_ = cookies;
		emit accountChanged (this);
	}