@ -185,7 +185,6 @@ struct VaultDownloadTrans {
: callback ( ) , cbParam ( ) , progressCallback ( ) , cbProgressParam ( ) ,
: callback ( ) , cbParam ( ) , progressCallback ( ) , cbProgressParam ( ) ,
nodeCount ( ) , nodesLeft ( ) , vaultId ( ) , result ( kNetSuccess )
nodeCount ( ) , nodesLeft ( ) , vaultId ( ) , result ( kNetSuccess )
{
{
VaultSuppressCallbacks ( ) ;
}
}
VaultDownloadTrans ( const wchar_t * _tag , FVaultDownloadCallback _callback ,
VaultDownloadTrans ( const wchar_t * _tag , FVaultDownloadCallback _callback ,
@ -195,14 +194,10 @@ struct VaultDownloadTrans {
cbProgressParam ( _cbProgressParam ) , nodeCount ( ) , nodesLeft ( ) ,
cbProgressParam ( _cbProgressParam ) , nodeCount ( ) , nodesLeft ( ) ,
vaultId ( _vaultId ) , result ( kNetSuccess )
vaultId ( _vaultId ) , result ( kNetSuccess )
{
{
StrCopy ( tag , _tag , MAX_PATH ) ;
StrCopy ( tag , _tag , arrsize ( tag ) ) ;
VaultSuppressCallbacks ( ) ;
}
}
~ VaultDownloadTrans ( )
virtual ~ VaultDownloadTrans ( ) { }
{
VaultEnableCallbacks ( ) ;
}
static void VaultNodeFetched (
static void VaultNodeFetched (
ENetError result ,
ENetError result ,
@ -217,6 +212,28 @@ struct VaultDownloadTrans {
) ;
) ;
} ;
} ;
struct VaultDownloadNoCallbacksTrans : VaultDownloadTrans {
VaultDownloadNoCallbacksTrans ( )
: VaultDownloadTrans ( )
{
VaultSuppressCallbacks ( ) ;
}
VaultDownloadNoCallbacksTrans ( const wchar_t * _tag , FVaultDownloadCallback _callback ,
void * _cbParam , FVaultProgressCallback _progressCallback ,
void * _cbProgressParam , unsigned _vaultId )
: VaultDownloadTrans ( _tag , _callback , _cbParam , _progressCallback , _cbProgressParam , _vaultId )
{
VaultSuppressCallbacks ( ) ;
}
~ VaultDownloadNoCallbacksTrans ( )
{
VaultEnableCallbacks ( ) ;
}
} ;
struct VaultAgeInitTrans {
struct VaultAgeInitTrans {
FVaultInitAgeCallback callback ;
FVaultInitAgeCallback callback ;
void * cbState ;
void * cbState ;
@ -4995,6 +5012,25 @@ void VaultDownload (
) ;
) ;
}
}
//============================================================================
void VaultDownloadNoCallbacks (
const wchar tag [ ] ,
unsigned vaultId ,
FVaultDownloadCallback callback ,
void * cbParam ,
FVaultProgressCallback progressCallback ,
void * cbProgressParam
) {
VaultDownloadNoCallbacksTrans * trans = new VaultDownloadNoCallbacksTrans ( tag , callback ,
cbParam , progressCallback , cbProgressParam , vaultId ) ;
NetCliAuthVaultFetchNodeRefs (
vaultId ,
VaultDownloadTrans : : VaultNodeRefsFetched ,
trans
) ;
}
//============================================================================
//============================================================================
struct _DownloadVaultParam {
struct _DownloadVaultParam {
ENetError result ;
ENetError result ;