Motorola Mobility Confidential Restricted.
ToiStorageFile Interface Reference

Description

The ToiStorageFile interface provides access to files created and stored on accessible storage devices. This interface is primarily intended for applications that do not have direct access to the file system (portal applications). This interface can then be used together with portal application support to download files to local hard drive and import them into the Asset Manager Service.

import "ToiStorageFile.idl";

List of all members.

Public Member Functions

string getUri ()
TToiStorageFileType getType ()
void download (in ToiOperationManager::TToiOperationId operationId, in string url) raises (TToiInvalidArgumentException)
void releaseInstance ()

Public Attributes

TToiStorageFileType
const TToiStorageFileType FILE_TYPE_TEMPORARY = 0

Public Types

typedef long TToiStorageFileType

Member Typedef Documentation

The different kind of filetypes that exist.


Member Function Documentation

void ToiStorageFile::download ( in ToiOperationManager::TToiOperationId  operationId,
in string  url 
) raises (TToiInvalidArgumentException)

Request downloading content from the special URL.

Parameters:
operationIdOperation identifier for this operation.
urlThe content's URL to be downloaded.
Exceptions:
TToiInvalidArgumentExceptionRaised if the operationId is wrong.
TToiStorageFileType ToiStorageFile::getType ( )

Gets the type of the file.

Return values:
fileTypeType of the file.
string ToiStorageFile::getUri ( )

Gets the URI of a file

Return values:
uriThe path/location of a file
void ToiStorageFile::releaseInstance ( )

This function releases the resources used by this instance. Any temporary files will be deleted.


Member Data Documentation

Temporary file that will be removed after reboot.

This constant can also be accessed from toi.consts.ToiStorageFile.FILE_TYPE_TEMPORARY.