[smuxi: 11/15] [Common] Prefix 'Begin' to IconCache's async functions



commit 3dda9ac5c447290d7cde47ac37856df222ed4c12
Author: Carlos Martín Nieto <cmn dwim me>
Date:   Mon Feb 2 13:54:13 2015 +0100

    [Common] Prefix 'Begin' to IconCache's async functions
    
    This is a common nomenclature in C# to indicate that a particular method
    is going to run in the background thread and needs an action to perform
    when it's done.

 src/Common/IconCache.cs                            |    4 ++--
 src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs |    2 +-
 src/Frontend-GNOME/Views/MessageTextView.cs        |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Common/IconCache.cs b/src/Common/IconCache.cs
index f2d3f5a..96f696b 100644
--- a/src/Common/IconCache.cs
+++ b/src/Common/IconCache.cs
@@ -83,7 +83,7 @@ namespace Smuxi.Common
         /// <remarks>
         /// This method is thread safe
         /// </remarks>
-        public void DownloadFile(string protocol, string iconName, string fileUrl,
+        public void BeginDownloadFile(string protocol, string iconName, string fileUrl,
             Action<string> onSuccess, Action<Exception> onError)
         {
             EnqueueDownload(protocol, iconName, fileUrl, DownloadFileWorker, onSuccess, onError);
@@ -188,7 +188,7 @@ namespace Smuxi.Common
         /// <remarks>
         /// This method is thread safe
         /// </remarks>
-        public void DownloadIcon(string protocol, string iconName, string websiteUrl,
+        public void BeginDownloadIcon(string protocol, string iconName, string websiteUrl,
             Action<string> onSuccess, Action<Exception> onError)
         {
             EnqueueDownload(protocol, iconName, websiteUrl, DownloadServerIcon, onSuccess, onError);
diff --git a/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs 
b/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
index 9f9f558..32b1fc6 100644
--- a/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
+++ b/src/Frontend-GNOME/Views/Chats/ProtocolChatView.cs
@@ -244,7 +244,7 @@ namespace Smuxi.Frontend.Gnome
                     }
                 }
                 iconCache.Proxy = proxy;
-                iconCache.DownloadIcon(protocol, iconName, websiteUrl, UpdateServerIcon, null);
+                iconCache.BeginDownloadIcon(protocol, iconName, websiteUrl, UpdateServerIcon, null);
             }
         }
 
diff --git a/src/Frontend-GNOME/Views/MessageTextView.cs b/src/Frontend-GNOME/Views/MessageTextView.cs
index 09005f5..a87febf 100644
--- a/src/Frontend-GNOME/Views/MessageTextView.cs
+++ b/src/Frontend-GNOME/Views/MessageTextView.cs
@@ -278,7 +278,7 @@ namespace Smuxi.Frontend.Gnome
             var mark = new Gtk.TextMark(null, true);
             buffer.AddMark(mark, iter);
             var emojiUrl = Emojione.UnicodeToUrl(unicode);
-            _EmojiCache.DownloadFile("emojione", emojiName, emojiUrl,
+            _EmojiCache.BeginDownloadFile("emojione", emojiName, emojiUrl,
                 (path) => {
                     GLib.Idle.Add(delegate {
                         var markIter = buffer.GetIterAtMark(mark);


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