Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::Preferences Class Reference

#include <preferences.h>

Inheritance diagram for jami::Preferences:
Inheritance graph
Collaboration diagram for jami::Preferences:
Collaboration graph

Public Member Functions

void addAccount (const std::string &acc)
 
const std::string & getAccountOrder () const
 
int getHistoryLimit () const
 
int getHistoryMaxCalls () const
 
bool getMd5Hash () const
 
int getPortNum () const
 
int getRingingTimeout () const
 
bool getSearchBarDisplay () const
 
std::string getZoneToneChoice () const
 
 Preferences ()
 Default sound card index.
 
void removeAccount (const std::string &acc)
 
void serialize (YAML::Emitter &out) const override
 
void setAccountOrder (const std::string &ord)
 
void setHistoryLimit (int lim)
 
void setHistoryMaxCalls (int max)
 
void setMd5Hash (bool md5)
 
void setPortNum (int port)
 
void setRingingTimeout (int timeout)
 
void setSearchBarDisplay (bool search)
 
void setZoneToneChoice (const std::string &str)
 
void unserialize (const YAML::Node &in) override
 
void verifyAccountOrder (const std::vector< std::string > &accounts)
 
- Public Member Functions inherited from jami::Serializable
virtual ~Serializable ()
 

Static Public Attributes

static const char *const DFT_ZONE = "North America"
 
static const char *const REGISTRATION_EXPIRE_KEY = "registrationexpire"
 

Detailed Description

Definition at line 41 of file preferences.h.

Constructor & Destructor Documentation

◆ Preferences()

jami::Preferences::Preferences ( )

Default sound card index.

Definition at line 145 of file preferences.cpp.

Member Function Documentation

◆ addAccount()

void jami::Preferences::addAccount ( const std::string &  acc)

Definition at line 185 of file preferences.cpp.

References jami::emitSignal().

Referenced by jami::Manager::addAccount().

Here is the call graph for this function:

◆ getAccountOrder()

const std::string & jami::Preferences::getAccountOrder ( ) const
inline

Definition at line 52 of file preferences.h.

Referenced by jami::Manager::loadAccountMap(), and jami::Manager::loadAccountOrder().

◆ getHistoryLimit()

int jami::Preferences::getHistoryLimit ( ) const
inline

Definition at line 62 of file preferences.h.

Referenced by jami::Manager::getHistoryLimit().

◆ getHistoryMaxCalls()

int jami::Preferences::getHistoryMaxCalls ( ) const
inline

Definition at line 70 of file preferences.h.

◆ getMd5Hash()

bool jami::Preferences::getMd5Hash ( ) const
inline

Definition at line 86 of file preferences.h.

◆ getPortNum()

int jami::Preferences::getPortNum ( ) const
inline

Definition at line 78 of file preferences.h.

◆ getRingingTimeout()

int jami::Preferences::getRingingTimeout ( ) const
inline

Definition at line 66 of file preferences.h.

Referenced by jami::Manager::getRingingTimeout().

◆ getSearchBarDisplay()

bool jami::Preferences::getSearchBarDisplay ( ) const
inline

Definition at line 82 of file preferences.h.

◆ getZoneToneChoice()

std::string jami::Preferences::getZoneToneChoice ( ) const
inline

Definition at line 74 of file preferences.h.

Referenced by jami::ToneControl::setSampleRate().

◆ removeAccount()

void jami::Preferences::removeAccount ( const std::string &  acc)

Definition at line 195 of file preferences.cpp.

References jami::emitSignal().

Referenced by jami::Manager::removeAccount().

Here is the call graph for this function:

◆ serialize()

void jami::Preferences::serialize ( YAML::Emitter &  out) const
overridevirtual

◆ setAccountOrder()

void jami::Preferences::setAccountOrder ( const std::string &  ord)
inline

Definition at line 60 of file preferences.h.

References jami::emitSignal().

Referenced by jami::Manager::setAccountsOrder().

Here is the call graph for this function:

◆ setHistoryLimit()

void jami::Preferences::setHistoryLimit ( int  lim)
inline

Definition at line 64 of file preferences.h.

References jami::emitSignal().

Referenced by jami::Manager::setHistoryLimit().

Here is the call graph for this function:

◆ setHistoryMaxCalls()

void jami::Preferences::setHistoryMaxCalls ( int  max)
inline

Definition at line 72 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setMd5Hash()

void jami::Preferences::setMd5Hash ( bool  md5)
inline

Definition at line 87 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setPortNum()

void jami::Preferences::setPortNum ( int  port)
inline

Definition at line 80 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setRingingTimeout()

void jami::Preferences::setRingingTimeout ( int  timeout)
inline

Definition at line 68 of file preferences.h.

Referenced by jami::Manager::setRingingTimeout().

◆ setSearchBarDisplay()

void jami::Preferences::setSearchBarDisplay ( bool  search)
inline

Definition at line 84 of file preferences.h.

◆ setZoneToneChoice()

void jami::Preferences::setZoneToneChoice ( const std::string &  str)
inline

Definition at line 76 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ unserialize()

void jami::Preferences::unserialize ( const YAML::Node &  in)
overridevirtual

◆ verifyAccountOrder()

void jami::Preferences::verifyAccountOrder ( const std::vector< std::string > &  accounts)

Definition at line 157 of file preferences.cpp.

References jami::emitSignal(), and JAMI_DBG.

Here is the call graph for this function:

Member Data Documentation

◆ DFT_ZONE

const char *const jami::Preferences::DFT_ZONE = "North America"
static

Definition at line 44 of file preferences.h.

◆ REGISTRATION_EXPIRE_KEY

const char *const jami::Preferences::REGISTRATION_EXPIRE_KEY = "registrationexpire"
static

Definition at line 45 of file preferences.h.


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