/*
* Filters/FilterRequest.cs
*
* Author(s)
* Stephane Delcroix <stephane@delcroix.org>
*
* This is free software. See COPYING for details
*
*/
using System;
namespace FSpot.Filters {
public class FilterRequest : IDisposable
{
Uri source;
Uri current;
Uri next;
public FilterRequest (Uri source)
{
this.source = source;
this.current = source;
}
public Uri Source {
get { return source; }
}
public Uri Current {
get { return current; }
set { current = value; }
}
public Uri Next {
get {
if (next == null)
next = new Uri ("file://" + System.IO.Path.GetTempFileName ());
return next;
}
}
public Uri Destination {
get { return current; }
}
public void Step ()
{
//FIXME Add the old current to a removeMe list
current = next;
next = null;
}
public void Dispose ()
{
//clean the old temp files
}
}
}