knewstuff Library API Documentation

knewstuffsecure.h

00001 /*************************************************************************** 00002 knewstuffsecure.h - description 00003 ------------------- 00004 begin : Tue Jun 22 12:19:55 2004 00005 copyright : (C) 2004, 2005 by Andras Mantia <amantia@kde.org> 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU Library General Public License as * 00012 * published by the Free Software Foundation; version 2 of the License. * 00013 * * 00014 ***************************************************************************/ 00015 00016 #ifndef KNEWSTUFFSECURE_H 00017 #define KNEWSTUFFSECURE_H 00018 00019 //qt includes 00020 #include <qobject.h> 00021 00022 //kde includes 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
KDE Logo
This file is part of the documentation for knewstuff Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:30:50 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003