Read log limit maximum from config.ini.

This commit is contained in:
Cerapter 2018-07-26 14:42:32 +02:00
parent 5b04859657
commit 7b34f426e2
2 changed files with 13 additions and 0 deletions

View File

@ -129,6 +129,10 @@ public:
//Returns the value of default_blip in config.ini //Returns the value of default_blip in config.ini
int get_default_blip(); int get_default_blip();
//Returns the value of the maximum amount of lines the IC chatlog
//may contain, from config.ini.
int get_max_log_size();
//Returns the list of words in callwords.ini //Returns the list of words in callwords.ini
QStringList get_call_words(); QStringList get_call_words();

View File

@ -90,6 +90,15 @@ int AOApplication::get_default_blip()
else return f_result.toInt(); else return f_result.toInt();
} }
int AOApplication::get_max_log_size()
{
QString f_result = read_config("log_maximum");
if (f_result == "")
return 200;
else return f_result.toInt();
}
QStringList AOApplication::get_call_words() QStringList AOApplication::get_call_words()
{ {
QStringList return_value; QStringList return_value;