// // // C++ Implementation: $MODULE$ // // Description: // // // Author: Patrick S. Vogt , (C) 2003 // // Copyright: See COPYING file that comes with this distribution // // #include "todoitem.h" #include #include TodoItem::TodoItem(OListViewItem* parent, OTodo *todo) : ResultItem(parent) { _todo = todo; setText( 0, todo->toShortText() ); } TodoItem::~TodoItem() { delete _todo; } void TodoItem::expand() { ResultItem::expand(); } QString TodoItem::toRichText() { return _todo->toRichText(); } void TodoItem::showItem() { // QCopEnvelope e("QPE/Todolist", "show(int)"); qDebug("calling todolist for %i",_todo->uid()); QCopEnvelope e("QPE/Todolist", "show(int)"); e << _todo->uid(); } void TodoItem::editItem() { QCopEnvelope e("QPE/Todolist", "edit(int)"); e << _todo->uid(); }