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";
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 |
| typedef sequence< ToiStorageDevice::TToiStorageDeviceId > ToiStorageService::TToiStorageDeviceIdSequence |
Sequence of storage identifiers.
| 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.
| fileName | The 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'). |
| fileType | The type of file to be created. |
| IToiStorageFile | |
| address | The address to the ToiStorageFile instance. |
| TToiInvalidArgumentException | Raised if the fileType is invalid. |
| TToiFileException | Raised 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.
| id | Storage identifier. |
| IToiStorageDevice | |
| address | Address to the ToiStorageDevice. |
| TToiStorageDeviceIdSequence ToiStorageService::getStorageDeviceIds | ( | ) |
Returns the identifiers for the currently connected storage devices.
| identifiers | The storage identifiers. |
| ToiOperationManager ToiStorageService::getStorageOperationManager | ( | ) |
Returns the operation manager that handles asynchronous operations for this storage device.
| IToiOperationManager | |
| address | Address to the ToiOperationManager. |
| const long ToiStorageService::ON_DEVICE_CONNECTED = 2600 |
This is an Event identifier for ToiStorageDeviceConnectedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_CONNECTED.
| const long ToiStorageService::ON_DEVICE_DISCONNECTED = 2601 |
This is an Event identifier for ToiStorageDeviceDisconnectedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_DISCONNECTED.
| const long ToiStorageService::ON_DEVICE_PARTITION_FEATURES_CHANGED = 2606 |
This is an Event identifier for ToiStorageDevicePartitionFeaturesChangedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITION_FEATURES_CHANGED.
| const long ToiStorageService::ON_DEVICE_PARTITION_FULL = 2605 |
This is an Event identifier for ToiStorageDevicePartitionFullEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITION_FULL.
| const long ToiStorageService::ON_DEVICE_PARTITION_MOUNT_CHANGED = 2604 |
This is an Event identifier for ToiStorageDevicePartitionMountChangedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITION_MOUNT_CHANGED.
| const long ToiStorageService::ON_DEVICE_PARTITIONS_CHANGED = 2603 |
This is an Event identifier for ToiStorageDevicePartitionsChangedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_PARTITIONS_CHANGED.
| const long ToiStorageService::ON_DEVICE_SPINNING_CHANGED = 2602 |
This is an Event identifier for ToiStorageDeviceSpinningChangedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_SPINNING_CHANGED.
| const long ToiStorageService::ON_DEVICE_TEMPERATURE_THRESHOLD_REACHED = 2607 |
This is an Event identifier for ToiStorageDeviceTemperatureThresholdReachedEvent.
This constant can also be accessed from toi.consts.ToiStorageService.ON_DEVICE_TEMPERATURE_THRESHOLD_REACHED.