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

tdenewstuff

Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TDENewStuffSecure Class Referenceabstract

#include <knewstuffsecure.h>

Inheritance diagram for TDENewStuffSecure:
TDENewStuff

Signals

void installFinished ()
 

Public Member Functions

 TDENewStuffSecure (const TQString &type, TQWidget *parentWidget=0)
 
bool install (const TQString &fileName)
 
bool createUploadFile (const TQString &fileName)
 
void downloadResource ()
 
void uploadResource (const TQString &fileName)
 
- Public Member Functions inherited from TDENewStuff
 TDENewStuff (const TQString &type, TQWidget *parentWidget=0)
 
 TDENewStuff (const TQString &type, const TQString &providerList, TQWidget *parentWidget=0)
 
TQString type () const
 
TQWidget * parentWidget () const
 
void download ()
 
void upload ()
 
void upload (const TQString &fileName, const TQString previewName)
 
virtual bool install (const TQString &fileName)=0
 
virtual bool createUploadFile (const TQString &fileName)=0
 
virtual TQString downloadDestination (KNS::Entry *entry)
 

Protected Member Functions

virtual void installResource ()=0
 
void removeTempDirectory ()
 
- Protected Member Functions inherited from TDENewStuff
KNS::Engine * engine ()
 

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 TDENewStuff class.

Since
3.4
Author
Andras Mantia amant.nosp@m.ia@k.nosp@m.de.or.nosp@m.g

Definition at line 40 of file knewstuffsecure.h.

Constructor & Destructor Documentation

◆ TDENewStuffSecure()

TDENewStuffSecure::TDENewStuffSecure ( 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 TDENewStuff engine

Definition at line 36 of file knewstuffsecure.cpp.

◆ ~TDENewStuffSecure()

TDENewStuffSecure::~TDENewStuffSecure ( )
virtual

Definition at line 44 of file knewstuffsecure.cpp.

Member Function Documentation

◆ createUploadFile()

bool TDENewStuffSecure::createUploadFile ( const TQString &  fileName)
virtual

Reimplemented for internal reasons.

Implements TDENewStuff.

Definition at line 168 of file knewstuffsecure.cpp.

◆ downloadResource()

void TDENewStuffSecure::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.

◆ install()

bool TDENewStuffSecure::install ( const TQString &  fileName)
virtual

Installs the downloaded resource.

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

Implements TDENewStuff.

Definition at line 49 of file knewstuffsecure.cpp.

◆ installResource()

virtual void TDENewStuffSecure::installResource ( )
protectedpure virtual

Installs the resource specified by m_tarName.

Implement it in the subclass.

◆ removeTempDirectory()

void TDENewStuffSecure::removeTempDirectory ( )
protected

Removes the temporary directory m_tempDir.

Definition at line 230 of file knewstuffsecure.cpp.

◆ uploadResource()

void TDENewStuffSecure::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.

Member Data Documentation

◆ m_installedResources

TQMap<TQString, TQString> TDENewStuffSecure::m_installedResources
protected

Definition at line 98 of file knewstuffsecure.h.

◆ m_signedFileName

TQString TDENewStuffSecure::m_signedFileName
protected

Definition at line 97 of file knewstuffsecure.h.

◆ m_tarName

TQString TDENewStuffSecure::m_tarName
protected

Definition at line 96 of file knewstuffsecure.h.

◆ m_tempDir

KTempDir* TDENewStuffSecure::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

tdenewstuff

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

tdenewstuff

Skip menu "tdenewstuff"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdenewstuff by doxygen 1.9.4
This website is maintained by Timothy Pearson.