home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / knewstuff / providerdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.9 KB  |  77 lines

  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_PROVIDERDIALOG_H
  21. #define KNEWSTUFF_PROVIDERDIALOG_H
  22.  
  23. #include <kdialogbase.h>
  24.  
  25. class KListView;
  26.  
  27. namespace KNS {
  28.  
  29. class Provider;
  30. class Engine;
  31.  
  32. /**
  33.  * @short Dialog displaying a list of Hotstuff providers.
  34.  *
  35.  * This is normally used in the process of uploading data, thus limiting the
  36.  * list to providers which support uploads.
  37.  * One of the providers is then chosen by the user for further operation.
  38.  *
  39.  * @author Cornelius Schumacher (schumacher@kde.org)
  40.  * \par Maintainer:
  41.  * Josef Spillner (spillner@kde.org)
  42.  */
  43. class ProviderDialog : public KDialogBase
  44. {
  45.     Q_OBJECT
  46.   public:
  47.     /**
  48.       Constructor.
  49.  
  50.       @param engine a KNewStuff engine object
  51.       @param parent the parent window
  52.     */
  53.     ProviderDialog( Engine *engine, QWidget *parent );
  54.  
  55.     /**
  56.       Clears the list of providers.
  57.     */
  58.     void clear();
  59.  
  60.     /**
  61.       Adds a Hotstuff provider to the list.
  62.     */
  63.     void addProvider( Provider * );
  64.  
  65.   protected slots:
  66.     void slotOk();
  67.  
  68.   private:
  69.     Engine *mEngine;
  70.  
  71.     KListView *mListView;
  72. };
  73.  
  74. }
  75.  
  76. #endif
  77.