#region CPL License /* Nuclex Framework Copyright (C) 2002-2010 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #endregion #if ENABLE_SERVICEMANAGER using System; using System.Collections.Generic; using Nuclex.Support.Tracking; namespace Nuclex.Support.Services.ProgressTracking { /// Tracks the progress of running background processes public class ProgressTrackingComponent : IProgressCollectingService, IProgressPublishingService { /// Fired when the overall progress changes public event EventHandler ProgressChanged; /// Initializes a new progress tracking component public ProgressTrackingComponent() { } /// Tracks the progress of the specified transaction /// /// Transaction whose progress will be tracked /// /// /// Identifier unique to the tracked background process. Can be null. /// public void Track(Transaction transaction, object processIdentifier) { } /// Tracks the progress of the specified transaction /// /// Transaction whose progress will be tracked /// public void Track(Transaction transaction) { } /// Stops tracking the specified transaction /// Transaction that will no longer be tracked public void Untrack(Transaction transaction) { } /// The overall progress of all tracked background processes public float TotalProgress { get { return 0.0f; } } /// Currently active background processes public IEnumerable TrackedProcesses { get { return null; } } } } // namespace Nuclex.Support.Services.ProgressTracking #endif // ENABLE_SERVICEMANAGER