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

knewstuff

  • knewstuff
provider.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_PROVIDER_H
21 #define KNEWSTUFF_PROVIDER_H
22 
23 #include <tqcstring.h>
24 #include <tqdom.h>
25 #include <tqobject.h>
26 #include <tqptrlist.h>
27 #include <tqstring.h>
28 
29 #include <kurl.h>
30 
31 namespace KIO { class Job; }
32 
33 namespace KNS {
34 
46 class KDE_EXPORT Provider
47 {
48  public:
49  typedef TQPtrList<Provider> List;
50 
54  Provider();
55 
59  Provider( const TQDomElement & );
60 
64  ~Provider();
65 
69  void setName( const TQString & );
70 
76  TQString name() const;
77 
81  void setDownloadUrl( const KURL & );
82 
88  KURL downloadUrl() const;
89 
96  KURL downloadUrlVariant( TQString variant ) const;
97 
101  void setUploadUrl( const KURL & );
102 
108  KURL uploadUrl() const;
109 
116  void setNoUploadUrl( const KURL & );
117 
124  KURL noUploadUrl() const;
125 
129  void setNoUpload( bool );
130 
136  bool noUpload() const;
137 
143  void setIcon( const KURL & );
144 
150  KURL icon() const;
151 
152  protected:
153  void parseDomElement( const TQDomElement & );
154 
155  TQDomElement createDomElement( TQDomDocument &, TQDomElement &parent );
156 
157  private:
158  TQString mName;
159  KURL mDownloadUrl;
160  KURL mUploadUrl;
161  KURL mNoUploadUrl;
162  KURL mIcon;
163  bool mNoUpload;
164 };
165 
172 class KDE_EXPORT ProviderLoader : public TQObject
173 {
174  Q_OBJECT
175  public:
181  ProviderLoader( TQWidget *parentWidget );
182 
192  void load( const TQString &type, const TQString &providerList = TQString::null );
193 
194  signals:
198  void providersLoaded( Provider::List * );
199 
200  protected slots:
201  void slotJobData( KIO::Job *, const TQByteArray & );
202  void slotJobResult( KIO::Job * );
203 
204  private:
205  TQWidget *mParentWidget;
206 
207  TQString mJobData;
208 
209  Provider::List mProviders;
210 };
211 
212 }
213 
214 #endif
KIO
Definition: downloaddialog.h:26
KNS::ProviderLoader
KNewStuff provider loader.
Definition: provider.h:172
KNS
Handles security releated issues, like signing, verifying.
Definition: downloaddialog.h:36
KNS::Provider
KNewStuff provider container.
Definition: provider.h:46

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