timeline: implement nest function

Also includes some improved cache/request code
This commit is contained in:
itsmattkc
2022-10-01 13:04:51 -07:00
parent 087325e4b2
commit df97df635d
16 changed files with 230 additions and 45 deletions
+17 -1
View File
@@ -98,15 +98,29 @@ public:
const QVector<Passthrough> &GetPassthroughs() const { return passthroughs_; }
void ClearRequestRange(const olive::TimeRange &r)
{
requested_.remove(r);
}
void ResignalRequests()
{
for (const TimeRange &r : requested_) {
emit Requested(r);
}
}
public slots:
void InvalidateAll();
void Request(const olive::TimeRange &r);
signals:
void Invalidated(const olive::TimeRange& r);
void Validated(const olive::TimeRange& r);
void Request(const olive::TimeRange& r);
void Requested(const olive::TimeRange& r);
void CancelAll();
@@ -124,6 +138,8 @@ protected:
private:
TimeRangeList validated_;
TimeRangeList requested_;
QUuid uuid_;
bool saving_enabled_;