KNewStuff
knewstuffsecure.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef KNEWSTUFFSECURE_H
00017 #define KNEWSTUFFSECURE_H
00018
00019
00020 #include <qobject.h>
00021
00022
00023 #include "knewstuff.h"
00024
00025 class KTempDir;
00040 class KDE_EXPORT KNewStuffSecure : public QObject, public KNewStuff
00041 {
00042 Q_OBJECT
00043
00044 public:
00052 KNewStuffSecure(const QString &type, QWidget *parentWidget=0);
00053 virtual ~KNewStuffSecure();
00054
00058 bool install( const QString &fileName );
00059
00061 bool createUploadFile(const QString &fileName);
00062
00065 void downloadResource();
00066
00070 void uploadResource(const QString &fileName);
00071
00072
00073 private slots:
00075 void slotValidated(int result);
00077 void slotFileSigned(int result);
00084 void slotUploadFinished(bool result);
00085
00086 signals:
00087 void installFinished();
00088
00089 protected:
00091 virtual void installResource() = 0;
00093 void removeTempDirectory();
00094
00095 KTempDir *m_tempDir;
00096 QString m_tarName;
00097 QString m_signedFileName;
00098 QMap<QString, QString> m_installedResources;
00099 };
00100
00101 #endif