• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KNewStuff

knewstuffsecure.h

Go to the documentation of this file.
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

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal