Пример #1
0
 public TransferPromptListAction(TransferPromptModel model, TransferPromptController controller,
                                 SessionPool source, SessionPool destination, TransferItem directory, Transfer transfer, TransferItemCache cache)
     : base(
         controller, source,
         new InnerTransferPromptListWorker(model, controller, transfer, directory, cache))
 {
 }
Пример #2
0
 public InnerTransferPromptFilterWorker(TransferPromptModel model, TransferPromptController controller,
                                        Transfer transfer, TransferAction action, TransferItemCache cache)
     : base(transfer, action, cache, controller)
 {
     _model      = model;
     _controller = controller;
 }
Пример #3
0
 public InnerTransferPromptListWorker(TransferPromptModel model, TransferPromptController controller,
                                      Transfer transfer, TransferItem directory, TransferItemCache cache)
     : base(transfer, directory.remote, directory.local, controller)
 {
     _model     = model;
     _directory = directory;
     _cache     = cache;
 }
Пример #4
0
 public FilterAction(TransferPromptModel model, TransferPromptController controller,
                     SessionPool source, SessionPool destination,
                     Transfer transfer, TransferAction action, TransferItemCache cache)
     : base(
         controller, source,
         new InnerTransferPromptFilterWorker(model, controller, transfer, action, cache))
 {
 }
Пример #5
0
            public override void run()
            {
                TransferOptions options = new TransferOptions();

                options.reloadRequested = _reload;
                options.resumeRequested = _resume;
                options.invalidateCache = false;
                _transfer.start(TransferPromptController.Create(_controller, _transfer), options);
            }
Пример #6
0
 public ChildGetterTransferPromptBackgrounAction(TransferPromptController controller,
                                                 Transfer transfer,
                                                 Path path,
                                                 List <Path> isLoadingListingInBackground)
 {
     _controller = controller;
     _transfer   = transfer;
     _path       = path;
     _isLoadingListingInBackground = isLoadingListingInBackground;
 }
Пример #7
0
 protected TransferPromptModel(TransferPromptController controller, SessionPool source, SessionPool destination, Transfer transfer)
 {
     _controller  = controller;
     _source      = source;
     _destination = destination;
     Transfer     = transfer;
     _action      =
         TransferAction.forName(
             PreferencesFactory.get()
             .getProperty(String.Format("queue.prompt.{0}.action.default", transfer.getType().name())));
 }
Пример #8
0
        public static TransferPromptController Create(WindowController parent, Transfer transfer)
        {
            // create the controller in the thread that has created the view of the TransferController (parent)
            TransferPromptController promptController = null;

            if (transfer is DownloadTransfer)
            {
                parent.Invoke(delegate { promptController = new DownloadPromptController(parent, transfer); }, true);
                return(promptController);
            }

            if (transfer is UploadTransfer)
            {
                parent.Invoke(delegate { promptController = new UploadPromptController(parent, transfer); }, true);
                return(promptController);
            }
            if (transfer is SyncTransfer)
            {
                parent.Invoke(delegate { promptController = new SyncPromptController(parent, transfer); }, true);
                return(promptController);
            }
            throw new ArgumentException(transfer.toString());
        }
 public DownloadPromptModel(TransferPromptController controller, SessionPool source, SessionPool destination, Transfer transfer)
     : base(controller, source, destination, transfer)
 {
     ;
 }
Пример #10
0
 public DownloadPromptModel(TransferPromptController controller, Transfer transfer) : base(controller, transfer)
 {
     ;
 }
Пример #11
0
 public StatusLabelProgressListener(TransferPromptController controller)
 {
     _controller = controller;
 }
Пример #12
0
 public SyncPromptModel(TransferPromptController controller, Transfer transfer) : base(controller, transfer)
 {
     _filter = new SyncPathFilter(transfer);
 }
Пример #13
0
 protected TransferPromptModel(TransferPromptController controller, Transfer transfer)
 {
     _controller = controller;
     Transfer    = transfer;
 }