[Kde-pim] Tomboy resource: Questions to the notes specific stuff

Stefan Staeglich staeglis at informatik.uni-freiburg.de
Sat Jun 18 12:48:43 BST 2016


Hi Dan,

I have overlooked your message until now. Thanks you it helps a lot.

Is the use of setPayload correct?
KMime::Message::Ptr akonadiNote = KMime::Message::Ptr(new KMime::Message);
akonadiNote->subject(true)->fromUnicodeString( jsonNote["title"].toString(), 
"utf-8" );
akonadiNote->contentType()->setMimeType("text/plain");
akonadiNote->contentType()->setCharset("utf-8");
akonadiNote->contentTransferEncoding(true)-
>setEncoding(KMime::Headers::CEquPr);
akonadiNote->mainBodyPart()->fromUnicodeString(jsonNote["note-
content"].toString().toUtf8());
akonadiNote->assemble();
resultItem.setPayload<KMime::Message::Ptr>(akonadiNote);

I want now to test my resource. First I need to test the OAuth authentication, 
but it don't work. How can I read out the debug output like
qCDebug(log_tomboynotesresource) << "Resource started";

Thanks,
Stefan

Am Samstag, 18. Juni 2016, 10:10:01 schrieb Daniel Vrátil:
> Hi Stefan,
> 
> On Thursday, June 16, 2016 10:58:33 PM CEST Stefan Staeglich wrote:
> > Hello,
> > 
> > I'm working on the Akonadi resource for Tomboy servers. Now I have
> > questions to the notes specific stuff.
> > 
> > In general you can set the data with item.setpaylod. How I have to do
> > it with the notes content? Which informations are important?
> 
> setMimeType
> setPayload
> setRemoteId
> setParentCollection
> 
> > Is it correct using "application/x-vnd.kde.notes" as mime type?
> 
> It's application/x-vnd.akonadi.note
> 
> 
> Dan
> 
> > Thanks,
> > Stefan
> > _______________________________________________
> > 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/
_______________________________________________
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