/***************************************************************************
                           screenshotpreview.h
                             -------------------
    begin                : Don Mai 15 2003
    revision             : $Revision: 1.2 $
    last modified        : $Date: 2005/02/02 10:08:28 $ by $Author: juergenk $
    copyright            : (C) 2003-2005 by Jürgen Kofler
    email                : kaffeine@gmx.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef SCREENSHOTPREVIEW_H
#define SCREENSHOTPREVIEW_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <kpreviewwidgetbase.h>

class QImage;
class QWidget;

class ScreenshotPreview : public KPreviewWidgetBase
{
   Q_OBJECT
public: 
  ScreenshotPreview(const QImage& img, QWidget *parent=0, const char *name=0);
  ~ScreenshotPreview();

public slots:
 virtual void showPreview(const KURL&);
 virtual void clearPreview();
  
protected:
 virtual void paintEvent(QPaintEvent*);

private:
  QImage m_previewImg; 
  
};

#endif
