Package prlsdkapi :: Class HdPartition
[ hide private ]
[ frames ] | no frames ]

Class HdPartition

object --+    
         |    
   _Handle --+
             |
            HdPartition

Provides methods for obtaining information about a physical hard disk partition on the host computer.

Instance Methods [ hide private ]
get_name ( self )
Return the hard disk partition name.
get_sys_name ( self )
Return the hard disk partition system name.
get_size ( self )
Return the hard disk partition size.
get_index ( self )
Return the index of the hard disk partition.
get_type ( self )
Return a numerical code identifying the type of the partition.
is_in_use ( self )
Determines whether the partition is in use ( contains valid file system, being used for swap, etc.).
is_logical ( self )
Determine whether the specified partition is a logical partition.
is_active ( self )
Determine whether the disk partition is active or inactive.

Inherited from _Handle : __del__ , __init__ , add_ref , free , from_string , get_handle_type , get_package_id

Inherited from object : __delattr__ , __format__ , __getattribute__ , __hash__ , __new__ , __reduce__ , __reduce_ex__ , __repr__ , __setattr__ , __sizeof__ , __str__ , __subclasshook__

Properties [ hide private ]

Inherited from object : __class__

Method Details [ hide private ]

get_name ( self )

Return the hard disk partition name.

Returns:
String. The partition name.

get_sys_name ( self )

Return the hard disk partition system name.

Returns:
String . The partition name.

get_size ( self )

Return the hard disk partition size.

Returns:
Long. The partition size (in MB).

get_index ( self )

Return the index of the hard disk partition.

Returns:
Integer. The partition index.

get_type ( self )

Return a numerical code identifying the type of the partition.

Returns:
Integer. Partition type.
Overrides: _Handle.get_type

is_in_use ( self )

Determines whether the partition is in use ( contains valid file system, being used for swap, etc.).

Returns:
Boolean. True - partition is in use. False - partition is not in use.

is_logical ( self )

Determine whether the specified partition is a logical partition.

Returns:
Boolean. True - partition is logical. False - partition is physical.

is_active ( self )

Determine whether the disk partition is active or inactive.

Returns:
Boolean. True - partition is active. False - partition is not active.