diff options
author | sr55 <[email protected]> | 2011-12-27 18:41:31 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-12-27 18:41:31 +0000 |
commit | 20fd52b888f111ac2d7670fa3c41e495661cdebd (patch) | |
tree | 9f8f53b17435ed3a8a14df338ec26410a3ecba75 /win/CS/HandBrake.ApplicationServices/Services | |
parent | 015a2a45691dee523047f3b2a1a3628a2dd106f9 (diff) |
WinGui: (WPF) Initial work to implement the "Queue" and "Add Preset" Windows. Additional setup work around the main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4389 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs | 2 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs index e53871d53..b8b162d4f 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs @@ -30,7 +30,7 @@ namespace HandBrake.ApplicationServices.Services.Interfaces /// <summary>
/// Gets The current queue.
/// </summary>
- ReadOnlyCollection<QueueTask> Queue { get; }
+ ObservableCollection<QueueTask> Queue { get; }
/// <summary>
/// Gets the number of jobs in the queue
diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs index cec56f500..c138708a7 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs @@ -41,7 +41,7 @@ namespace HandBrake.ApplicationServices.Services /// <summary>
/// The Queue of Job objects
/// </summary>
- private readonly List<QueueTask> queue = new List<QueueTask>();
+ private readonly ObservableCollection<QueueTask> queue = new ObservableCollection<QueueTask>();
/// <summary>
/// HandBrakes Queue file with a place holder for an extra string.
@@ -74,6 +74,7 @@ namespace HandBrake.ApplicationServices.Services /// </summary>
public QueueManager()
{
+ this.queueFile = "hb_queue_recovery.xml"; // TODO need to support multi-instance here.
}
/// <summary>
@@ -130,11 +131,11 @@ namespace HandBrake.ApplicationServices.Services /// <summary>
/// Gets The current queue.
/// </summary>
- public ReadOnlyCollection<QueueTask> Queue
+ public ObservableCollection<QueueTask> Queue
{
get
{
- return this.queue.AsReadOnly();
+ return this.queue;
}
}
|