4 Copyright (c) 2005 by Heiko Schaefer <heiko@rangun.de>
6 Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
8 ************************************************************************ *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; version 2, or (at your option) version 3 *
15 **************************************************************************
18 #ifndef URLPICPREVIEWPLUGIN_H
19 #define URLPICPREVIEWPLUGIN_H
24 #include "kopeteplugin.h"
25 namespace Kopete
{ class Message
; }
30 @author Heiko Schäfer <heiko@rangun.de>
32 class URLPicPreviewPlugin
: public Kopete::Plugin
{
35 URLPicPreviewPlugin(const URLPicPreviewPlugin
&);
36 URLPicPreviewPlugin
& operator=(const URLPicPreviewPlugin
&);
39 void abortAllOperations();
42 URLPicPreviewPlugin(QObject
* parent
, const QVariantList
& args
);
43 virtual ~URLPicPreviewPlugin();
46 QString
prepareBody(const QString
& parsedBody
, uint previewCount
= 0);
47 QString
createPreviewPicture(const KUrl
& url
);
50 void aboutToDisplay(Kopete::Message
& message
);
51 void readyForUnload();
54 QStringList m_tmpFileRegistry
;
56 bool m_abortMessageCheck
;
59 #endif /* URLPICPREVIEWPLUGIN_H */