Motorola Mobility Confidential Restricted.
ToiStorageService Interface Reference

Description

Service:
This is a service and can be accessed through toi.storageService

The ToiStorageService interface provides access to any internal and external storage devices.

For an internal HDD the temperature can be monitored, while USB connected devices do not support this feature.

import "ToiStorageService.idl";

Inheritance diagram for ToiStorageService:
ToiEventTarget

List of all members.

Public Member Functions

ToiOperationManager getStorageOperationManager ()
TToiStorageDeviceIdSequence getStorageDeviceIds ()
ToiStorageDevice getStorageDevice (in ToiStorageDevice::TToiStorageDeviceId id) raises (TToiInvalidArgumentException)
ToiStorageFile createFile (in string fileName, in ToiStorageFile::TToiStorageFileType fileType) raises (TToiInvalidArgumentException, TToiFileException)

Public Attributes

Events
const long ON_DEVICE_CONNECTED = 2600
const long ON_DEVICE_DISCONNECTED = 2601
const long ON_DEVICE_SPINNING_CHANGED = 2602
const long ON_DEVICE_PARTITIONS_CHANGED = 2603
const long ON_DEVICE_PARTITION_MOUNT_CHANGED = 2604
const long ON_DEVICE_PARTITION_FULL = 2605
const long ON_DEVICE_PARTITION_FEATURES_CHANGED = 2606
const long ON_DEVICE_TEMPERATURE_THRESHOLD_REACHED = 2607

Public Types

typedef sequence
< ToiStorageDevice::TToiStorageDeviceId
TToiStorageDeviceIdSequence

Member Typedef Documentation

Sequence of storage identifiers.


Member Function Documentation

ToiStorageFile ToiStorageService::createFile ( in string  fileName,
in ToiStorageFile::TToiStorageFileType  fileType 
) raises (TToiInvalidArgumentException, TToiFileException)

Creates a file. A limited number of simultaneous ToiStorageFile objects are allowed. This functionality is primarily interesting for non C++ appliations (such as portal) that do not have access to the file system directly.

Parameters:
fileNameThe name of the file. Note: If the filetype is ToiStorageFile::FILE_TYPE_TEMPORARY, a unique random string is automatically added to the end of the filename (but before any extension). The purpose of the filename in such case would merely be to describe its file-extension (e.g. '.jpeg').
fileTypeThe type of file to be created.
Return values:
IToiStorageFile
addressThe address to the ToiStorageFile instance.
Exceptions:
TToiInvalidArgumentExceptionRaised if the fileType is invalid.
TToiFileExceptionRaised if files cannot be created, i.e. no internal drive, no directory set up for temporary files, or the maximum number of simultaneous file objects is exceeded.
ToiStorageDevice ToiStorageService::getStorageDevice ( in ToiStorageDevice::TToiStorageDeviceId  id) raises (TToiInvalidArgumentException)

Returns the address to the storage device handler for a given storage identifier.

Parameters:
idStorage identifier.
Return values:
IToiStorageDevice
addressAddress to the ToiStorageDevice.
TToiStorageDeviceIdSequence ToiStorageService::getStorageDeviceIds ( )

Returns the identifiers for the currently connected storage devices.

Return values:
identifiersThe storage identifiers.
ToiOperationManager ToiStorageService::getStorageOperationManager ( )

Returns the operation manager that handles asynchronous operations for this storage device.

Return values:
IToiOperationManager
addressAddress to the ToiOperationManager.

Member Data Documentation

This is an Event identifier for ToiStorageDeviceConnectedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_CONNECTED.

This is an Event identifier for ToiStorageDeviceDisconnectedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_DISCONNECTED.

This is an Event identifier for ToiStorageDevicePartitionFeaturesChangedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITION_FEATURES_CHANGED.

This is an Event identifier for ToiStorageDevicePartitionFullEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITION_FULL.

This is an Event identifier for ToiStorageDevicePartitionMountChangedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITION_MOUNT_CHANGED.

This is an Event identifier for ToiStorageDevicePartitionsChangedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITIONS_CHANGED.

This is an Event identifier for ToiStorageDeviceSpinningChangedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_SPINNING_CHANGED.

This is an Event identifier for ToiStorageDeviceTemperatureThresholdReachedEvent.

This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_TEMPERATURE_THRESHOLD_REACHED.