knewstuffsecure.h
/***************************************************************************
knewstuffsecure.h - description
-------------------
begin : Tue Jun 22 12:19:55 2004
copyright : (C) 2004, 2005 by Andras Mantia <amantia@kde.org>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Library General Public License as *
* published by the Free Software Foundation; version 2 of the License. *
* *
***************************************************************************/
#ifndef KNEWSTUFFSECURE_H
#define KNEWSTUFFSECURE_H
//qt includes
#include <qobject.h>
//kde includes
#include "knewstuff.h"
class KTempDir;
class KDE_EXPORT KNewStuffSecure : public QObject, public KNewStuff
{
Q_OBJECT
public:
KNewStuffSecure(const QString &type, QWidget *parentWidget=0);
virtual ~KNewStuffSecure();
bool install( const QString &fileName );
bool createUploadFile(const QString &fileName);
void downloadResource();
void uploadResource(const QString &fileName);
private slots:
void slotValidated(int result);
void slotFileSigned(int result);
void slotUploadFinished(bool result);
signals:
void installFinished();
protected:
virtual void installResource() = 0;
void removeTempDirectory();
KTempDir *m_tempDir;
QString m_tarName;
QString m_signedFileName;
QMap<QString, QString> m_installedResources;
};
#endif
KNewStuff::createUploadFile
virtual bool createUploadFile(const QString &fileName)=0
Create a file to be uploaded to a "new stuff provider" and return the filename.
KNewStuff::install
virtual bool install(const QString &fileName)=0
Install file to application.
KNewStuffSecure
Makes possible downloading and installing signed resource files from a server.
Definition: knewstuffsecure.h:40
KNewStuff
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:69

KDE Home | KDE Accessibility Home | Description of Access Keys