banshee r3813 - in trunk/banshee: . src/Libraries/Migo src/Libraries/Migo/Migo/Migo.Syndication src/Libraries/Migo/Migo/Migo.Syndication/Enumerations src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Db src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Rss



Author: gburt
Date: Wed Apr 23 18:12:28 2008
New Revision: 3813
URL: http://svn.gnome.org/viewvc/banshee?rev=3813&view=rev

Log:
2008-04-23  Gabriel Burt  <gabriel burt gmail com>

	* src/Libraries/Migo/*: Rename a few more enums.


Added:
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncAction.cs   (contents, props changed)
      - copied, changed from r3810, /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_ACTION.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncStatus.cs   (contents, props changed)
      - copied, changed from r3810, /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_STATUS.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedSyncSetting.cs   (contents, props changed)
      - copied, changed from r3810, /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_SYNC_SETTING.cs
Removed:
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_ACTION.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_STATUS.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_SYNC_SETTING.cs
Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Libraries/Migo/Makefile.am
   trunk/banshee/src/Libraries/Migo/Migo.mdp
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Feed.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedsManager.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeed.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeedsManager.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Db/FeedDataWrapper.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/IFeedWrapper.cs
   trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Rss/RssFeedWrapper.cs

Modified: trunk/banshee/src/Libraries/Migo/Makefile.am
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Makefile.am	(original)
+++ trunk/banshee/src/Libraries/Migo/Makefile.am	Wed Apr 23 18:12:28 2008
@@ -16,13 +16,13 @@
 	Migo/Migo.Net/EventArgs/TransferRateUpdatedEventArgs.cs \
 	Migo/Migo.Net/Exceptions/RemoteFileModifiedException.cs \
 	Migo/Migo.Net/TransferStatusManager.cs \
+	Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncAction.cs \
+	Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncStatus.cs \
 	Migo/Migo.Syndication/Enumerations/FeedDownloadError.cs \
 	Migo/Migo.Syndication/Enumerations/FeedDownloadStatus.cs \
-	Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_ACTION.cs \
-	Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_STATUS.cs \
 	Migo/Migo.Syndication/Enumerations/FEEDS_EVENTS_DOWNLOAD_COUNT_FLAGS.cs \
 	Migo/Migo.Syndication/Enumerations/FEEDS_EVENTS_ITEM_COUNT_FLAGS.cs \
-	Migo/Migo.Syndication/Enumerations/FEEDS_SYNC_SETTING.cs \
+	Migo/Migo.Syndication/Enumerations/FeedSyncSetting.cs \
 	Migo/Migo.Syndication/EventArgs/FeedDownloadCompletedEventArgs.cs \
 	Migo/Migo.Syndication/EventArgs/FeedDownloadCountChangedEventArgs.cs \
 	Migo/Migo.Syndication/EventArgs/FeedEventArgs.cs \

Modified: trunk/banshee/src/Libraries/Migo/Migo.mdp
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo.mdp	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo.mdp	Wed Apr 23 18:12:28 2008
@@ -22,13 +22,13 @@
     <File name="Migo/Migo.Net/AsyncWebClient.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Net/AsyncWebClientStatus.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Net/TransferStatusManager.cs" subtype="Code" buildaction="Compile" />
-    <File name="Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_ACTION.cs" subtype="Code" buildaction="Compile" />
-    <File name="Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_STATUS.cs" subtype="Code" buildaction="Compile" />
+    <File name="Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncAction.cs" subtype="Code" buildaction="Compile" />
+    <File name="Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncStatus.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/Enumerations/FeedDownloadError.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/Enumerations/FeedDownloadStatus.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/Enumerations/FEEDS_EVENTS_DOWNLOAD_COUNT_FLAGS.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/Enumerations/FEEDS_EVENTS_ITEM_COUNT_FLAGS.cs" subtype="Code" buildaction="Compile" />
-    <File name="Migo/Migo.Syndication/Enumerations/FEEDS_SYNC_SETTING.cs" subtype="Code" buildaction="Compile" />
+    <File name="Migo/Migo.Syndication/Enumerations/FeedSyncSetting.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/EventArgs/FeedDownloadCompletedEventArgs.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/EventArgs/FeedDownloadCountChangedEventArgs.cs" subtype="Code" buildaction="Compile" />
     <File name="Migo/Migo.Syndication/EventArgs/FeedEventArgs.cs" subtype="Code" buildaction="Compile" />

Copied: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncAction.cs (from r3810, /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_ACTION.cs)
==============================================================================
--- /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_ACTION.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncAction.cs	Wed Apr 23 18:12:28 2008
@@ -28,10 +28,10 @@
  
  namespace Migo.Syndication 
  {
-    public enum FEEDS_BACKGROUNDSYNC_ACTION : int
+    public enum FeedBackgroundSyncAction : int
     {
-        FBSA_DISABLE = 0,
-        FBSA_ENABLE = 1,
-        FBSA_RUNNOW = 2
+        Disable = 0,
+        Enable = 1,
+        RunNow = 2
     }
  }

Copied: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncStatus.cs (from r3810, /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_STATUS.cs)
==============================================================================
--- /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_BACKGROUNDSYNC_STATUS.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedBackgroundSyncStatus.cs	Wed Apr 23 18:12:28 2008
@@ -28,9 +28,9 @@
 
  namespace Migo.Syndication 
  {
-    public enum FEEDS_BACKGROUNDSYNC_STATUS : int 
+    public enum FeedBackgroundSyncStatus : int 
     {
-        FBSS_DISABLED = 0,
-        FBSS_ENABLED = 1
+        Disabled = 0,
+        Enabled = 1
     }
  }

Copied: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedSyncSetting.cs (from r3810, /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_SYNC_SETTING.cs)
==============================================================================
--- /trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FEEDS_SYNC_SETTING.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Enumerations/FeedSyncSetting.cs	Wed Apr 23 18:12:28 2008
@@ -28,10 +28,10 @@
 
 namespace Migo.Syndication
 {
-    public enum FEEDS_SYNC_SETTING : int
+    public enum FeedSyncSetting : int
     {
-        FSS_DEFAULT = 0,
-        FSS_INTERVAL = 1,
-        FSS_MANUAL = 2      
+        Default = 0,
+        Interval = 1,
+        Manual = 2      
     };
 }

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Feed.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Feed.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Feed.cs	Wed Apr 23 18:12:28 2008
@@ -80,7 +80,7 @@
         private string name;
         private FeedsManager parent;        
         private DateTime pubDate;
-        private FEEDS_SYNC_SETTING syncSetting;
+        private FeedSyncSetting syncSetting;
         private string title;
         private long ttl;  
         private long unreadItemCount;  
@@ -278,7 +278,7 @@
             get { lock (sync) { return pubDate; } }
         }
         
-		public FEEDS_SYNC_SETTING SyncSetting 
+		public FeedSyncSetting SyncSetting 
 		{ 
             get { lock (sync) { return syncSetting; } } 
         }
@@ -378,7 +378,7 @@
             itemsByID = new Dictionary<long,FeedItem> ();
             localID = -1;   
             maxItemCount = 200; //parent.ItemCountLimit;        IGNORED FOR NOW     
-            syncSetting = FEEDS_SYNC_SETTING.FSS_DEFAULT;            
+            syncSetting = FeedSyncSetting.Default;            
             unreadItemCount = 0;       
             copyright = String.Empty;
             description = String.Empty;

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedsManager.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedsManager.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/FeedsManager.cs	Wed Apr 23 18:12:28 2008
@@ -94,11 +94,11 @@
         public event EventHandler<FeedItemEventArgs> FeedItemAdded;
         public event EventHandler<FeedItemEventArgs> FeedItemRemoved;           
         
-        public FEEDS_BACKGROUNDSYNC_STATUS BackgroundSyncStatus 
+        public FeedBackgroundSyncStatus BackgroundSyncStatus 
         {
             get {
                 lock (sync) {
-                    return FEEDS_BACKGROUNDSYNC_STATUS.FBSS_DISABLED;
+                    return FeedBackgroundSyncStatus.Disabled;
                 }
             }
         }        
@@ -248,7 +248,7 @@
             }
         }
         
-        public void BackgroundSync (FEEDS_BACKGROUNDSYNC_ACTION action)
+        public void BackgroundSync (FeedBackgroundSyncAction action)
         {
             throw new NotImplementedException ("BackgroundSync");
         }

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeed.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeed.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeed.cs	Wed Apr 23 18:12:28 2008
@@ -73,7 +73,7 @@
         string Name { get; }
         IFeedsManager Parent { get; }
         DateTime PubDate { get; }
-        FEEDS_SYNC_SETTING SyncSetting { get; }
+        FeedSyncSetting SyncSetting { get; }
         string Title { get; }
         
         // TTL is an optional feed element. The property value is 0 if not specified in the source.

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeedsManager.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeedsManager.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/IFeedsManager.cs	Wed Apr 23 18:12:28 2008
@@ -45,7 +45,7 @@
         event EventHandler<FeedItemEventArgs> FeedItemAdded;
         event EventHandler<FeedItemEventArgs> FeedItemRemoved;
         
-        FEEDS_BACKGROUNDSYNC_STATUS BackgroundSyncStatus { get; }             
+        FeedBackgroundSyncStatus BackgroundSyncStatus { get; }             
         long DefaultInterval { get; set; }
         ReadOnlyCollection<IFeed> Feeds { get; }
         long ItemCountLimit { get; }     
@@ -54,7 +54,7 @@
         
         void AsyncSyncAll ();
         
-        void BackgroundSync (FEEDS_BACKGROUNDSYNC_ACTION action);
+        void BackgroundSync (FeedBackgroundSyncAction action);
         
         IFeed CreateFeed (string feedUrl);                
         IFeed CreateFeed (string feedName, string feedUrl);        

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Db/FeedDataWrapper.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Db/FeedDataWrapper.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Db/FeedDataWrapper.cs	Wed Apr 23 18:12:28 2008
@@ -178,15 +178,15 @@
             get { return GetDateTimeSafe ((int)FeedPropertyID.PubDate); } 
         }
         
-        public FEEDS_SYNC_SETTING SyncSetting { 
+        public FeedSyncSetting SyncSetting { 
             get {                 
                 int dbVal = GetInt32Safe ((int)FeedPropertyID.SyncSetting);
 
-                if (!Enum.IsDefined (typeof (FEEDS_SYNC_SETTING), dbVal)) {
+                if (!Enum.IsDefined (typeof (FeedSyncSetting), dbVal)) {
                     dbVal = 0;
                 }                
 
-                return (FEEDS_SYNC_SETTING) dbVal;
+                return (FeedSyncSetting) dbVal;
             } 
         }
         

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/IFeedWrapper.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/IFeedWrapper.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/IFeedWrapper.cs	Wed Apr 23 18:12:28 2008
@@ -52,7 +52,7 @@
         long MaxItemCount { get;}
         string Name { get; }
         DateTime PubDate { get; }
-        FEEDS_SYNC_SETTING SyncSetting { get; }
+        FeedSyncSetting SyncSetting { get; }
         string Title { get; }    
         long Ttl { get; }  
         string Url { get; }

Modified: trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Rss/RssFeedWrapper.cs
==============================================================================
--- trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Rss/RssFeedWrapper.cs	(original)
+++ trunk/banshee/src/Libraries/Migo/Migo/Migo.Syndication/Migo.Syndication.Data/Wrappers/Rss/RssFeedWrapper.cs	Wed Apr 23 18:12:28 2008
@@ -133,9 +133,9 @@
         
         /* IFeedWrapper interface specific properties not used during update */
 
-        public FEEDS_SYNC_SETTING SyncSetting
+        public FeedSyncSetting SyncSetting
         {
-            get { return FEEDS_SYNC_SETTING.FSS_DEFAULT; }   
+            get { return FeedSyncSetting.Default; }   
         }        
         
         public long MaxItemCount



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