libtdepim

categoryselectdialog.h
1 /*
2  This file is part of libtdepim.
3 
4  Copyright (c) 2000, 2001, 2002 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 #ifndef KPIM_CATEGORYSELECTDIALOG_H
23 #define KPIM_CATEGORYSELECTDIALOG_H
24 
25 #include <kdialogbase.h>
26 #include <tdemacros.h>
27 
28 class KPimPrefs;
29 class CategorySelectDialog_base;
30 
31 namespace KPIM {
32 
33 class TDE_EXPORT CategorySelectDialog : public KDialogBase
34 {
35  TQ_OBJECT
36 
37  public:
38  CategorySelectDialog( KPimPrefs *prefs, TQWidget *parent = 0,
39  const char *name = 0, bool modal = false );
40  ~CategorySelectDialog();
41 
45  void setCategories( const TQStringList &categoryList = TQStringList() );
46  void setSelected( const TQStringList &selList );
47 
48  TQStringList selectedCategories() const;
49 
50  public slots:
51  void slotOk();
52  void slotApply();
53  void clear();
54  void updateCategoryConfig();
55 
56  signals:
57  void categoriesSelected( const TQString & );
58  void categoriesSelected( const TQStringList & );
59  void editCategories();
60 
61  private:
62  KPimPrefs *mPrefs;
63  CategorySelectDialog_base *mWidget;
64  TQStringList mCategoryList;
65 
66  class CategorySelectDialogPrivate;
67  CategorySelectDialogPrivate *d;
68 };
69 
70 }
71 
72 #endif
TDEPIM classes for drag and drop of mails.