#include #include "X.h" X::X(Channel *chan) { m_chan = chan; } X::~X() { delete m_chan; } Channel *X::getChannel() { return m_chan; }