<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/112005/">http://git.reviewboard.kde.org/r/112005/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On August 14th, 2013, 4:28 a.m. CEST, <b>David Edmundson</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="http://git.reviewboard.kde.org/r/112005/diff/2/?file=179282#file179282line65" style="color: black; font-weight: bold; text-decoration: underline;">KTp/message-processor.h</a>
<span style="font-weight: normal;">
(Diff revision 2)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">class KTP_EXPORT MessageProcessor : public QObject</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#ebb1ba" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">65</font></th>
<td bgcolor="#ffc5ce" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">KTp</span><span class="o">::</span><span class="n">Message</span> <span class="n">processIncomingMessage</span><span class="p">(</span><span class="k">const</span> <span class="n">Tpl</span><span class="o">::</span><span class="n">TextEventPtr</span> <span class="o">&</span><span class="n">message</span><span class="p">,</span> <span class="k">const</span> <span class="n">Tp</span><span class="o">::</span><span class="n">AccountPtr</span> <span class="o">&</span><span class="n">account</span><span class="p">,</span> <span class="k">const</span> <span class="n">Tp</span><span class="o">::</span><span class="n">TextChannelPtr</span> <span class="o">&</span><span class="n">channel</span><span class="p">);</span></pre></td>
<th bgcolor="#ebb1ba" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
<td bgcolor="#ffc5ce" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'm confused, what will replace this?</pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">KTpLogger returns log messages as KTp::LogMessage (subclass of KTp::Message), so we can use KTp::MessageProcessor::processIncommingMessage(const KTp::Message &msg) overload. Tpl overloads are not needed anymore.
If I can break the KTp::Message API a bit more, I can probably get rid of KTp::LogMessage completely.</pre>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On August 14th, 2013, 4:28 a.m. CEST, <b>David Edmundson</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">You've broken review board, all these comments appear in a random order.
</pre>
</blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">My patch is too awesome :)</pre>
<br />
<p>- Dan</p>
<br />
<p>On August 13th, 2013, 9:49 p.m. CEST, Dan Vrátil wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Telepathy.</div>
<div>By Dan Vrátil.</div>
<p style="color: grey;"><i>Updated Aug. 13, 2013, 9:49 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Hi guys,
on Akademy we discussed having our own logger that would provide abstraction
over TpLoggerQt (and possibly other backends).
I've just pushed tp-logger branch in ktp-common-internals, which introduces
KTp Logger - a library with API similar to what TpLoggerQt has and a plugin-
based design. There's already tplogger plugin which provides integration with
Telepathy Logger via TpLoggerQt. TpLoggerQt is still just an optional
dependency - without it the plugin will be disabled at build time.
For Windows, there also ktp-winlogger utility, which is an extremely super
simple logger which stores logs into SQLite database and of course there's a
plugin that provides integration with KTp Logger. It's automatically enabled
on Windows, on Linux pass -DENABLE_WINLOGGER=TRUE to CMake. It works on Linux
too :-)
In ktp-text-ui there is a ktplogger branch with logviewer completely ported to
KTp Logger, so you can even test that it works :-) chat-ui and other
components still have to be ported.
</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>KTp/Logger/log-manager-private.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-entity.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-entity.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/ktp_logger_plugin.desktop <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/abstract-logger-plugin.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/abstract-logger-plugin.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/CMakeLists.txt <span style="color: grey">(b514418db0da4ba41c13cbaea3591cba6b21ad5d)</span></li>
<li>KTp/Logger/log-manager.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-manager.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-message.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-message.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-search-hit.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/log-search-hit.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-dates-impl.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-dates-impl.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-dates.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-dates.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-entities-impl.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-entities-impl.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-entities.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-entities.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-logs-impl.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-logs-impl.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-logs.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-logs.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-operation.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-operation.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-search-impl.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-search-impl.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-search.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/pending-logger-search.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/ktploggerplugin_tplogger.desktop.cmake <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-dates.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-dates.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-entities.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-entities.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-logs.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-logs.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-search.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/pending-tp-logger-search.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/tp-logger-plugin.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/tp-logger-plugin.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/utils.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/tplogger/utils.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/KTp.WinLogger.client <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/db.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/db.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/logger.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/logger.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/main.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/observer.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/observer.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/org.freedesktop.Telepathy.Client.KTp.WinLogger.service.in <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/logger/org.freedesktop.Telepathy.KTp.WinLogger.service.in <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/CMakeLists.txt <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/ktploggerplugin_winlogger.desktop.cmake <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-dates.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-dates.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-entities.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-entities.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-logs.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-logs.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-search.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/pending-win-logger-search.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/win-logger-plugin.h <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/Logger/plugins/winlogger/plugin/win-logger-plugin.cpp <span style="color: grey">(PRE-CREATION)</span></li>
<li>KTp/message-processor.h <span style="color: grey">(8ce92b2a91c2839167ea19885166cb4e878333f0)</span></li>
<li>KTp/message-processor.cpp <span style="color: grey">(e045d7bf335bdf9b8ec9b975e147f13ef8575acb)</span></li>
<li>KTp/message.h <span style="color: grey">(29536168c5e140f02c67c16fd705c66e9753fe0e)</span></li>
<li>KTp/message.cpp <span style="color: grey">(36ea23479034b48e8e1f580625de855af64faf34)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/112005/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>