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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
The KDE addressbook
===================
The format that kab uses is plain ASCII, written by an QConfigDB object.
In general, the QConfigDB class provides an easy way to read and
write hierarchical structured files storing data of basic C++ data
types. The files may be edited manually if the syntax is not
violated.
kab handles address book entries. Each entry is meant to represent a
person. Thus, for each entry, it is possible to store more than one
address (like home or business addresses).
An addressbook database file contains two sections, one to store the
users entries, called "entries", and one to store the configuration,
called "config". Every subsection of the "entries" section is one
entry, containing
- a section "addresses", where in turn each subsection is one address
related to the person
- a number of key-value pairs storing data of the person.
An example entry could look like this:
[15]
# subsections:
[addresses]
# subsections:
[1]
# key-value-pairs:
address="..."
country=""
deliverylabel=""
headline="street address"
org=""
orgsubunit=""
orgunit=""
position=""
state=""
town=""
zip=""
[END 1]
[2]
# key-value-pairs:
address="..."
country=""
deliverylabel=""
headline="business address"
org=""
orgsubunit=""
orgunit=""
position=""
state=""
town=""
zip=""
[END 2]
[END addresses]
# key-value-pairs:
URLs="http://www.kde.org\e"
birthday="0, 0, 0"
comment=""
custom=""
emails="kde-devel@kde.org\ekde-announce@lists.netcentral.net\e"
firstname=""
fn="KDE Mailing-Listen"
keywords=""
lastname=""
middlename=""
nameprefix=""
rank=""
talk=""
telephone=""
title=""
user1=""
user2=""
user3=""
user4=""
[END 15]
To get a overview of the meanings of the fields, just have a look at
addressbook.h. If you plan to access kab databases, you should use the
kab API that is defined in kabapi.h and link libkabs.so to your
application. (read README.KABAPI).
Mirko Boehm, Mai 2001.
|