[f-spot] Remove unused FotkiRemote.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Remove unused FotkiRemote.
- Date: Sun, 7 Jun 2009 15:34:05 -0400 (EDT)
commit 1bb644913aa5df818482782c8eb62b962e72f32f
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat Jun 6 23:56:27 2009 +0200
Remove unused FotkiRemote.
Has been bitrotting for four years, is not used and I don't recall
anyone asking for it (note: this is not the same fotki as in Bug
584760 â?? Implementing export to fotki.yandex.ru).
---
src/FotkiRemote.cs | 78 ----------------------------------------------------
src/Makefile.am | 1 -
2 files changed, 0 insertions(+), 79 deletions(-)
diff --git a/src/FotkiRemote.cs b/src/FotkiRemote.cs
deleted file mode 100644
index 9adefe9..0000000
--- a/src/FotkiRemote.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Simple upload based on the api at tcpdumps of the fotki web interfaces
- *
- */
-using System;
-using System.IO;
-using System.Text;
-using System.Collections;
-using System.Collections.Specialized;
-using System.Net;
-using FSpot;
-
-public class FotkiRemote {
- // This is the up
- public static string UploadBaseUrl = "http://public.fotki.com/";
- public static string AuthUrl = "http://login.fotki.com/";
-
- private CookieContainer cookies;
-
- string login;
- string passwd;
-
- public void Upload (Photo photo, string gallery)
- {
- if (login == null || passwd == null)
- throw new Exception ("Must Login First");
-
- string path = string.Format ("/{0}/{1}/", login, gallery);
-
- FormClient client = new FormClient (cookies);
- client.SuppressCookiePath = true;
- client.Add ("cmd", "uploadns1");
- client.Add ("start", System.Web.HttpUtility.UrlEncode (path));
- client.Add ("photo", new FileInfo (photo.DefaultVersionUri.LocalPath));
- client.Add ("desc", photo.Description);
- if (photo.Tags != null) {
- StringBuilder taglist = new StringBuilder ();
-
- foreach (Tag t in photo.Tags) {
- taglist.Append (t.Name + " ");
- }
-
- client.Add ("keywords", taglist.ToString ());
- }
-
- string upload_url = UploadBaseUrl + path + "?";
-
- Stream response = client.Submit (upload_url).GetResponseStream ();
- StreamReader reader = new StreamReader (response, Encoding.UTF8);
-
- Console.WriteLine (reader.ReadToEnd ());
- }
-
- public void Login (string login, string passwd)
- {
- FormClient client = new FormClient (cookies);
- client.SuppressCookiePath = true;
- client.Add ("finish", String.Empty);
- client.Add ("check_cookies", String.Empty);
- client.Add ("login", login);
- client.Add ("password", passwd);
-
- Stream response = client.Submit (AuthUrl).GetResponseStream ();
- StreamReader reader = new StreamReader (response, Encoding.UTF8);
-
- Console.WriteLine (reader.ReadToEnd ());
-
- this.login = login;
- this.passwd = passwd;
- }
-
- public FotkiRemote ()
- {
- //FIXME this api is lame
- cookies = new CookieContainer ();
- cookies.Add (new Cookie ("c", "1"));
- }
-}
diff --git a/src/Makefile.am b/src/Makefile.am
index 7afa0b7..cf10222 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -158,7 +158,6 @@ F_SPOT_CSDISTFILES = \
$(srcdir)/Filters/SharpFilter.cs \
$(srcdir)/Filters/UniqueNameFilter.cs \
$(srcdir)/Filters/WhiteListFilter.cs \
- $(srcdir)/FotkiRemote.cs \
$(srcdir)/FormClient.cs \
$(srcdir)/FullScreenView.cs \
$(srcdir)/GdkGlx.cs \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]