Benny Prijono | 4b4adb3 | 2008-06-12 15:37:22 +0000 | [diff] [blame] | 1 | # $Id$
|
| 2 |
|
| 3 | DEFAULT_ECHO = True
|
| 4 | DEFAULT_TRACE = True
|
| 5 |
|
| 6 | # Individual pjsua config class
|
| 7 | class Config:
|
| 8 | # pjsua command line arguments, concatenated in string
|
| 9 | arg = ""
|
| 10 | # Specify whether pjsua output should be echoed to stdout
|
| 11 | echo_enabled = DEFAULT_ECHO
|
| 12 | # Enable/disable test tracing
|
| 13 | trace_enabled = DEFAULT_TRACE
|
| 14 | def __init__(self, arg, echo_enabled=DEFAULT_ECHO, trace_enabled=DEFAULT_TRACE):
|
| 15 | self.arg = arg
|
| 16 | self.echo_enabled = echo_enabled
|
| 17 | self.trace_enabled = trace_enabled
|
| 18 |
|
| 19 | # Call config class
|
| 20 | class CallConfig:
|
| 21 | def __init__(self, title, callee_cfg, caller_cfg):
|
| 22 | self.title = title
|
| 23 | self.callee_cfg = callee_cfg
|
| 24 | self.caller_cfg = caller_cfg
|
| 25 |
|