Used to access asset manager functionity to get files locally or from a server.
Public Member Functions | |
__init__ (str pName, object pObject=None) | |
Constructor. | |
IObject_Declare (K_IMPLEMENTATION) | |
bool | Initialize () |
Initialize the connection to the server. | |
FBAssetFile | BrowseForFile () |
Let the user browse the asset database to select a file. | |
FBAssetFolder | BrowseForFolder () |
Let the user browse the asset database to select a folder. | |
FBAssetFolder | CreateServerPath (str pServerPath) |
Create a folder path on the server side by adding each missing folders. | |
bool | FileIsManaged (str pFilename) |
Is the specified local file managed (ie. | |
bool | WithinManagedPath (str pLocalPath) |
Is the specified local path below a managed path. | |
str | MapLocalPathToServerPath (str pLocalPath) |
Convert the local path to a server path by using managed paths mapping. | |
FBAssetFile | GetAssetFile (str pServerFilename) |
Get a file object using it's server path. | |
FBAssetFile | GetAssetFileFromLocalPath (str pLocalFilename) |
Get a file object using it's local path. | |
FBAssetFolder | GetAssetFolder (str pServerPath) |
Get a folder object using it's server path. | |
FBAssetFolder | GetAssetFolderFromLocalPath (str pLocalPath) |
Get a folder object using it's local path. | |
ShowSettings () | |
Display a dialog that let the user changes settings. | |
int | GetFileOptions () |
Get the file options (i.e. | |
bool | CheckAvailability () |
Check if this manager can be used on the computer. | |
Public Attributes | |
FBPropertyString | Name |
Read Write Property: Unique Name. | |
FBPropertyString | Description |
Read Write Property: Description of the manager. | |
FBPropertyBase | MenuFlags |
Read Write Property: Flags specifing which menu items are added by the manager. | |
str | LastError |
Last error string. |
Constructor.
pName | Name of Command. |
pObject | Internal parent object to own FBComponent (default is NULL). |
IObject_Declare | ( | K_IMPLEMENTATION | ) |
Reimplemented from FBComponent.
bool Initialize | ( | ) |
Initialize the connection to the server.
FBAssetFile BrowseForFile | ( | ) |
Let the user browse the asset database to select a file.
FBAssetFolder BrowseForFolder | ( | ) |
Let the user browse the asset database to select a folder.
FBAssetFolder CreateServerPath | ( | str | pServerPath | ) |
Create a folder path on the server side by adding each missing folders.
pServerPath | The path to create on the server side. |
Is the specified local file managed (ie.
also present in the database).
pFilename | Path to the file on the local disk. |
Is the specified local path below a managed path.
pLocalPath | Local path to be checked. |
Convert the local path to a server path by using managed paths mapping.
pLocalPath | Local path to be mapped. |
FBAssetFile GetAssetFile | ( | str | pServerFilename | ) |
Get a file object using it's server path.
pServerFilename | Path to the file on the server. |
FBAssetFile GetAssetFileFromLocalPath | ( | str | pLocalFilename | ) |
Get a file object using it's local path.
pLocalFilename | Path to the file on the local disk. |
FBAssetFolder GetAssetFolder | ( | str | pServerPath | ) |
Get a folder object using it's server path.
pServerPath | Path the the folder on the server. |
FBAssetFolder GetAssetFolderFromLocalPath | ( | str | pLocalPath | ) |
Get a folder object using it's local path.
pLocalPath | Path to the folder on the local disk. |
ShowSettings | ( | ) |
Display a dialog that let the user changes settings.
int GetFileOptions | ( | ) |
Get the file options (i.e.
what to do when loading, saving or closing managed files).
bool CheckAvailability | ( | ) |
Check if this manager can be used on the computer.
Read Write Property: Description of the manager.
FBPropertyBase MenuFlags |
Read Write Property: Flags specifing which menu items are added by the manager.
Last error string.