OSDN Git Service

画面からタスクマネージャに処理開始を要求する
authoryukihane <yukihane.feather@gmail.com>
Mon, 29 Aug 2011 02:02:49 +0000 (11:02 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 29 Aug 2011 02:02:49 +0000 (11:02 +0900)
frontend/src/yukihane/inqubus/gui/MainFrame.java

index 74b64c7..2fd268a 100644 (file)
@@ -65,6 +65,7 @@ import saccubus.worker.profile.ProxyProfile;
 import saccubus.worker.profile.VideoProfile;
 import yukihane.Util;
 import yukihane.inqubus.Config;
+import yukihane.inqubus.manager.RequestProcess;
 import yukihane.inqubus.manager.TaskManage;
 import yukihane.inqubus.model.Target;
 import yukihane.inqubus.model.TargetsTableModel;
@@ -359,11 +360,12 @@ public class MainFrame extends JFrame {
 
         @Override
         public void actionPerformed(ActionEvent e) {
-            final DownloadProfile prof = new InqubusDownloadProfile();
+            final DownloadProfile downProf = new InqubusDownloadProfile();
             final String id = Util.getVideoId(fldId.getText());
-            logger.log(Level.INFO, prof.toString());
-            // TODO 処理開始
-//            new Download(prof, id).execute();
+            final InqubusConvertProfile convProf = new InqubusConvertProfile();
+            logger.log(Level.INFO, downProf.toString());
+            logger.log(Level.INFO, convProf.toString());
+            taskManager.add(new RequestProcess(downProf, id, convProf));
         }
     }
     /** This method is called from within the constructor to