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

knewstuff

  • knewstuff
knewstuff.h
1 /*
2  This file is part of KOrganizer.
3  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef KNEWSTUFF_H
21 #define KNEWSTUFF_H
22 
23 #include <tqstring.h>
24 
25 #include <kdemacros.h>
26 
27 class TQObject;
28 class TQWidget;
29 class KAction;
30 class KActionCollection;
31 
32 namespace KNS {
33 class Engine;
34 class Entry;
35 
36 KDE_EXPORT KAction* standardAction(const TQString& what,
37  const TQObject *recvr,
38  const char *slot,
39  KActionCollection* parent,
40  const char *name = 0);
41 }
42 
69 class KDE_EXPORT KNewStuff
70 {
71  public:
80  KNewStuff( const TQString &type, TQWidget *parentWidget = 0 );
81 
91  KNewStuff( const TQString &type, const TQString &providerList, TQWidget *parentWidget = 0 );
92  virtual ~KNewStuff();
93 
97  TQString type() const;
98 
102  TQWidget *parentWidget() const;
103 
107  void download();
108 
112  void upload();
113 
117  void upload( const TQString &fileName, const TQString previewName );
118 
130  virtual bool install( const TQString &fileName ) = 0;
140  virtual bool createUploadFile( const TQString &fileName ) = 0;
141 
147  virtual TQString downloadDestination( KNS::Entry *entry );
148 
149 
150  protected:
154  KNS::Engine *engine() { return mEngine; }
155 
156 
157  private:
158  KNS::Engine *mEngine;
159 };
160 
161 #endif
KNS::Entry
KNewStuff data entry container.
Definition: entry.h:44
KNewStuff::engine
KNS::Engine * engine()
Get the pointer to the engine.
Definition: knewstuff.h:154
KNewStuff
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:69
KNS
Handles security releated issues, like signing, verifying.
Definition: downloaddialog.h:36
KNS::Engine
Central class combining all possible KNewStuff operations.
Definition: engine.h:51

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