Commit e98e65a9 authored by Dario Freddi's avatar Dario Freddi
Browse files

More on operation


Signed-off-by: default avatarDario Freddi <drf@kde.org>
parent 4deee045
......@@ -66,12 +66,14 @@ Operation::Status Operation::status() const
QStringList Operation::targetAdditions() const
{
Q_D(const Operation);
return d->targetAdditions;
}
QStringList Operation::targetRemovals() const
{
Q_D(const Operation);
return d->targetRemovals;
}
QStringList Operation::fileSystemAdditions() const
......@@ -136,17 +138,20 @@ void Operation::setConflictingTargets(const QStringList &targets)
void Operation::setTargetDependencies(const QStringList& targets)
{
Q_D(Operation);
d->deps = targets;
}
void Operation::setTargetAdditions(const QStringList& targets)
{
Q_D(Operation);
d->targetAdditions = targets;
}
void Operation::setTargetRemovals(const QStringList& targets)
{
Q_D(Operation);
d->targetRemovals = targets;
}
void Operation::setError(Error *error)
......@@ -163,17 +168,27 @@ void Operation::setSubOperations(const List &operations)
void Operation::setProgress(int percentage)
{
Q_D(Operation);
}
void Operation::setFinished(bool result)
{
Q_D(Operation);
if (result) {
d->status = StatusPerformed;
} else {
d->status = StatusError;
}
}
void Operation::setValidationFinished(bool result)
{
Q_D(Operation);
if (result) {
d->status = StatusReady;
} else {
d->status = StatusNotReady;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment