[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/microblog/contents/ui
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-01-25 13:15:34
Message-ID: 20110125131534.8CD8DAC8B9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1217024 by mart:

use real retweets


 M  +1 -1      MessageWidget.qml  
 M  +12 -3     PostingWidget.qml  
 M  +1 -1      main.qml  


--- trunk/playground/base/plasma/declarative-applets/replacements/microblog/contents/ui/MessageWidget.qml \
#1217023:1217024 @@ -61,7 +61,7 @@
         width: 24
         height: 24
         onClicked: {
-            main.retweetAsked(model["Id"], "♻ @" + model["User"] + ": " + \
model["Status"]); +            main.retweetAsked(model["Id"]);
         }
     }
     Text {
--- trunk/playground/base/plasma/declarative-applets/replacements/microblog/contents/ui/PostingWidget.qml \
#1217023:1217024 @@ -62,16 +62,15 @@
                     if (text[text.length-1] == "\n") {
                         var service = \
                messagesDataSource.serviceForSource(messagesDataSource.connectedSources[0])
                
                         var operation = service.operationDescription("update");
-                        operation.password = password
                         operation.status = text;
                         operation.in_reply_to_status_id = inReplyToStatusId
-                        print(inReplyToStatusId)
                         service.startOperationCall(operation);
                         text = ""
                         inReplyToStatusId = ""
 
                         operation = service.operationDescription("refresh");
                         service.startOperationCall(operation);
+                        plasmoid.busy = true
                     } else if (text.length == 0) {
                         inReplyToStatusId = ""
                     }
@@ -83,7 +82,17 @@
                         postTextEdit.text = message
                     }
                     onRetweetAsked: {
-                        postTextEdit.text = message
+                        var service = \
messagesDataSource.serviceForSource(messagesDataSource.connectedSources[0]) +         \
var operation = service.operationDescription("statuses/retweet"); +                   \
operation.id = id; +                        print(id)
+                        service.startOperationCall(operation);
+                        text = ""
+                        inReplyToStatusId = ""
+
+                        operation = service.operationDescription("refresh")
+                        service.startOperationCall(operation)
+                        plasmoid.busy = true
                     }
                 }
             }
--- trunk/playground/base/plasma/declarative-applets/replacements/microblog/contents/ui/main.qml \
#1217023:1217024 @@ -32,7 +32,7 @@
     property string password
 
     signal replyAsked(string id, string message)
-    signal retweetAsked(string id, string message)
+    signal retweetAsked(string id)
 
     Component.onCompleted: {
         plasmoid.addEventListener('ConfigChanged', configChanged);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic