summaryrefslogtreecommitdiffstats
path: root/docs/extendingakonadi.md
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-30 19:41:01 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-30 19:41:01 +0100
commit8d59bbdebcca2293d5b3b1da903c39845f7ba1a9 (patch)
treea128226b311edf18ccd509fd8a8d6cb90abc3d1a /docs/extendingakonadi.md
parent0a2d20c474206553d5c981fd2a772188083101e9 (diff)
downloadsink-8d59bbdebcca2293d5b3b1da903c39845f7ba1a9.tar.gz
sink-8d59bbdebcca2293d5b3b1da903c39845f7ba1a9.zip
docs
Diffstat (limited to 'docs/extendingakonadi.md')
-rw-r--r--docs/extendingakonadi.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/extendingakonadi.md b/docs/extendingakonadi.md
new file mode 100644
index 0000000..fe38e87
--- /dev/null
+++ b/docs/extendingakonadi.md
@@ -0,0 +1,11 @@
1## Steps to add support for new types
2* Add new type to applicationdomaintypes.h and implement `getTypenName()`
3* Implement `TypeImplementation<>` for updating indexes etc.
4* Add a type.fbs default schema for the type
5
6## Steps for adding support for a type to a resource
7* Add a TypeAdaptorFactory, which can either register resource specific mappers, or stick to what the default implementation in TypeImplementation provides
8* Add a TypeFacade that injects the TypeAdaptorFactory in the GenericFacade
9* Register the facade in the resource
10* Add synchronization code that creates the relevant objects
11