1
/***************************************************************************
2
copyright : (C) 2004 Nathan Toone
3
email : nathan@toonetown.com
4
***************************************************************************/
6
/***************************************************************************
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
***************************************************************************/
15
#ifndef GOOGLEFETCHERDIALOG_H
16
#define GOOGLEFETCHERDIALOG_H
18
#include <k3iconview.h>
22
#include "googlefetcher.h"
28
class GoogleFetcherDialog : public KDialog
33
GoogleFetcherDialog(const QString &name,
34
const GoogleImageList &urlList,
35
const FileHandle &file,
38
virtual ~GoogleFetcherDialog();
40
QPixmap result() const { return m_pixmap; }
41
bool takeIt() const { return m_takeIt; }
42
bool newSearch() const { return m_newSearch; }
45
void setImageList(const GoogleImageList &urlList);
49
void refreshScreen(GoogleImageList &list);
52
void sizeChanged(GoogleFetcher::ImageSize);
58
void imgSizeChanged(int index);
61
QPixmap fetchedImage(int index) const;
62
QPixmap pixmapFromURL(const KUrl &url) const;
65
GoogleImageList m_imageList;
66
K3IconView *m_iconWidget;
77
class CoverIconViewItem : public QObject, public K3IconViewItem
82
CoverIconViewItem(Q3IconView *parent, const GoogleImage &image);
86
void imageData(KIO::Job *job, const QByteArray &data);
87
void imageResult(KJob* job);
91
QPointer<KIO::TransferJob> m_job;
96
// vim: set et sw=4 tw=0 sta: