MythTV  master
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
hardwareprofile.os_detect.OS Class Reference
Inheritance diagram for hardwareprofile.os_detect.OS:
[legend]
Collaboration diagram for hardwareprofile.os_detect.OS:
[legend]

Public Member Functions

def __init__ (self, ostype=-1, func=None, inst=None)
 
def __get__ (self, inst, owner)
 
def __call__ (self, func=None)
 
def do_test (self, *args, **kwargs)
 
- Public Member Functions inherited from hardwareprofile.os_detect.OrderedType
def __new__ (mcs, name, bases, attrs)
 

Public Attributes

 ostype
 
 func
 
 inst
 

Private Attributes

 __doc__
 
 __name__
 
 __module__
 

Static Private Attributes

bool _requires_func = True
 

Additional Inherited Members

- Static Public Attributes inherited from hardwareprofile.os_detect.OrderedType
int nextorder = 0
 

Detailed Description

Definition at line 39 of file os_detect.py.

Constructor & Destructor Documentation

◆ __init__()

def hardwareprofile.os_detect.OS.__init__ (   self,
  ostype = -1,
  func = None,
  inst = None 
)

Definition at line 41 of file os_detect.py.

Member Function Documentation

◆ __get__()

def hardwareprofile.os_detect.OS.__get__ (   self,
  inst,
  owner 
)

Reimplemented in hardwareprofile.os_detect.OSWithFile.

Definition at line 62 of file os_detect.py.

◆ __call__()

def hardwareprofile.os_detect.OS.__call__ (   self,
  func = None 
)

Definition at line 69 of file os_detect.py.

◆ do_test()

def hardwareprofile.os_detect.OS.do_test (   self,
args,
**  kwargs 
)

Member Data Documentation

◆ _requires_func

bool hardwareprofile.os_detect.OS._requires_func = True
staticprivate

Definition at line 40 of file os_detect.py.

Referenced by hardwareprofile.os_detect.OS.__call__().

◆ ostype

hardwareprofile.os_detect.OS.ostype

◆ func

hardwareprofile.os_detect.OS.func

◆ inst

hardwareprofile.os_detect.OS.inst

◆ __doc__

hardwareprofile.os_detect.OS.__doc__
private

Definition at line 58 of file os_detect.py.

◆ __name__

hardwareprofile.os_detect.OS.__name__
private

Definition at line 59 of file os_detect.py.

◆ __module__

hardwareprofile.os_detect.OS.__module__
private

Definition at line 60 of file os_detect.py.


The documentation for this class was generated from the following file: