00001
00021 #ifndef _KCM_SMARTCARD_H
00022 #define _KCM_SMARTCARD_H
00023
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027
00028 #include <dcopobject.h>
00029
00030 #include <kcmodule.h>
00031
00032 #include "smartcardbase.h"
00033 #include "nosmartcardbase.h"
00034
00035 class KConfig;
00036 class KCardDB;
00037 class KPopupMenu;
00038 class KListViewItem;
00039
00040 class KSmartcardConfig : public KCModule, public DCOPObject
00041 {
00042 K_DCOP
00043 Q_OBJECT
00044
00045
00046 public:
00047 KSmartcardConfig(TQWidget *parent = 0L, const char *name = 0L);
00048 virtual ~KSmartcardConfig();
00049
00050 SmartcardBase *base;
00051
00052 void load();
00053 void load( bool useDefaults);
00054 void save();
00055 void defaults();
00056
00057 int buttons();
00058 TQString quickHelp() const;
00059
00060 k_dcop:
00061
00062
00063 void updateReadersState (TQString readerName,
00064 bool isCardPresent,
00065 TQString atr);
00066 void loadReadersTab (TQStringList lr);
00067
00068 private slots:
00069
00070 void slotShowPopup(TQListViewItem * item ,const TQPoint & _point,int i);
00071 void slotLaunchChooser();
00072
00073
00074
00075 private:
00076
00077 KConfig *config;
00078 bool _ok;
00079 KCardDB * _cardDB;
00080 KPopupMenu * _popUpKardChooser;
00081
00082 void getSupportingModule( KListViewItem * ant,
00083 TQString & cardATR) const ;
00084
00085
00086 };
00087
00088 #endif
00089