[Kde-pim] Code examples

Mark markg85 at gmail.com
Sat Oct 20 17:14:03 BST 2012


On Sat, Oct 20, 2012 at 2:32 PM, Kevin Krammer <krammer at kde.org> wrote:
> Hi,
>
> On Saturday, 2012-10-20, Sérgio Martins wrote:
>> Hi,
>>
>>
>> From time to time, users ask about how to do foo or bar in code, and we
>> spend time explaining them.
>>
>> For example, "How do I insert an event into Akonadi ?".
>>
>> Would be more productive to write a 5 line .cpp file and commit that to the
>> repo. Will save time the next time a user asks.
>>
>>
>> Should we have a kdepimlibs/examples directory then?
>
> There is a kdeexamples repository, I'd say we should use that.
>
>> If yes, then we should normalize the existing kdepim/examples directory.
>> Doesn't seem to have a hierarchy, it's more like a dumping ground.
>
> Might make sense to triage that and check for obsolete or outdated stuff and
> then move the rest to a pim folder in kdexamples.
>
>> An maybe some examples could be moved to kdepimlibs, etm_usage for example,
>> should be in kdepimlibs/examples/akonadi/ (if it doesn't have any kdepim
>> deps )
>
> We can probably create an akonadi and a kdepim tree in kdeexamples. Other
> modules also seem to have their own top level dir in there, e.g. kdegames
>
> I guess it would also help to have a couple more tutorials on
> http://techbase.kde.org/Development/Tutorials and to update the existing ones.
>
> My plan regarding the latter was to commit the "final" code for each of those
> to the example repository but I keep forgetting about it :(
>
> Cheers,
> Kevin
> --
> Kevin Krammer, KDE developer, xdg-utils developer
> KDE user support, developer mentoring
>
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/

I would certainly like examples of how to do things with akonadi.
Things became a lot easier with the new helper classes from Martin
(calendaring branch), but even then any documentation on how to use it
is just not there.

Right now i just have to go to Sergio every time i want to know how
something works.
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list