• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • knewstuff
 

knewstuff

Signals | Public Member Functions | Protected Member Functions | Protected Attributes
KNewStuffSecure Class Reference

#include <knewstuffsecure.h>

Inheritance diagram for KNewStuffSecure:
KNewStuff

List of all members.

Signals

void installFinished ()

Public Member Functions

 KNewStuffSecure (const TQString &type, TQWidget *parentWidget=0)
bool install (const TQString &fileName)
bool createUploadFile (const TQString &fileName)
void downloadResource ()
void uploadResource (const TQString &fileName)

Protected Member Functions

virtual void installResource ()=0
void removeTempDirectory ()

Protected Attributes

KTempDir * m_tempDir
TQString m_tarName
TQString m_signedFileName
TQMap< TQString, TQString > m_installedResources

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 TQString &  type,
TQWidget *  parentWidget = 0 
)

Constructor.

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

Definition at line 36 of file knewstuffsecure.cpp.


Member Function Documentation

bool KNewStuffSecure::createUploadFile ( const TQString &  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 TQString &  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.

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 TQString &  fileName)

Signs the file and uploads to the central server.

Parameters:
fileNameThe file to be signed and uploaded

Definition at line 174 of file knewstuffsecure.cpp.


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
  • Class Members
  • Related Pages

knewstuff

Skip menu "knewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for knewstuff by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |