示例#1
0
void DataLayer::setPending(bool Pending)
{
    if (_isPending != Pending)
    {
        _isPending = Pending;
        emit pendingChanged();
    }
}
示例#2
0
void BtrfsBalancer::startBalance(int allocationGoal)
{
    emit pendingChanged(true);
    m_usageLevels = MAX_USAGE_PERCENTS;
    m_allocationGoal = allocationGoal;
    setStatus(BALANCING);
    process();
}
示例#3
0
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();
}
示例#5
0
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);
    }
}