[longomatch] Add EllpasedTime event to capturers



commit 71d918fddb1ea7c0e4f3d3ca2c6e40aa8e3524f8
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Feb 17 22:01:06 2010 +0100

    Add EllpasedTime event to capturers

 CesarPlayer/Capturer/FakeCapturer.cs      |    3 +++
 CesarPlayer/Capturer/GstCameraCapturer.cs |    3 +++
 CesarPlayer/Capturer/ICapturer.cs         |    4 +++-
 CesarPlayer/Handlers/Handlers.cs          |    1 +
 4 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/CesarPlayer/Capturer/FakeCapturer.cs b/CesarPlayer/Capturer/FakeCapturer.cs
index 54be59f..95291f4 100644
--- a/CesarPlayer/Capturer/FakeCapturer.cs
+++ b/CesarPlayer/Capturer/FakeCapturer.cs
@@ -18,6 +18,7 @@
 
 using System;
 using Mono.Unix;
+using LongoMatch.Video.Handlers;
 
 namespace LongoMatch.Video.Capturer
 {
@@ -25,6 +26,8 @@ namespace LongoMatch.Video.Capturer
 	
 	public class FakeCapturer : Gtk.Bin, ICapturer
 	{
+		public event EllpasedTimeHandler EllapsedTime;
+		
 		private DateTime lastStart;
 		private TimeSpan ellapsed;
 		private bool playing;
diff --git a/CesarPlayer/Capturer/GstCameraCapturer.cs b/CesarPlayer/Capturer/GstCameraCapturer.cs
index ca2b31d..7b4d9ac 100644
--- a/CesarPlayer/Capturer/GstCameraCapturer.cs
+++ b/CesarPlayer/Capturer/GstCameraCapturer.cs
@@ -21,9 +21,12 @@ namespace LongoMatch.Video.Capturer {
 	using System;
 	using System.Collections;
 	using System.Runtime.InteropServices;
+	using LongoMatch.Video.Handlers;
 
 #region Autogenerated code
 	public  class GstCameraCapturer : Gtk.HBox, LongoMatch.Video.Capturer.ICapturer {
+		
+		public event EllpasedTimeHandler EllapsedTime;
 
 		[Obsolete]
 		protected GstCameraCapturer(GLib.GType gtype) : base(gtype) {}
diff --git a/CesarPlayer/Capturer/ICapturer.cs b/CesarPlayer/Capturer/ICapturer.cs
index f91b099..86ee6eb 100644
--- a/CesarPlayer/Capturer/ICapturer.cs
+++ b/CesarPlayer/Capturer/ICapturer.cs
@@ -19,6 +19,7 @@
 //
 
 using System;
+using LongoMatch.Video.Handlers;
 
 namespace LongoMatch.Video.Capturer
 {
@@ -26,7 +27,8 @@ namespace LongoMatch.Video.Capturer
 	
 	public interface ICapturer
 	{	
-		
+		event EllpasedTimeHandler EllapsedTime;
+			
 		uint EncodeWidth {
 			get ;
 			set ;
diff --git a/CesarPlayer/Handlers/Handlers.cs b/CesarPlayer/Handlers/Handlers.cs
index 32d84ca..bbfa3b0 100644
--- a/CesarPlayer/Handlers/Handlers.cs
+++ b/CesarPlayer/Handlers/Handlers.cs
@@ -34,6 +34,7 @@ namespace LongoMatch.Video.Handlers
 	public delegate void ProgressHandler (float progress);
 	public delegate void FramesProgressHandler (int actual, int total,Pixbuf frame);
 	public delegate void DrawFrameHandler (int time);
+	public delegate void EllpasedTimeHandler (int ellapsedTime);
 
 	
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]