diff options
Diffstat (limited to 'plugins/HistoryStats/src/column_protocol.cpp')
-rw-r--r-- | plugins/HistoryStats/src/column_protocol.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/HistoryStats/src/column_protocol.cpp b/plugins/HistoryStats/src/column_protocol.cpp new file mode 100644 index 0000000000..bbbe67ba01 --- /dev/null +++ b/plugins/HistoryStats/src/column_protocol.cpp @@ -0,0 +1,26 @@ +#include "_globals.h"
+#include "column_protocol.h"
+
+/*
+ * ColProtocol
+ */
+
+void ColProtocol::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) const
+{
+ if (row == 1)
+ {
+ writeRowspanTD(tos, getCustomTitle(i18n(muT("Protocol")), i18n(muT("Protocol"))), row, 1, rowSpan);
+ }
+}
+
+void ColProtocol::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display)
+{
+ if (display == asContact)
+ {
+ tos << muT("<td>") << utils::htmlEscape(contact.getProtocol()) << muT("</td>") << ext::endl;
+ }
+ else
+ {
+ tos << muT("<td> </td>");
+ }
+}
|