Ticket #3395: codycam.diff
File codycam.diff, 1.7 KB (added by , 16 years ago) |
---|
-
CodyCam.cpp
744 744 fUploadClientSelector = new BMenuField("UploadClient", NULL, 745 745 fUploadClientMenu, NULL); 746 746 747 fFtpSetupBox->SetLabel(" FTP");747 fFtpSetupBox->SetLabel("Output"); 748 748 // this doesn't work with the layout manager 749 //fFtpSetupBox->SetLabel(fUploadClientSelector);750 fUploadClientSelector->SetLabel("Type:");749 // fFtpSetupBox->SetLabel(fUploadClientSelector); 750 fUploadClientSelector->SetLabel("Type:"); 751 751 752 752 BGridLayout *ftpLayout = new BGridLayout(kXBuffer, 0); 753 753 ftpLayout->SetInsets(10, 15, 5, 5); -
VideoConsumer.cpp
606 606 void 607 607 VideoConsumer::FtpThread() 608 608 { 609 char fullPath[B_PATH_NAME_LENGTH]; 609 610 FUNCTION("VideoConsumer::FtpThread\n"); 610 611 if (LocalSave(fFileNameText, fFtpBitmap) == B_OK) 611 if (fUploadClient == 2) { 612 // 64 + 64 = 128 max 613 snprintf(fullPath, B_PATH_NAME_LENGTH, "%s/%s", fDirectoryText, fFileNameText); 614 LocalSave(fullPath, fFtpBitmap); 615 } else if (LocalSave(fFileNameText, fFtpBitmap) == B_OK) 612 616 FtpSave(fFileNameText); 613 617 614 618 #if 0 … … 688 692 case 1: 689 693 ftp = new SftpClient; 690 694 break; 695 case 2: 696 return B_OK; 691 697 default: 692 698 fprintf(stderr, "invalid upload client %ld\n", fUploadClient); 693 699 return EINVAL; -
CodyCam.h
81 81 const char* kUploadClient[] = { 82 82 "FTP", 83 83 "SFTP", 84 "Local", 84 85 0 85 86 }; 86 87