Files
frelay/ClientCore/RemoteFile.cpp

25 lines
543 B
C++
Raw Normal View History

2025-06-15 14:31:54 +08:00
#include "RemoteFile.h"
#include <InfoPack.hpp>
2025-06-15 23:13:30 +08:00
2025-06-15 14:31:54 +08:00
#include "LocalFile.h"
void RemoteFile::setClientCore(ClientCore* cliCore)
{
cliCore_ = cliCore;
cliCore_->SetPathCall(pathCall_);
cliCore_->SetFileCall(fileCall_);
}
bool RemoteFile::GetHome()
{
InfoMsg info;
2025-06-15 23:13:30 +08:00
return cliCore_->Send<InfoMsg>(info, FBT_CLI_ASK_HOME, cliCore_->GetRemoteID());
2025-06-15 14:31:54 +08:00
}
bool RemoteFile::GetDirFile(const QString& dir)
{
InfoMsg info;
2025-06-15 23:13:30 +08:00
info.msg = dir;
return cliCore_->Send<InfoMsg>(info, FBT_CLI_ASK_DIRFILE, cliCore_->GetRemoteID());
2025-06-15 14:31:54 +08:00
}