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

tdenewstuff

  • tdenewstuff
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 <tdemacros.h>
26 
27 class TQObject;
28 class TQWidget;
29 class TDEAction;
30 class TDEActionCollection;
31 
32 namespace KNS {
33 class Engine;
34 class Entry;
35 
36 TDE_EXPORT TDEAction* standardAction(const TQString& what,
37  const TQObject *recvr,
38  const char *slot,
39  TDEActionCollection* parent,
40  const char *name = 0);
41 }
42 
69 class TDE_EXPORT TDENewStuff
70 {
71  public:
80  TDENewStuff( const TQString &type, TQWidget *parentWidget = 0 );
81 
91  TDENewStuff( const TQString &type, const TQString &providerList, TQWidget *parentWidget = 0 );
92  virtual ~TDENewStuff();
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::Engine
Central class combining all possible TDENewStuff operations.
Definition: engine.h:53
KNS::Entry
TDENewStuff data entry container.
Definition: entry.h:46
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::engine
KNS::Engine * engine()
Get the pointer to the engine.
Definition: knewstuff.h:154
TDENewStuff::install
virtual bool install(const TQString &fileName)=0
Install file to application.
KNS
Handles security releated issues, like signing, verifying.
Definition: downloaddialog.h:37

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.