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

tdenewstuff

  • tdenewstuff
knewstuffsecure.h
1 /***************************************************************************
2  knewstuffsecure.h - description
3  -------------------
4  begin : Tue Jun 22 12:19:55 2004
5  copyright : (C) 2004, 2005 by Andras Mantia <amantia@kde.org>
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU Library General Public License as *
12  * published by the Free Software Foundation; version 2 of the License. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef KNEWSTUFFSECURE_H
17 #define KNEWSTUFFSECURE_H
18 
19 //qt includes
20 #include <tqobject.h>
21 
22 //kde includes
23 #include "knewstuff.h"
24 
25 class KTempDir;
40 class TDE_EXPORT TDENewStuffSecure : public TQObject, public TDENewStuff
41 {
42  TQ_OBJECT
43 
44 public:
52  TDENewStuffSecure(const TQString &type, TQWidget *parentWidget=0);
53  virtual ~TDENewStuffSecure();
54 
58  bool install( const TQString &fileName );
59 
61  bool createUploadFile(const TQString &fileName);
62 
65  void downloadResource();
66 
70  void uploadResource(const TQString &fileName);
71 
72 
73 private slots:
75  void slotValidated(int result);
77  void slotFileSigned(int result);
84  void slotUploadFinished(bool result);
85 
86 signals:
87  void installFinished();
88 
89 protected:
91  virtual void installResource() = 0;
93  void removeTempDirectory();
94 
95  KTempDir *m_tempDir;
96  TQString m_tarName;
97  TQString m_signedFileName;
98  TQMap<TQString, TQString> m_installedResources;
99 };
100 
101 #endif
TDENewStuffSecure
Makes possible downloading and installing signed resource files from a server.
Definition: knewstuffsecure.h:41
TDENewStuffSecure::installResource
virtual void installResource()=0
Installs the resource specified by m_tarName.
TDENewStuff
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:70
TDENewStuff::createUploadFile
virtual bool createUploadFile(const TQString &fileName)=0
Create a file to be uploaded to a "new stuff provider" and return the filename.
TDENewStuff::install
virtual bool install(const TQString &fileName)=0
Install file to application.

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.1
This website is maintained by Timothy Pearson.