MM Developer's Guide
MM Interfaces | MM Methods | MM Types and Misc API


IMoaMmFilePathServices


Interface ID: IID_IMoaMmFilePathServices
Pointer type: PIMoaMmFilePathServices
Inheritance: IMoaUnknown
Header file: mmiservc.h

Methods

ResolveFilePath()
SetFilePath()
GetFilePath()
GetLocalFilePath()
SetLinked()
IsLinked()
BeginDownload()
BrowseForFile()

BeginDownload()

Syntax
BeginDownload(PIMoaStream * ppStream)
Parameters
ppStream
PIMoaStream *  
Returns
MoaError
Description
Given the URL to a linked cast member, this method starts downloading the file and returns a PIMoaStream. If the download is already in progress or completed, it returns the PIMoaStream. If it is a local file, it does nothing. You can immediately monitor the download's progress or even access its contents.

BrowseForFile()

Syntax
BrowseForFile(PIMoaPathName pPathToBeginBrowsingIn, ConstPMoaLong pFileTypeList,
  ConstPMoaChar pFileExtensions, PIMoaPathName pSelectedFile)
Parameters
pPathToBeginBrowsingIn
PIMoaPathName  
pFileTypeList
ConstPMoaLong  
pFileExtensions
ConstPMoaChar  
pSelectedFile
PIMoaPathName  
Returns
MoaError
Description
This method displays a file open dialog box that lets you specify file types and extensions to filter for.

GetFilePath()

Syntax
GetFilePath(PIMoaPathName pPathOfMember)
Parameters
pPathOfMember
PIMoaPathName  
Returns
MoaError
Description
Given an interface for a linked cast member, this method returns the resolved file path.

GetLocalFilePath()

Syntax
GetLocalFilePath(PIMoaPathName pLocalPathOfMember)
Parameters
pLocalPathOfMember
PIMoaPathName
Returns
MoaError
Description
If a file is specified by an URL, this method returns the complete path to the copy of that file in the local cache. If the file is not specified by an URL, it is a local file and this method returns its path.


IsLinked()

Syntax
IsLinked()
Parameters
Returns
MoaBoolParam

ResolveFilePath()

Syntax
ResolveFilePath(PIMoaPathName pPathToResolve, MoaBoolParam bBrowseForFile, PIMoaPathName pResolvedPath)
Parameters
pPathToResolve
PIMoaPathName  
bBrowseForFile
MoaBoolParam  
pResolvedPath
PIMoaPathName  
Returns
MoaError
Description
Given a relative or local file path (written in the syntax of Windows, Macintosh, or an URL), this method returns the absolute path in syntax appropriate for the operating system.

SetFilePath()

Syntax
SetFilePath(PIMoaPathName pNewPath)
Parameters
pNewPath
PIMoaPathName  
Returns
MoaError

SetLinked()

Syntax
SetLinked(MoaBoolParam bLinked)
Parameters
bLinked
MoaBoolParam  
Returns
MoaError

Copyright © 1995-2008 Adobe Macromedia Software LLC, Inc.