> On July 9, 2013, 4:28 p.m., Volker Härtel wrote: > > What I need for the history2 plugin to use this extension are two functions > > to retrieve/store all available messages in a list of > > Kopete::Message-Objects. > > > > Could you give me some hints? > > > > How do I prevent duplicates on server-side? > > Volker Härtel wrote: > btw, do you know some implementors of this spec to test with?
You cannot (and must not) store anything on the server explicitly. Server does automatic archiving itself, you only need to fetch the messages requested by the history viewer. Or not, depending on the archiving preferences, which you can easily obtain using requestPrefs() method. I suggest you read the draft or, at least, my explaination of XEP-0136 mechanics at the top of the .h file, so no one would be confused. XMPP messages on the server are grouped into collections (kind of a complete conversation). You should request collections first, then request messages from the collection, requestCollections() and requestCollection() methods will help. Feel free to add some high-level logic to the class if you need. Thing you're talking about (store) is a separate archiving method named "manual", but it's not implemented (and ain't having time for it right now). Prosody server and Openfire both have XEP-0136 plugins, I'm using Prosody. Openfire may need patching since Vacuum team do that for their XEP-0136 implementation, but I'm not sure about it. If you have questions, please, contact me via email, it's hard for me to answer here. - Roman ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/111361/#review35802 ----------------------------------------------------------- On July 6, 2013, 10:35 a.m., Roman Nazarenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/111361/ > ----------------------------------------------------------- > > (Updated July 6, 2013, 10:35 a.m.) > > > Review request for Kopete. > > > Description > ------- > > Standard draft: http://xmpp.org/extensions/xep-0136.html > Github repo: https://github.com/Jtalk/kopete-fork-xep0136/tree/XEP-0136 > > This is an Iris task for message archiving support. > I also added appropriate tab to the XMPP account editing widget. > > I have implemented preferences setting, chats collections retrieval and chat > logs retrieval. Comments inside the code will give you some extra information > about this alpha's restructions and problems. We also need History plugin to > be patched to make this thing work. > > > Diffs > ----- > > protocols/jabber/CMakeLists.txt f0c64d3 > protocols/jabber/jabberclient.h 6d791c0 > protocols/jabber/jabberclient.cpp bc3f37b > protocols/jabber/tasks/jt_archive.h PRE-CREATION > protocols/jabber/tasks/jt_archive.cpp PRE-CREATION > protocols/jabber/ui/dlgjabbereditaccountwidget.ui 0f819ae > protocols/jabber/ui/jabbereditaccountwidget.h 07f7e70 > protocols/jabber/ui/jabbereditaccountwidget.cpp 75cc7c1 > > Diff: http://git.reviewboard.kde.org/r/111361/diff/ > > > Testing > ------- > > Click-click, it works. > I also checked collections retrieval, but that code is vanished from the > final version. Worked well though. > > > Thanks, > > Roman Nazarenko > >
_______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel