Ignore:
Timestamp:
Jan 9, 2017, 11:09:38 AM (3 years ago)
Author:
jrpelegrina
Message:

Update new version: 3.15.02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • filezilla/trunk/fuentes/src/interface/manual_transfer.cpp

    r130 r3185  
    11#include <filezilla.h>
    22#include "manual_transfer.h"
    3 #include "local_filesys.h"
    43#include "auto_ascii_files.h"
    54#include "state.h"
     
    98#include "QueueView.h"
    109#include "xrc_helper.h"
     10
     11#include <libfilezilla/local_filesys.hpp>
    1112
    1213BEGIN_EVENT_TABLE(CManualTransfer, wxDialogEx)
     
    212213}
    213214
    214 void CManualTransfer::OnLocalChanged(wxCommandEvent& event)
     215void CManualTransfer::OnLocalChanged(wxCommandEvent&)
    215216{
    216217        if (XRCCTRL(*this, "ID_DOWNLOAD", wxRadioButton)->GetValue())
     
    219220        wxString file = XRCCTRL(*this, "ID_LOCALFILE", wxTextCtrl)->GetValue();
    220221
    221         m_local_file_exists = CLocalFileSystem::GetFileType(file) == CLocalFileSystem::file;
     222        m_local_file_exists = fz::local_filesys::get_file_type(fz::to_native(file)) == fz::local_filesys::file;
    222223
    223224        SetAutoAsciiState();
    224225}
    225226
    226 void CManualTransfer::OnRemoteChanged(wxCommandEvent& event)
     227void CManualTransfer::OnRemoteChanged(wxCommandEvent&)
    227228{
    228229        SetAutoAsciiState();
    229230}
    230231
    231 void CManualTransfer::OnLocalBrowse(wxCommandEvent& event)
     232void CManualTransfer::OnLocalBrowse(wxCommandEvent&)
    232233{
    233234        int flags;
     
    284285}
    285286
    286 void CManualTransfer::OnOK(wxCommandEvent& event)
     287void CManualTransfer::OnOK(wxCommandEvent&)
    287288{
    288289        if (!UpdateServer())
     
    304305        }
    305306
    306         CLocalFileSystem::local_fileType type = CLocalFileSystem::GetFileType(local_file);
    307         if (type == CLocalFileSystem::dir) {
     307        fz::local_filesys::type type = fz::local_filesys::get_file_type(fz::to_native(local_file));
     308        if (type == fz::local_filesys::dir) {
    308309                wxMessageBoxEx(_("Local file is a directory instead of a regular file."), _("Manual transfer"), wxICON_EXCLAMATION);
    309310                return;
    310311        }
    311         if (!download && type != CLocalFileSystem::file && start) {
     312        if (!download && type != fz::local_filesys::file && start) {
    312313                wxMessageBoxEx(_("Local file does not exist."), _("Manual transfer"), wxICON_EXCLAMATION);
    313314                return;
     
    510511}
    511512
    512 void CManualTransfer::OnSelectSite(wxCommandEvent& event)
     513void CManualTransfer::OnSelectSite(wxCommandEvent&)
    513514{
    514515        std::unique_ptr<wxMenu> pMenu = CSiteManager::GetSitesMenu();
Note: See TracChangeset for help on using the changeset viewer.