From 15855fa84a09fd1fd486d357c38db0f2bd181e74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 4 Mar 2014 23:23:45 +0000 Subject: HistoryStats compiles ok now git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/column_protocol.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 plugins/HistoryStats/src/column_protocol.cpp (limited to 'plugins/HistoryStats/src/column_protocol.cpp') 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("") << utils::htmlEscape(contact.getProtocol()) << muT("") << ext::endl; + } + else + { + tos << muT(" "); + } +} -- cgit v1.2.3