about summary refs log tree commit diff stats
path: root/client/trunk/src/com
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-01 18:21:12 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-01 18:21:12 +0000
commitc717b1cd06c3d935cc5d70208bebe57215492eab (patch)
tree608d9ae095449b07f868f66f4471dc9bbb6483ef /client/trunk/src/com
parentbe96f198642944da86e8c43b0eab5e7cd0dacdea (diff)
downloadinstadisc-c717b1cd06c3d935cc5d70208bebe57215492eab.tar.gz
instadisc-c717b1cd06c3d935cc5d70208bebe57215492eab.tar.bz2
instadisc-c717b1cd06c3d935cc5d70208bebe57215492eab.zip
Client: Fixed subcribing code
Previously, after subscribing to a subscription, the client would do nothing to notify the Central Server of this change. Now, an XML-RPC function is sent to it.
Diffstat (limited to 'client/trunk/src/com')
-rw-r--r--client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java b/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java index 2d8ad07..eae52a1 100644 --- a/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java +++ b/client/trunk/src/com/fourisland/instadisc/Item/SubscriptionFile.java
@@ -120,6 +120,10 @@ class SubscriptionFileThread implements Runnable {
120 s.setCategory(headerMap.get("Category")); 120 s.setCategory(headerMap.get("Category"));
121 Wrapper.addSubscription(s); 121 Wrapper.addSubscription(s);
122 122
123 XmlRpc xmlrpc = new XmlRpc("addSubscription");
124 xmlrpc.addParam(headerMap.get("Subscription"));
125 xmlrpc.execute();
126
123 status.setText("You've sucessfully subscribed to that website"); 127 status.setText("You've sucessfully subscribed to that website");
124 } else { 128 } else {
125 status.setText("Error: Subscription file is not well-formed"); 129 status.setText("Error: Subscription file is not well-formed");