/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "chatlinemodel.h"
#include "uistyle.h"
+class ChatLineModelItemPrivate;
+
class ChatLineModelItem : public MessageModelItem {
public:
ChatLineModelItem(const Message &);
-
+ ~ChatLineModelItem();
virtual QVariant data(int column, int role) const;
- virtual inline bool setData(int column, const QVariant &value, int role) { return false; }
private:
- void computeWrapList();
-
- struct ChatLinePart {
- QString plainText;
- UiStyle::FormatList formatList;
- };
- ChatLinePart _timestamp, _sender, _contents;
-
- ChatLineModel::WrapList _wrapList;
-
- static unsigned char *TextBoundaryFinderBuffer;
- static int TextBoundaryFinderBufferSize;
+ ChatLineModelItemPrivate *_data;
};
#endif