void DataLayer::setPending(bool Pending) { if (_isPending != Pending) { _isPending = Pending; emit pendingChanged(); } }
void BtrfsBalancer::startBalance(int allocationGoal) { emit pendingChanged(true); m_usageLevels = MAX_USAGE_PERCENTS; m_allocationGoal = allocationGoal; setStatus(BALANCING); process(); }
void BtrfsBalancer::setStatus(Status newStatus) { if (newStatus != m_currentStatus) { m_currentStatus = newStatus; emit status(newStatus); } emit pendingChanged(newStatus != READY); }
void NemoCalendarChangeInformation::setInformation(const QString &uniqueId, const KDateTime &recurrenceId) { m_uniqueId = uniqueId; m_recurrenceId = recurrenceId; m_pending = false; emit uniqueIdChanged(); emit recurrenceIdChanged(); emit pendingChanged(); }
void BtrfsBalancer::checkAllocation() { qDebug() << Q_FUNC_INFO; emit pendingChanged(true); if (m_currentStatus == READY) { m_currentBtrfs = new Btrfs; connect(m_currentBtrfs, SIGNAL(allocationReceived(qint64,qint64)), this, SLOT(slotReceivedAllocation(qint64,qint64))); m_currentBtrfs->requestAllocation(); } else { emit allocation(-1, -1); } }