Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sdk
src
FaspManagerLocation.h
Go to the documentation of this file.
1
7
#ifndef __FASP_MANAGER_LOCATION_H__
8
#define __FASP_MANAGER_LOCATION_H__
9
10
#include "
FaspManagerTypes.h
"
11
12
namespace
Aspera
13
{
14
namespace
FaspManager
15
{
16
21
class
Location
22
{
23
/* Member functions */
24
public
:
25
27
FASP_MANAGER_API
static
Location
*
CreateLocal
( );
28
34
FASP_MANAGER_API
static
Location
*
CreateRemote
(
const
char
* host,
const
char
* user,
const
char
* passwd );
35
42
FASP_MANAGER_API
static
Location
*
CreateRemote
(
const
char
* host,
const
char
* user,
const
char
* identity,
const
char
* passphrase );
43
52
FASP_MANAGER_API
void
SetByteRange
(u_int64_t start, u_int64_t end);
53
55
FASP_MANAGER_API
void
Destroy
( );
56
60
FASP_MANAGER_API
Location
(
const
Location
&loc );
61
65
FASP_MANAGER_API
virtual
bool
IsRemote
( )
const
= 0;
66
71
FASP_MANAGER_API
virtual
char
*
GetHostname
( )
const
= 0;
72
77
FASP_MANAGER_API
virtual
char
*
GetUsername
( )
const
= 0;
78
83
FASP_MANAGER_API
virtual
char
*
GetPassword
( )
const
= 0;
84
86
FASP_MANAGER_API
virtual
char
*
GetIdentity
( )
const
= 0;
87
94
FASP_MANAGER_API
virtual
void
AddFilepath
(
char
const
* path ) = 0;
95
99
FASP_MANAGER_API
virtual
void
AddFilepath
(
char
const
* source,
char
const
* destination ) = 0;
100
101
protected
:
103
FASP_MANAGER_API
Location
( );
104
106
FASP_MANAGER_API
virtual
~Location
( ) = 0;
107
108
};
109
110
}
/* namespace FaspManager */
111
}
/* namespace Aspera */
112
113
#endif
/* __FASP_MANAGER_LOCATION_H__ */
Copyright © 2005 - 2008 Aspera, Inc. |
asperasoft.com