Read log limit maximum from config.ini.
This commit is contained in:
parent
5b04859657
commit
7b34f426e2
@ -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();
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user