mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
Tool: update controler with new account API
Refs #68913 Change-Id: I9f907f8d3a35c27f5414eedfde29d662be7eece9
This commit is contained in:

committed by
Gerrit Code Review

parent
338d32245e
commit
597d7ce1cd
@ -294,7 +294,7 @@ class DRingCtrl(Thread):
|
||||
def isAccountRegistered(self, account=None):
|
||||
"""Return True if the account is registered. If no account is provided, active account is used"""
|
||||
|
||||
return self.getAccountDetails(self._valid_account(account))['Account.registrationStatus'] in ('READY', 'REGISTERED')
|
||||
return self.getVolatileAccountDetails(self._valid_account(account))['Account.registrationStatus'] in ('READY', 'REGISTERED')
|
||||
|
||||
def isAccountOfType(self, account_type, account=None):
|
||||
"""Return True if the account type is the given one. If no account is provided, active account is used"""
|
||||
@ -327,6 +327,14 @@ class DRingCtrl(Thread):
|
||||
return self.configurationmanager.getAccountDetails(account)
|
||||
return []
|
||||
|
||||
def getVolatileAccountDetails(self, account=None):
|
||||
"""Return a list of string. If no account is provided, active account is used"""
|
||||
|
||||
account = self._valid_account(account)
|
||||
if self.isAccountExists(account):
|
||||
return self.configurationmanager.getVolatileAccountDetails(account)
|
||||
return []
|
||||
|
||||
def setActiveCodecList(self, account=None, codec_list=''):
|
||||
"""Activate given codecs on an account. If no account is provided, active account is used"""
|
||||
|
||||
|
Reference in New Issue
Block a user