Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kcontrol / smartcard / smartcard.h
blob730de367118df6394ed6d8d407cab978284f4cd1
1 /**
2 * smartcard.h
4 * Copyright (c) 2001 George Staikos <staikos@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program 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
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef _KCM_SMARTCARD_H
22 #define _KCM_SMARTCARD_H
24 #include <config-workspace.h>
26 #include <dcopobject.h>
28 #define KDE3_SUPPORT
29 #include <kcmodule.h>
30 #undef KDE3_SUPPORT
32 #include "smartcardbase.h"
33 #include "nosmartcardbase.h"
35 class KConfig;
36 class KCardDB;
37 class KMenu;
38 class K3ListViewItem;
39 class QStringList;
41 class KSmartcardConfig : public KCModule, public DCOPObject
43 K_DCOP
44 Q_OBJECT
47 public:
48 KSmartcardConfig(QWidget *parent, const QStringList &args)
49 virtual ~KSmartcardConfig();
51 SmartcardBase *base;
53 void load();
54 void save();
55 void defaults();
57 int buttons();
58 QString quickHelp() const;
60 k_dcop:
63 void updateReadersState (QString &readerName,
64 bool isCardPresent,
65 QString &atr);
66 void loadReadersTab (QStringList &lr);
68 private Q_SLOTS:
70 void slotShowPopup(QListViewItem * item ,const QPoint & _point,int i);
71 void slotLaunchChooser();
75 private:
77 KConfig *config;
78 bool _ok;
79 KCardDB * _cardDB;
80 KMenu * _popUpKardChooser;
82 void loadSmartCardSupportTab();
83 void getSupportingModule( K3ListViewItem * ant,
84 QString & cardATR) const ;
89 #endif