You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tellico/src/core/netaccess.h

49 lines
1.4 KiB

/***************************************************************************
copyright : (C) 2006 by Robby Stephenson
email : robby@periapsis.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of version 2 of the GNU General Public License as *
* published by the Free Software Foundation; *
* *
***************************************************************************/
#ifndef TELLICO_NETACCESS_H
#define TELLICO_NETACCESS_H
#include <tqobject.h>
#include <tqpixmap.h>
class KURL;
class KFileItem;
namespace TDEIO {
class Job;
}
namespace Tellico {
class NetAccess : public TQObject {
TQ_OBJECT
public:
static bool download(const KURL& u, TQString& target, TQWidget* window);
static void removeTempFile(const TQString& name);
static TQPixmap filePreview(const KURL& fileName, int size=196);
static TQPixmap filePreview(KFileItem* item, int size=196);
private slots:
void slotPreview(const KFileItem* item, const TQPixmap& pix);
private:
static TQStringList* s_tmpFiles;
TQPixmap m_preview;
};
}
#endif