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 / kabc / resourceselectdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.5 KB  |  58 lines

  1. /*
  2.     This file is part of libkabc.
  3.     Copyright (c) 2002 Tobias Koenig <tokoe@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.  
  21. #ifndef KABC_RESOURCESELECTDIALOG_H
  22. #define KABC_RESOURCESELECTDIALOG_H
  23.  
  24. #include <qmap.h>
  25.  
  26. #include <kdialog.h>
  27. #include <kdemacros.h>
  28.  
  29. class KListBox;
  30.  
  31. namespace KABC {
  32.  
  33. class AddressBook;
  34. class Resource;
  35.  
  36. /**
  37.   This class is @deprecated, use KRES::SelectDialog instead. 
  38.  */
  39. class KABC_EXPORT_DEPRECATED ResourceSelectDialog : KDialog
  40. {
  41.   Q_OBJECT
  42.  
  43.   public:
  44.     ResourceSelectDialog( AddressBook *ab, QWidget *parent = 0,
  45.                           const char *name = 0);
  46.     Resource *resource();
  47.  
  48.     static Resource *getResource( AddressBook *ab, QWidget *parent = 0 );
  49.  
  50.   private:
  51.     KListBox *mResourceId;
  52.     QMap<int, Resource*> mResourceMap;
  53. };
  54.  
  55. }
  56.  
  57. #endif
  58.