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

knewstuff

  • knewstuff
testnewstuff.h
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef TESTNEWSTUFF_H
22 #define TESTNEWSTUFF_H
23 
24 #include <stdlib.h>
25 
26 #include <tqpushbutton.h>
27 
28 #include <kapplication.h>
29 #include <kdebug.h>
30 
31 #include "knewstuff.h"
32 
33 class TestNewStuff : public KNewStuff
34 {
35  public:
36  TestNewStuff() : KNewStuff( "korganizer/calendar" ) {}
37 
38  bool install( const TQString &fileName );
39 
40  bool createUploadFile( const TQString &fileName );
41 };
42 
43 class MyWidget : public TQWidget
44 {
45  Q_OBJECT
46  public:
47  MyWidget();
48  ~MyWidget();
49 
50  public slots:
51  void upload();
52  void download();
53 
54  private:
55  KNewStuff *mNewStuff;
56 };
57 
58 #endif
KNewStuff
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:70
KNewStuff::createUploadFile
virtual bool createUploadFile(const TQString &fileName)=0
Create a file to be uploaded to a "new stuff provider" and return the filename.
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.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |