[Akonadi] [Bug 362938] Implement tomboy REST API as Akonadi resource

Stefan via KDE Bugzilla bugzilla_noreply at kde.org
Sat Jun 18 12:27:19 BST 2016


https://bugs.kde.org/show_bug.cgi?id=362938

--- Comment #6 from Stefan <stefan at draakgard.de> ---
I hope I have the right idea now:
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);

Problem is now the debugging. How can read the debug messages like
qCDebug(log_tomboynotesresource) << "Resource started";

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list