summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/column_protocol.cpp
blob: 3b194c5f014f7e91507113b0ae6ae51c09c96f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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(TranslateT("Protocol"), TranslateT("Protocol")), row, 1, rowSpan);
}

void ColProtocol::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display)
{
	if (display == asContact)
		tos << _T("<td>") << utils::htmlEscape(contact.getProtocol()) << _T("</td>") << ext::endl;
	else
		tos << _T("<td>&nbsp;</td>");
}