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

KNewStuff

KNewStuffSecure Class Reference

Makes possible downloading and installing signed resource files from a server. More...

#include <knewstuffsecure.h>

Inheritance diagram for KNewStuffSecure:

Inheritance graph
[legend]

List of all members.


Signals

void installFinished ()

Public Member Functions

bool createUploadFile (const QString &fileName)
void downloadResource ()
bool install (const QString &fileName)
 KNewStuffSecure (const QString &type, QWidget *parentWidget=0)
void uploadResource (const QString &fileName)
virtual ~KNewStuffSecure ()

Protected Member Functions

virtual void installResource ()=0
void removeTempDirectory ()

Protected Attributes

QMap< QString, QString > m_installedResources
QString m_signedFileName
QString m_tarName
KTempDir * m_tempDir

Detailed Description

Makes possible downloading and installing signed resource files from a server.

You must subclass it and implement the installResource() pure virtual method to install a resource. For uploading you must create a resource tarball (which is installabale by installResource()) and call the uploadResource() method with this tarball as the argument. Signing and verification is done by the gpg application, so the user must have it installed, otherwise this class does not give any extra security compared to the standard KNewStuff class.

Since:
3.4
Author:
Andras Mantia <amantia@kde.org>

Definition at line 40 of file knewstuffsecure.h.


Constructor & Destructor Documentation

KNewStuffSecure::KNewStuffSecure ( const QString &  type,
QWidget *  parentWidget = 0 
)

Constructor.

Parameters:
type type of data to be handled, should be something like korganizer/calendar, kword/template, kdesktop/wallpaper
parentWidget parent widget of dialogs opened by the KNewStuff engine

Definition at line 36 of file knewstuffsecure.cpp.

KNewStuffSecure::~KNewStuffSecure (  )  [virtual]

Definition at line 44 of file knewstuffsecure.cpp.


Member Function Documentation

bool KNewStuffSecure::createUploadFile ( const QString &  fileName  )  [virtual]

Reimplemented for internal reasons.

Implements KNewStuff.

Definition at line 168 of file knewstuffsecure.cpp.

void KNewStuffSecure::downloadResource (  ) 

Initiates a download.

This is the method that must be called in order to download a signed resource.

Definition at line 160 of file knewstuffsecure.cpp.

bool KNewStuffSecure::install ( const QString &  fileName  )  [virtual]

Installs the downloaded resource.

Do not call or reimplement directly. It's reimplemented from KNewStuff for internal reasons.

Implements KNewStuff.

Definition at line 49 of file knewstuffsecure.cpp.

void KNewStuffSecure::installFinished (  )  [signal]

virtual void KNewStuffSecure::installResource (  )  [protected, pure virtual]

Installs the resource specified by m_tarName.

Implement it in the subclass.

void KNewStuffSecure::removeTempDirectory (  )  [protected]

Removes the temporary directory m_tempDir.

Definition at line 230 of file knewstuffsecure.cpp.

void KNewStuffSecure::uploadResource ( const QString &  fileName  ) 

Signs the file and uploads to the central server.

Parameters:
fileName The file to be signed and uploaded

Definition at line 174 of file knewstuffsecure.cpp.


Member Data Documentation

QMap<QString, QString> KNewStuffSecure::m_installedResources [protected]

Definition at line 98 of file knewstuffsecure.h.

QString KNewStuffSecure::m_signedFileName [protected]

Definition at line 97 of file knewstuffsecure.h.

QString KNewStuffSecure::m_tarName [protected]

Definition at line 96 of file knewstuffsecure.h.

KTempDir* KNewStuffSecure::m_tempDir [protected]

Definition at line 95 of file knewstuffsecure.h.


The documentation for this class was generated from the following files:
  • knewstuffsecure.h
  • knewstuffsecure.cpp

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