summaryrefslogtreecommitdiffstats
path: root/maildrop/dotlockmaildrop.C
blob: 67032db52b0ee18f218045250d50651eb34d0f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include	"dotlock.h"
#include	"varlist.h"
#include	"buffer.h"
#include	"xconfig.h"


unsigned DotLock::GetLockSleep()
{
Buffer	b;

	b="LOCKSLEEP";

	return GetVar(b)->Int(LOCKSLEEP_DEF);
}

unsigned DotLock::GetLockTimeout()
{
Buffer	b;

	b="LOCKTIMEOUT";
	return (GetVar(b)->Int(LOCKTIMEOUT_DEF));
}

unsigned DotLock::GetLockRefresh()
{
Buffer	b;

	b="LOCKREFRESH";
	return (GetVar(b)->Int(LOCKREFRESH_DEF));
}

const	char *DotLock::GetLockExt()
{
Buffer varname;

	varname="LOCKEXT";

	return (GetVarStr(varname));
}