チェンジセット 2624
- コミット日時:
- 2009/05/11 22:19:46 (3 年前)
- ファイル:
-
- air/TLife/branches/OAuth/application.xml (更新) (1 diff)
- air/TLife/trunk/air/TLife.air (更新) (変更前)
- air/TLife/trunk/air/version.xml (更新) (1 diff)
- air/TLife/trunk/bin/TLife.swf (更新) (変更前)
- air/TLife/trunk/src/uwi/db/DBSelectThread.as (更新) (4 diffs)
- air/TLife/trunk/src/uwi/shortening/URLExpandThread.as (更新) (1 diff)
- air/TLife/trunk/src/uwi/shortening/URLShortenThread.as (更新) (1 diff)
- air/TLife/trunk/src/uwi/thread/InitialMovementThread.as (更新) (3 diffs)
- air/TLife/trunk/src/uwi/thread/MainThread.as (更新) (1 diff)
- air/TLife/trunk/src/uwi/thread/event/DataGridEventThread.as (更新) (1 diff)
- air/TLife/trunk/src/uwi/thread/event/PostEventThread.as (更新) (2 diffs)
- air/TLife/trunk/src/uwi/twitter/TwitterLoginThread.as (更新) (1 diff)
- air/TLife/trunk/src/uwi/twitter/TwitterPostThread.as (更新) (1 diff)
- air/TLife/trunk/src/uwi/ui/friends/FriendsEventThread.as (更新) (4 diffs)
- air/TLife/trunk/src/uwi/util/URLPostThread.as (更新) (2 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
air/TLife/branches/OAuth/application.xml
r2623 r2624 3 3 4 4 <id>uwi.TLife</id> 5 <version>alpha1 5</version>5 <version>alpha16</version> 6 6 <filename>TLife</filename> 7 7 <name>TLife</name> air/TLife/trunk/air/version.xml
r2623 r2624 1 1 <version> 2 <version>alpha1 5/version>2 <version>alpha16/version> 3 3 <url>http://www.libspark.org/svn/air/TLife/trunk/air/TLife.air</url> 4 4 </version> air/TLife/trunk/src/uwi/db/DBSelectThread.as
r2621 r2624 21 21 this.name = "DBSelect"; 22 22 stmt = new SQLStatement(); 23 Logger.debug("DBSelectThraed sql : " + sqltxt);23 // Logger.debug("DBSelectThraed sql : " + sqltxt); 24 24 stmt.sqlConnection = conn; 25 25 stmt.text = sqltxt; … … 34 34 protected override function run() : void 35 35 { 36 // Logger.debug("DBSelectThread begin sql : " + stmt.text);37 36 result = null; 38 37 try { … … 43 42 Logger.error("DBSelectThread catch Error : " + e.message); 44 43 } 45 // Logger.debug("DBSelectThread end sql : " + stmt.text);46 44 next(dummy); 47 45 } … … 49 47 private function dummy() : void 50 48 { 51 52 49 } 53 50 air/TLife/trunk/src/uwi/shortening/URLExpandThread.as
r2589 r2624 49 49 if (rh.name == "Location") { 50 50 this.expanded = rh.value; 51 Logger.debug("URLExpandThread Succe ssed url : " + url + " -> " + expanded);51 Logger.debug("URLExpandThread Succeeded url : " + url + " -> " + expanded); 52 52 return; 53 53 } air/TLife/trunk/src/uwi/shortening/URLShortenThread.as
r2589 r2624 53 53 { 54 54 this.shortened = ult.loader.data; 55 Logger.debug("URLShortenThread Succe ssed url : " + ult.request.url + " -> " + shortened);55 Logger.debug("URLShortenThread Succeeded url : " + ult.request.url + " -> " + shortened); 56 56 } 57 57 air/TLife/trunk/src/uwi/thread/InitialMovementThread.as
r2621 r2624 10 10 import uwi.twitter.TwitterLoginThread; 11 11 import uwi.twitter.TwitterMobileLoginThread; 12 import uwi.twitter.TwitterMobileLogoutThread; 12 13 import uwi.util.CommonData; 13 14 import uwi.util.TimerThread; … … 40 41 protected override function run() : void 41 42 { 43 // ログイン中は無効 42 44 if (CommonData.state == 10) return; 45 46 // 自動再ログインスレッドをリセット 43 47 if (CommonData.art != null) { 44 48 CommonData.art.interrupt(); … … 55 59 56 60 s = getTimer(); 61 var se : SerialExecutor = new SerialExecutor(); 62 // ログインしていたらログアウトする 63 if (CommonData.state == 1) { 64 se.addThread(new TwitterMobileLogoutThread()); 65 } 57 66 tlt = new TwitterMobileLoginThread(CommonData.configxml.login.userid, password); 67 se.addThread(tlt); 58 68 CommonData.state = 10; 59 tlt.start();60 tlt.join();69 se.start(); 70 se.join(); 61 71 next(onLogin); 62 72 } air/TLife/trunk/src/uwi/thread/MainThread.as
r2622 r2624 250 250 251 251 // ログアウト 252 if(CommonData.configxml.logoutonexit == "true" ){252 if(CommonData.configxml.logoutonexit == "true" && (CommonData.state == 1 || CommonData.state == 10)){ 253 253 e.preventDefault(); 254 254 var tmlt : TwitterMobileLogoutThread = new TwitterMobileLogoutThread(); air/TLife/trunk/src/uwi/thread/event/DataGridEventThread.as
r2621 r2624 79 79 private function onKeyDown(e : KeyboardEvent) : void 80 80 { 81 trace(e.charCode);82 81 if (datagrid.selectedIndex != -1){ 83 82 switch(e.keyCode) { air/TLife/trunk/src/uwi/thread/event/PostEventThread.as
r2621 r2624 148 148 // TODO 複数reply時のin_reply_to_status_idのとりかた 149 149 var tpt : TwitterPostThread = new TwitterPostThread( 150 "http://twitter.com/statuses/update. json",150 "http://twitter.com/statuses/update.xml", 151 151 "status=" + decodeURI(postarea.text + footer) + 152 152 (CommonData.in_reply_to_status_id != "" ? "&in_reply_to_status_id=" + CommonData.in_reply_to_status_id : "") + 153 153 "&source=TLife" 154 , " GET");154 , "POST"); 155 155 tpt.start(); 156 tpt.join( CommonData.configxml.timeout);156 tpt.join(); 157 157 error(Error, onError); 158 timeout(onTimeout); 159 next(onPostCompleted); 158 next(onPostComplete); 160 159 } 161 160 162 private function onPostComplete d() : void161 private function onPostComplete() : void 163 162 { 164 Logger.debug("PostEventThread Succe ssed");163 Logger.debug("PostEventThread Succeeded"); 165 164 166 165 CommonData.in_reply_to_status_id = ""; … … 180 179 next(waitEvents); 181 180 } 182 183 private function onTimeout() : void184 {185 Logger.warn("PostEventThread Timeout");186 postbtn.enabled = true;187 next(waitEvents);188 }189 181 } 190 182 air/TLife/trunk/src/uwi/twitter/TwitterLoginThread.as
r2589 r2624 76 76 ult = new URLLoaderThread(req); 77 77 ult.start(); 78 trace("timeout : " + int(CommonData.configxml.timeout));79 78 ult.join(CommonData.configxml.timeout); 80 79 event(ult.loader, HTTPStatusEvent.HTTP_RESPONSE_STATUS, onResponse); air/TLife/trunk/src/uwi/twitter/TwitterPostThread.as
r2531 r2624 52 52 CommonData.mainstatusbar.write(eventname + "成功!"); 53 53 } 54 onSucceed.apply();54 if(onSucceed != null)onSucceed.apply(); 55 55 }else{ 56 56 // Alert.show(CommonData.TWITTER_RESPONSE[event.status], eventname); air/TLife/trunk/src/uwi/ui/friends/FriendsEventThread.as
r2621 r2624 22 22 private var friends : Friends; 23 23 private var dbst : DBSelectThread; 24 private var sub : EventThread;25 24 private var le : LazyExecutor; 26 25 … … 33 32 protected override function run() : void 34 33 { 35 sub = new EventThread(friends, KeyboardEvent.KEY_DOWN, onKeyDown);36 sub.start();37 34 loadInfo(); 38 35 } … … 40 37 protected override function finalize() : void 41 38 { 42 sub = null;43 39 le = null; 44 40 } … … 47 43 { 48 44 event(friends.searchbox, Event.CHANGE, function(e : Event) : void { le.impulse(); next(waitEvents); } ); 49 }50 51 private function onKeyDown(e : KeyboardEvent) : void52 {53 friends.searchbox.setFocus();54 next(sub.waitEvents);55 45 } 56 46 air/TLife/trunk/src/uwi/util/URLPostThread.as
r2621 r2624 33 33 this.poststr = poststr; 34 34 this.timeout_ = timeout_; 35 this.response = response; 35 36 } 36 37 … … 39 40 var req : URLRequest = new URLRequest(url); 40 41 req.method = URLRequestMethod.POST; 41 req.data = encodeURI(poststr);42 req.data = poststr; 42 43 43 44 ult = new URLLoaderThread(req);

