[f-spot/hyena-models: 1/6] Introduce the Concept of Sources



commit 5f78f7d259452d4228b2449e75c2c53b1b057c7f
Author: Mike Gemünde <mike gemuende de>
Date:   Sun Oct 3 13:37:23 2010 +0200

    Introduce the Concept of Sources
    
    We are going to introduce the concept of Sources which is based on the
    idea of Sources in Banshee.

 src/Core/FSpot.Core/FSpot.Core.csproj          |    2 +
 src/Core/FSpot.Core/FSpot.Core/IPhotoSource.cs |   27 ++++++++++++++++++++++++
 src/Core/FSpot.Core/FSpot.Core/ISource.cs      |   19 ++++++++++++++++
 src/Core/FSpot.Core/Makefile.am                |    2 +
 4 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/FSpot.Core/FSpot.Core.csproj b/src/Core/FSpot.Core/FSpot.Core.csproj
index eed713e..724fdcd 100644
--- a/src/Core/FSpot.Core/FSpot.Core.csproj
+++ b/src/Core/FSpot.Core/FSpot.Core.csproj
@@ -44,6 +44,8 @@
     <Compile Include="FSpot.Core\IPhotoVersionable.cs" />
     <Compile Include="FSpot.Core\FilePhoto.cs" />
     <Compile Include="FSpot.Core\PhotoList.cs" />
+    <Compile Include="FSpot.Core\ISource.cs" />
+    <Compile Include="FSpot.Core\IPhotoSource.cs" />
   </ItemGroup>
   <ProjectExtensions>
     <MonoDevelop>
diff --git a/src/Core/FSpot.Core/FSpot.Core/IPhotoSource.cs b/src/Core/FSpot.Core/FSpot.Core/IPhotoSource.cs
new file mode 100644
index 0000000..4e7dc2e
--- /dev/null
+++ b/src/Core/FSpot.Core/FSpot.Core/IPhotoSource.cs
@@ -0,0 +1,27 @@
+/*
+ * IPhotoSource.cs
+ *
+ * Author(s):
+ *  Mike Gemuende <mike gemuende de>
+ *
+ * This is free software. See COPYING for details.
+ */
+
+using System;
+
+namespace FSpot.Core
+{
+
+    public interface IPhotoSource : ISource
+    {
+        IBrowsableCollection Photos { get; }
+
+        void AddPhotos (IBrowsableCollection photos);
+        void RemovePhotos (IBrowsableCollection photos);
+        void DeletePhotos (IBrowsableCollection photos);
+
+        bool CanAddPhotos { get; }
+        bool CanRemovePhotos { get; }
+        bool CanDeletePhotos { get; }
+    }
+}
diff --git a/src/Core/FSpot.Core/FSpot.Core/ISource.cs b/src/Core/FSpot.Core/FSpot.Core/ISource.cs
new file mode 100644
index 0000000..0d6007f
--- /dev/null
+++ b/src/Core/FSpot.Core/FSpot.Core/ISource.cs
@@ -0,0 +1,19 @@
+/*
+ * ISource.cs
+ *
+ * Author(s):
+ *  Mike Gemuende <mike gemuende de>
+ *
+ * This is free software. See COPYING for details.
+ */
+
+using System;
+
+namespace FSpot.Core
+{
+
+    public interface ISource
+    {
+        string Name { get; }
+    }
+}
diff --git a/src/Core/FSpot.Core/Makefile.am b/src/Core/FSpot.Core/Makefile.am
index 4f96f15..2539a97 100644
--- a/src/Core/FSpot.Core/Makefile.am
+++ b/src/Core/FSpot.Core/Makefile.am
@@ -18,8 +18,10 @@ SOURCES =  \
 	FSpot.Core/IPhoto.cs \
 	FSpot.Core/IPhotoComparer.cs \
 	FSpot.Core/IPhotoExtensions.cs \
+	FSpot.Core/IPhotoSource.cs \
 	FSpot.Core/IPhotoVersion.cs \
 	FSpot.Core/IPhotoVersionable.cs \
+	FSpot.Core/ISource.cs \
 	FSpot.Core/PhotoChanges.cs \
 	FSpot.Core/PhotoList.cs \
 	FSpot.Core/PhotosChanges.cs \



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