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

knewstuff

  • knewstuff
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 KDE_EXPORT KNewStuffSecure : public TQObject, public KNewStuff
41 {
42  Q_OBJECT
43 
44 public:
52  KNewStuffSecure(const TQString &type, TQWidget *parentWidget=0);
53  virtual ~KNewStuffSecure();
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
KNewStuff::createUploadFile
virtual bool createUploadFile(const TQString &fileName)=0
Create a file to be uploaded to a "new stuff provider" and return the filename.
KNewStuffSecure
Makes possible downloading and installing signed resource files from a server.
Definition: knewstuffsecure.h:40
KNewStuff
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:69
KNewStuff::install
virtual bool install(const TQString &fileName)=0
Install file to application.

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.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |