Examples of FrostDownloadItem


Examples of frost.fileTransfer.download.FrostDownloadItem

                    }
                }
                if( frostDownloadItemNameMap.containsKey(filename)) {
                  continue;
                }
                final FrostDownloadItem frostDwonloadItem = new FrostDownloadItem(
                  filename,
                  fa.getKey(),
                  fa.getFileSize()
                );
               
                frostDwonloadItem.setAssociatedMessageId(selectedMessage.getMessageId());
                frostDwonloadItem.setAssociatedBoardName(selectedMessage.getBoard().getBoardFilename());
                if( Core.frostSettings.getBoolValue(SettingsClass.USE_BOARDNAME_DOWNLOAD_SUBFOLDER_ENABLED) ){
                  frostDwonloadItem.setDownloadDir(frostDwonloadItem.getDownloadDir().concat(frostDwonloadItem.getAssociatedBoardName()));
                }
                frostDownloadItemList.add( frostDwonloadItem );
                frostDownloadItemKeyMap.put(fa.getKey(), frostDwonloadItem);
                frostDownloadItemNameMap.put(filename, frostDwonloadItem);
            }
View Full Code Here

Examples of frost.fileTransfer.download.FrostDownloadItem

                }
                if( frostDownloadItemNameMap.containsKey(name)) {
                  continue;
                }
               
                FrostDownloadItem frostDownloadItem = new FrostDownloadItem(name, key);
                frostDownloadItem.setAssociatedMessageId(selectedMessage.getMessageId());
                frostDownloadItem.setAssociatedBoardName(selectedMessage.getBoard().getBoardFilename());
                if( Core.frostSettings.getBoolValue(SettingsClass.USE_BOARDNAME_DOWNLOAD_SUBFOLDER_ENABLED) ){
                  frostDownloadItem.setDownloadDir(frostDownloadItem.getDownloadDir().concat(frostDownloadItem.getAssociatedBoardName()));
                }
                frostDownloadItemList.add( frostDownloadItem );
                frostDownloadItemKeyMap.put(key, frostDownloadItem);
                frostDownloadItemNameMap.put(name, frostDownloadItem);
            }
View Full Code Here

Examples of frost.fileTransfer.download.FrostDownloadItem

                               "Removed from download files: "+fileName);
                return null;
            }
        }

        final FrostDownloadItem dlItem = new FrostDownloadItem(
                fileName,
                prefix,
                downloadDir,
                (fileSize<=0 ? -1 : fileSize),
                key,
                Boolean.valueOf(enabled),
                state,
                downloadAddedTime,
                downloadStartedTime,
                downloadFinishedTime,
                retries,
                lastDownloadStopTime,
                gqIdentifier,
                isLoggedToFile,
                isTracked,
                isCompletionProgRun,
                runtimeSecondsWithoutProgress,
                oldDoneBlocks,
                associatedBoardName,
                associatedMessageId,
                priority
        );

        dlItem.setFileListFileObject(sharedFileObject);

        return dlItem;
    }
View Full Code Here

Examples of frost.fileTransfer.download.FrostDownloadItem

    final int numberOfRows = addNewDownloadsTableModel.getRowCount();
    addNewDownloadsTable.clearSelection();
    for( int indexPos = numberOfRows -1; indexPos >= 0; indexPos--) {
      final AddNewDownloadsTableMember addNewDownloadsTableMember =
        addNewDownloadsTableModel.getRow(indexPos);
      final FrostDownloadItem frostDownloadItem = addNewDownloadsTableMember.getDownloadItem();
      if(new java.io.File(frostDownloadItem.getDownloadDir() + frostDownloadItem.getFileName()).exists() ) {
        addNewDownloadsTableModel.deleteRow(addNewDownloadsTableMember);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.