49 lines
883 B
C++
49 lines
883 B
C++
#include "stdafx.h"
|
|
#include "UploadManager.h"
|
|
#include "SiaDriveConfig.h"
|
|
|
|
using namespace Sia::Api;
|
|
|
|
|
|
CUploadManager::CUploadManager(const CSiaCurl& siaCurl, CSiaDriveConfig* siaDriveConfig) :
|
|
CAutoThread(siaCurl, siaDriveConfig),
|
|
_uploadDatabase(siaDriveConfig->GetRenter_UploadDbFilePath(), SQLite::OPEN_CREATE | SQLite::OPEN_READWRITE)
|
|
{
|
|
StartAutoThread();
|
|
}
|
|
|
|
CUploadManager::~CUploadManager()
|
|
{
|
|
StopAutoThread();
|
|
}
|
|
|
|
void CUploadManager::AutoThreadCallback(const CSiaCurl& siaCurl, CSiaDriveConfig* siaDriveConfig)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
UploadStatus CUploadManager::GetUploadStatus(const String& siaPath) const
|
|
{
|
|
return UploadStatus::NotFound;
|
|
}
|
|
|
|
void CUploadManager::AddOrUpdate(const String& siaPath, const String& filePath)
|
|
{
|
|
|
|
}
|
|
|
|
void CUploadManager::PurgeCompleteStatus()
|
|
{
|
|
|
|
}
|
|
|
|
void CUploadManager::PurgeErrorStatus()
|
|
{
|
|
|
|
}
|
|
|
|
void CUploadManager::Remove(const String& siaPath)
|
|
{
|
|
|
|
} |