2017-08-12 15:36:11 +00:00
|
|
|
## libimagcontacts
|
|
|
|
|
2018-02-12 19:15:07 +00:00
|
|
|
The contact library basically only creates references to the actual
|
|
|
|
vcard files, though it also can parse (via the `vobject` crate) the
|
2017-09-23 15:50:23 +00:00
|
|
|
information and return it from an entry directly.
|
|
|
|
|
|
|
|
The architecture of indirections is as follows:
|
|
|
|
|
|
|
|
```{.numberLines}
|
|
|
|
|
|
|
|
+--------------------------------+
|
|
|
|
| |
|
|
|
|
| Store, as ContactStore |
|
|
|
|
| |
|
|
|
|
+----------------+---------------+
|
|
|
|
|
|
|
|
|
| Provides access to
|
|
|
|
|
|
|
|
|
+----------------v---------------+
|
|
|
|
| |
|
|
|
|
| (FileLock)Entry as Contact |
|
|
|
|
| |
|
|
|
|
| which is actually a: |
|
|
|
|
| |
|
|
|
|
| (FileLock)Entry as Ref |
|
|
|
|
| |
|
|
|
|
+----------------+---------------+
|
|
|
|
|
|
|
|
|
| refers to
|
|
|
|
|
|
|
|
|
+----------------v---------------+
|
|
|
|
| |
|
|
|
|
| vcard file (outside store) |
|
|
|
|
| |
|
|
|
|
+----------------+---------------+
|
|
|
|
|
|
|
|
|
| contains
|
|
|
|
|
|
|
|
|
+----------------v---------------+
|
|
|
|
| |
|
|
|
|
| vcard data |
|
|
|
|
| |
|
|
|
|
+--------------------------------+
|
|
|
|
|
|
|
|
```
|
|
|
|
|