|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|

Public Member Functions | |
| virtual std::string | get_os_version_str () |
| Return info string about build host and/or OS version. | |
| virtual std::string | get_app_examples (const char *appname) |
| Return example string for program 'appname'. | |
| virtual int64_t | get_timer_usec () |
| Get microseconds since some unspecified starting point. | |
| virtual bool | disable_system_auto_standby (bool disable) |
| Disable/Enable system auto standby/sleep mode. | |
| virtual bool | scan_smart_devices (smart_device_list &devlist, const char *type, const char *pattern=0) |
| Fill 'devlist' with devices of some 'type' with device names specified by some optional 'pattern'. | |
Protected Member Functions | |
| virtual ata_device * | get_ata_device (const char *name, const char *type) |
| Return standard ATA device. | |
| virtual scsi_device * | get_scsi_device (const char *name, const char *type) |
| Return standard SCSI device. | |
| virtual smart_device * | autodetect_smart_device (const char *name) |
| Autodetect device if no device type specified. | |
| virtual smart_device * | get_custom_smart_device (const char *name, const char *type) |
| Return device for platform specific 'type'. | |
| virtual std::string | get_valid_custom_dev_types_str () |
| Return valid 'type' args accepted by above. | |
Definition at line 539 of file os_win32.cpp.
| smart_device * os_win32::win_smart_interface::autodetect_smart_device | ( | const char * | name | ) | [protected, virtual] |
Autodetect device if no device type specified.
Implements smart_interface.
Definition at line 827 of file os_win32.cpp.
| bool os_win32::win_smart_interface::disable_system_auto_standby | ( | bool | disable | ) | [virtual] |
Disable/Enable system auto standby/sleep mode.
Return false if unsupported or if system is running on battery. Default implementation returns false.
Reimplemented from smart_interface.
Definition at line 1054 of file os_win32.cpp.
| std::string os_win32::win_smart_interface::get_app_examples | ( | const char * | appname | ) | [virtual] |
Return example string for program 'appname'.
Default implementation returns empty string. For the migration of print_smartctl_examples(), function is allowed to print examples to stdout. TODO: Remove this hack.
Reimplemented from smart_interface.
Definition at line 1018 of file os_win32.cpp.
| ata_device * os_win32::win_smart_interface::get_ata_device | ( | const char * | name, |
| const char * | type | ||
| ) | [protected, virtual] |
Return standard ATA device.
Implements smart_interface.
Definition at line 723 of file os_win32.cpp.
| smart_device * os_win32::win_smart_interface::get_custom_smart_device | ( | const char * | name, |
| const char * | type | ||
| ) | [protected, virtual] |
Return device for platform specific 'type'.
Default implementation returns 0.
Reimplemented from smart_interface.
Definition at line 775 of file os_win32.cpp.
| std::string os_win32::win_smart_interface::get_os_version_str | ( | ) | [virtual] |
Return info string about build host and/or OS version.
Default implementation returns SMARTMONTOOLS_BUILD_HOST.
Reimplemented from smart_interface.
Definition at line 588 of file os_win32.cpp.
| scsi_device * os_win32::win_smart_interface::get_scsi_device | ( | const char * | name, |
| const char * | type | ||
| ) | [protected, virtual] |
Return standard SCSI device.
Implements smart_interface.
Definition at line 733 of file os_win32.cpp.
| int64_t os_win32::win_smart_interface::get_timer_usec | ( | ) | [virtual] |
Get microseconds since some unspecified starting point.
Used only for command duration measurements in debug outputs. Returns -1 if unsupported. Default implementation uses clock_gettime(), gettimeofday() or ftime().
Reimplemented from smart_interface.
Definition at line 663 of file os_win32.cpp.
| std::string os_win32::win_smart_interface::get_valid_custom_dev_types_str | ( | ) | [protected, virtual] |
Return valid 'type' args accepted by above.
This is called in get_valid_dev_types_str(). Default implementation returns empty string.
Reimplemented from smart_interface.
Definition at line 821 of file os_win32.cpp.
| bool os_win32::win_smart_interface::scan_smart_devices | ( | smart_device_list & | devlist, |
| const char * | type, | ||
| const char * | pattern = 0 |
||
| ) | [virtual] |
Fill 'devlist' with devices of some 'type' with device names specified by some optional 'pattern'.
Return false on error.
Implements smart_interface.
Definition at line 868 of file os_win32.cpp.
1.7.4