-#endif
- ~ContentsChatItemPrivate();
-
-#ifdef HAVE_WEBKIT
- void loadWebPreview(const QString &url, const QRectF &urlRect);
- void clearPreview();
-
-private:
- class PreviewController;
- class PreviewItem;
- PreviewController *controller;
-#endif //#ifdef HAVE_WEBKIT
-};
-
-#ifdef HAVE_WEBKIT
-class ContentsChatItemPrivate::PreviewController : public QObject {
- Q_OBJECT
-public:
- PreviewController(ContentsChatItem *contentsItem) : contentsItem(contentsItem), previewItem(0) {}
- ~PreviewController();
-
- void loadPage(const QString &url, const QRectF &urlRect);
-
-private slots:
- void pageLoaded(bool success);
-
-private:
- ContentsChatItem *contentsItem;
- ContentsChatItemPrivate::PreviewItem *previewItem;
-
- QString url;