• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

src/H03-May-2022-17998

READMEH A D17-Feb-20222.9 KiB9064

akonadiresource.kdevtemplateH A D17-Feb-20224.3 KiB8281

README

1How To Build This Template
2-=-=-=-=-=-=-=-=-=-=-=-=-=
3
4--- On Linux & similar:
5
6cd <project_name_path>
7mkdir build
8cd build
9cmake .. -DCMAKE_INSTALL_PREFIX=$MY_PREFIX -DCMAKE_BUILD_TYPE=Debug
10make
11make install or su -c 'make install'
12
13(MY_PREFIX is where you install your Akonadi setup, replace it accordingly)
14
15to uninstall the project:
16make uninstall or su -c 'make uninstall'
17
18Note: you can use another build path. Then cd in your build dir and:
19export MY_SRC=path_to_your_src
20cmake $MY_SRC -DCMAKE_INSTALL_PREFIX=$MY_PREFIX -DCMAKE_BUILD_TYPE=Debug
21
22--- On Windows:
23
24cd <project_name_path>
25mkdir build
26cd build
27cmake .. -DCMAKE_INSTALL_PREFIX=%MY_PREFIX% -DCMAKE_BUILD_TYPE=Debug
28[n]make
29[n]make install
30
31(MY_PREFIX is where you install your Akonadi setup, replace it accordingly)
32
33to uninstall the project:
34[n]make uninstall
35
36Note: use nmake if you're building with the Visual Studio compiler, or make
37if you're using the minGW compiler
38
39
40Implementation hints
41-=-=-=-=-=-=-=-=-=-=
42
43The code generated by the template can be compiled without any further
44changes, so you can start with your own code right away.
45
46However, there are a couple of things you will need to change outside the
47resource's code, i.e. in the resource's .desktop file:
48
49- Name field: the name of the resource with which it will be displayed in
50  system settings and applications which can add resources on their own.
51  E.g. MyBackend Resource
52
53- Comment field: short description of the resource, also used to be
54  displayed, e.g. For calendars and contacts stored in MyBackend
55
56- Icon field: if you are not writing a contact (addressbook) resource, you have
57  to change this to either an icon for the respective MIME type you are going
58  to provide or use a resource specific icon which you provide yourself
59
60- X-Akonadi-MimeTypes field: if you are not writing a contact (addressbook)
61  resource, you have to change this to either a known MIME type or one you
62  install together with the resource.
63  If your resource can provide data of more than one MIME type, you can
64  specific all possible ones as a comma separate list.
65
66  Common MIME types are:
67  * text/directory: for contact data
68  * text/calendar: for calendar data (there are Akonadi defined subtypes
69    available, e.g. application/x-vnd.akonadi.calendar.event)
70  * message/rfc822: for e-mails and usenet news
71
72The template comes with an input file for KDE's KConfigXT framework
73for improved configuration file handling. The generated class is called
74"Settings", so access to its data is provided through its singleton
75instance method Settings::self().
76See https://techbase.kde.org/Development/Tutorials/Using_KConfig_XT
77
78
79Documentation
80-=-=-=-=-=-=-
81
82The Akonadi-KDE API documentation can be found here:
83https://api.kde.org/kdepim/akonadi/html/index.html
84
85General developer information, e.g. tutorials can be found here:
86https://techbase.kde.org/KDE_PIM/Akonadi
87
88The contact site can be found here:
89https://community.kde.org/KDE_PIM/Contact
90