kcontrol: remove smartcard KCM

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-03-06 14:07:02 +02:00
parent b4f6d9b6e2
commit 2982286939
8 changed files with 0 additions and 1163 deletions

View file

@ -39,9 +39,6 @@ add_subdirectory( spellchecking )
add_subdirectory( kdebug )
# TODO needs porting
#add_subdirectory( smartcard )
add_subdirectory( hardware )
add_subdirectory( desktoppaths )

View file

@ -1,21 +0,0 @@
########### next target ###############
set(kcm_smartcard_PART_SRCS smartcard.cpp smartcardbase.ui nosmartcardbase.ui )
kde4_add_plugin(kcm_smartcard ${kcm_smartcard_PART_SRCS})
target_link_libraries(kcm_smartcard ksmartcard ${KDE4_KIO_LIBS} )
install(TARGETS kcm_smartcard DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
########### install files ###############
install( FILES smartcard.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )

View file

@ -1,5 +0,0 @@
#!/bin/bash
$EXTRACTRC *.ui >> rc.cpp
$XGETTEXT *.cpp -o $podir/kcmsmartcard.pot
rm -f rc.cpp

View file

@ -1,79 +0,0 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>NoSmartcardBase</class>
<widget class="QWidget">
<property name="name">
<cstring>NoSmartcardBase</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>460</width>
<height>480</height>
</rect>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
<property name="text">
<string>&lt;b&gt;Unable to contact the KDE smartcard service.&lt;/b&gt;</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>GroupBox1</cstring>
</property>
<property name="title">
<string>Possible Reasons</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
<property name="text">
<string>
1) The KDE daemon, 'kded' is not running. You can restart it by running the command 'kdeinit' and then try reloading the KDE System Settings to see if this message goes away.
2) You do not appear to have smartcard support in the KDE libraries. You will need to recompile the kdelibs package with libpcsclite installed.</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
</vbox>
</widget>
<spacer>
<property name="name" stdset="0">
<cstring>Spacer5</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<includes>
<include location="local" impldecl="in implementation">kdialog.h</include>
</includes>
</UI>

View file

@ -1,423 +0,0 @@
/**
* smartcard.cpp
*
* Copyright (c) 2001 George Staikos <staikos@kde.org>
* Copyright (c) 2001 Fernando Llobregat <fernando.llobregat@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <QCheckBox>
#include <QLabel>
#include <QLayout>
#include <QLineEdit>
#include <QPushButton>
#include <dcopclient.h>
#include <kaboutdata.h>
#include <kapplication.h>
#include <kcarddb.h>
#include <kcardfactory.h>
#include <kcardgsm_impl.h>
#include <kconfig.h>
#include <kdebug.h>
#include <kdialog.h>
#include <kglobal.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kmenu.h>
#include <kpluginfactory.h>
#include "smartcard.h"
K_PLUGIN_FACTORY(KSmartcardConfigFactory, registerPlugin<KSmartcardConfig>();)
K_EXPORT_PLUGIN(KSmartcardConfigFactory("kcmsmartcard"))
KSmartcardConfig::KSmartcardConfig(QWidget *parent, const QVariantList &)
: KCModule(KSmartcardConfig::componentData(), parent)
, DCOPObject("kcmsmartcard")
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(KDialog::marginHint());
config = new KConfig("ksmartcardrc", false, false);
DCOPClient *dc = KApplication::kApplication()->dcopClient();
_ok = false;
dc->remoteInterfaces("kded", "kardsvc", &_ok);
KAboutData *about =
new KAboutData(I18N_NOOP("kcmsmartcard"), 0, ki18n("KDE Smartcard Control Module"),
0, KLocalizedString(), KAboutData::License_GPL,
ki18n("(c) 2001 George Staikos"));
about->addAuthor(ki18n("George Staikos"), KLocalizedString(), "staikos@kde.org");
setAboutData( about );
if (_ok) {
base = new SmartcardBase(this);
layout->add(base);
_popUpKardChooser = new KMenu(this,"KpopupKardChooser");
_popUpKardChooser->insertItem(i18n("Change Module..."),
this,
SLOT(slotLaunchChooser()));
// The config backend
connect(base->launchManager, SIGNAL(clicked()), SLOT(changed()));
connect(base->beepOnInsert, SIGNAL(clicked()), SLOT(changed()));
connect(base->enableSupport, SIGNAL(clicked()), SLOT(changed()));
connect(base->enablePolling, SIGNAL(clicked()), SLOT(changed()));
connect(base->_readerHostsListView,
SIGNAL(rightButtonPressed(QListViewItem*,QPoint,int)),
this,
SLOT(slotShowPopup(QListViewItem*,QPoint,int)));
if (!connectDCOPSignal("",
"",
"signalReaderListChanged(QStringList)",
"loadReadersTab(QStringList)",
false))
kDebug()<<"Error connecting to DCOP server";
if (!connectDCOPSignal("",
"",
"signalCardStateChanged(QString,bool,QString)",
"updateReadersState (QString,bool,QString) ",
false))
kDebug()<<"Error connecting to DCOP server";
_cardDB= new KCardDB();
load();
} else {
layout->add(new NoSmartcardBase(this));
}
}
KSmartcardConfig::~KSmartcardConfig()
{
delete config;
delete _cardDB;
}
void KSmartcardConfig::slotLaunchChooser(){
if ( KCardDB::launchSelector(base->_readerHostsListView->currentItem()->parent()->text(0))){
KMessageBox::sorry(this,i18n("Unable to launch KCardChooser"));
}
}
void KSmartcardConfig::slotShowPopup(QListViewItem * item ,const QPoint & _point,int i)
{
//The popup only appears in cards, not in the slots1
if (item->isSelectable()) return;
_popUpKardChooser->exec(_point);
}
void KSmartcardConfig::loadSmartCardSupportTab(){
//Update the toggle buttons with the current configuration
if (_ok) {
base->enableSupport->setChecked(config->readEntry("Enable Support",
false));
base->enablePolling->setChecked(config->readEntry("Enable Polling",
true));
base->beepOnInsert->setChecked(config->readEntry("Beep on Insert",
true));
base->launchManager->setChecked(config->readEntry("Launch Manager",
true));
}
}
void KSmartcardConfig::updateReadersState (QString &readerName,
bool isCardPresent,
QString &atr) {
K3ListViewItem * tID=(K3ListViewItem *) base->_readerHostsListView->findItem(readerName, 0);
if (tID==0) return;
K3ListViewItem * tIDChild=(K3ListViewItem*) tID->firstChild();
if (tIDChild==NULL) return;
delete tIDChild;
if (!isCardPresent)
(void) new K3ListViewItem(tID,i18n("No card inserted"));
else{
getSupportingModule(tID,atr);
}
}
void KSmartcardConfig::loadReadersTab( QStringList &lr){
//Prepare data for dcop calls
QByteArray data, retval;
QCString rettype;
QDataStream arg(&data, QIODevice::WriteOnly);
arg.setVersion(QDataStream::Qt_4_8);
DCOPCString modName = "kardsvc";
arg << modName;
// New view items
K3ListViewItem * temp;
//If the smartcard support is disabled we unload the kardsvc KDED module
// and return
base->_readerHostsListView->clear();
if (!config->readEntry("Enable Support", false)) {
// New view items
K3ListViewItem * temp;
kapp->dcopClient()->call("kded", "kded", "unloadModule(QCString)",
data, rettype, retval);
(void) new K3ListViewItem(base->_readerHostsListView,
i18n("Smart card support disabled"));
return;
}
if (lr.isEmpty()){
(void) new K3ListViewItem(base->_readerHostsListView,
i18n("No readers found. Check 'pcscd' is running"));
return;
}
for (QStringList::Iterator _slot=lr.begin();_slot!=lr.end();++_slot){
temp= new K3ListViewItem(base->_readerHostsListView,*_slot);
QByteArray dataATR;
QDataStream argATR(&dataATR,QIODevice::WriteOnly);
argATR.setVersion(QDataStream::Qt_4_8);
argATR << *_slot;
kapp->dcopClient()->call("kded", "kardsvc", "getCardATR(QString)",
dataATR, rettype, retval);
QString cardATR;
QDataStream retReaderATR(retval);
retReaderATR>>cardATR;
if (cardATR.isNull()){
(void) new K3ListViewItem(temp,i18n("NO ATR or no card inserted"));
continue;
}
getSupportingModule(temp,cardATR);
}
}
void KSmartcardConfig::getSupportingModule( K3ListViewItem * ant,
QString & cardATR) const{
if (cardATR.isNull()){
(void) new K3ListViewItem(ant,i18n("NO ATR or no card inserted"));
return;
}
QString modName=_cardDB->getModuleName(cardATR);
if (!modName.isNull()){
QStringList mng= modName.split( ",");
QString type=mng[0];
QString subType=mng[1];
QString subSubType=mng[2];
K3ListViewItem * hil =new K3ListViewItem(ant,
i18n("Managed by: "),
type,
subType,
subSubType);
hil->setSelectable(false);
}
else{
K3ListViewItem * hil =new K3ListViewItem(ant,
i18n("No module managing this card"));
hil->setSelectable(false);
}
}
void KSmartcardConfig::load()
{
//Prepare data for dcop calls
QByteArray data, retval;
QCString rettype;
QDataStream arg(&data, QIODevice::WriteOnly);
arg.setVersion(QDataStream::Qt_4_8);
DCOPCString modName = "kardsvc";
arg << modName;
loadSmartCardSupportTab();
// We call kardsvc to retrieve the current readers
kapp->dcopClient()->call("kded", "kardsvc", "getSlotList ()",
data, rettype, retval);
QStringList readers;
readers.clear();
QDataStream retReader(retval);
retReader>>readers;
//And we update the panel
loadReadersTab(readers);
emit changed(false);
}
void KSmartcardConfig::save()
{
if (_ok) {
config->writeEntry("Enable Support", base->enableSupport->isChecked());
config->writeEntry("Enable Polling", base->enablePolling->isChecked());
config->writeEntry("Beep on Insert", base->beepOnInsert->isChecked());
config->writeEntry("Launch Manager", base->launchManager->isChecked());
QByteArray data, retval;
QCString rettype;
QDataStream arg(&data, QIODevice::WriteOnly);
arg.setVersion(QDataStream::Qt_4_8);
DCOPCString modName = "kardsvc";
arg << modName;
// Start or stop the server as needed
if (base->enableSupport->isChecked()) {
kapp->dcopClient()->call("kded", "kded", "loadModule(QCString)",
data, rettype, retval);
config->sync();
kapp->dcopClient()->call("kded", "kardsvc", "reconfigure()",
data, rettype, retval);
} else {
kapp->dcopClient()->call("kded", "kded", "unloadModule(QCString)",
data, rettype, retval);
}
}
emit changed(false);
}
void KSmartcardConfig::defaults()
{
if (_ok) {
base->enableSupport->setChecked(false);
base->enablePolling->setChecked(true);
base->beepOnInsert->setChecked(true);
base->launchManager->setChecked(true);
}
emit changed(true);
}
QString KSmartcardConfig::quickHelp() const
{
return i18n("<h1>smartcard</h1> This module allows you to configure KDE support"
" for smartcards. These can be used for various tasks such as storing"
" SSL certificates and logging in to the system.");
}
extern "C"
{
KDE_EXPORT void kcminit_smartcard()
{
KConfig *config = new KConfig("ksmartcardrc", false, false);
bool start = config->readEntry("Enable Support", false);
delete config;
if (start) {
QByteArray data, retval;
QCString rettype;
QDataStream arg(&data, QIODevice::WriteOnly);
arg.setVersion(QDataStream::Qt_4_8);
DCOPCString modName = "kardsvc";
arg << modName;
kapp->dcopClient()->call("kded", "kded", "loadModule(QCString)",
data, rettype, retval);
}
}
}
#include "moc_smartcard.cpp"

View file

@ -1,235 +0,0 @@
[Desktop Entry]
Icon=preferences-desktop-user-smartcard
Type=Service
X-KDE-ServiceTypes=KCModule,KCModuleInit
Exec=kcmshell4 smartcard
X-DocPath=kcontrol/smartcard.html
X-KDE-Library=kcm_smartcard
X-KDE-Init-Symbol=smartcard
X-KDE-ParentApp=kcontrol
X-KDE-System-Settings-Parent-Category=keyboard-and-mouse
X-KDE-Weight=80
Name=Smartcards
Name[af]=Smartkaarte
Name[ar]=البطاقات الذكية
Name[ast]=Smartcards
Name[be]=Смарткарткі
Name[be@latin]=Smartkarty
Name[bg]=Smartcards
Name[bn]=
Name[bn_IN]=-
Name[br]=Smartcards
Name[bs]=Smart-kartice
Name[ca]=Targetes intel·ligents
Name[ca@valencia]=Targetes intel·ligents
Name[cs]=Smartcards
Name[csb]=Kartë bezpiekù
Name[cy]=Smartcards
Name[da]=Smartcards
Name[de]=Smartcards
Name[el]=Έξυπνες κάρτες
Name[en_GB]=Smartcards
Name[eo]=Memorkartoj
Name[es]=Smartcards
Name[et]=Kiipkaardid
Name[eu]=Txartel adimendunak
Name[fa]=کارتهای هوشمند
Name[fi]=Älykortit
Name[fr]=Cartes à puce
Name[fy]=Chipkaarten
Name[ga]=Cártaí Cliste
Name[gl]=Smartcards
Name[gu]=
Name[he]=כרטיסים חכמים
Name[hi]=
Name[hne]=
Name[hr]=Smartcards
Name[hsb]=Smartcards
Name[hu]=Smartcard-beállítások
Name[ia]=Smartcards
Name[id]=Kartu Pintar
Name[is]=Snjallkort
Name[ja]=
Name[ka]=
Name[kk]=Смарт-карталар
Name[km]=Smartcards
Name[kn]= ( )
Name[ko]=
Name[ku]=KardênJîr
Name[lt]=Gudrios kortelės
Name[lv]=Viedkartes
Name[mai]=
Name[mk]=Паметни картички
Name[ml]=Smartcards
Name[mr]=
Name[ms]=Kad pintar
Name[nb]=Smartkort
Name[nds]=Smartkoorten
Name[ne]=
Name[nl]=Chipkaarten
Name[nn]=Smartkort
Name[or]=
Name[pa]=-
Name[pl]=Karty inteligentne
Name[pt]=Smartcards
Name[pt_BR]=Cartões com chip
Name[ro]=Smartcard-uri
Name[ru]=Смарт-карты
Name[se]=Jierbmásgoarttat
Name[si]=
Name[sk]=Smart karty
Name[sl]=Pametne kartice
Name[sr]=Смарт-картице
Name[sr@ijekavian]=Смарт-картице
Name[sr@ijekavianlatin]=Smart-kartice
Name[sr@latin]=Smart-kartice
Name[sv]=Smartkort
Name[ta]=
Name[te]=
Name[tg]=Кортҳои Smart
Name[th]=
Name[tr]=Smart Kartlar
Name[ug]=ئىدراكلىق كارتالار
Name[uk]=Смарт-карти
Name[uz]=Smartcard'lar
Name[uz@cyrillic]=Smartcard'лар
Name[vi]=Th thông minh
Name[wa]=Sûteyès cåtes
Name[xh]=Smartcards
Name[x-test]=xxSmartcardsxx
Name[zh_CN]=
Name[zh_TW]=
Comment=Configure smartcard support
Comment[af]=Konfigureer smartkaart ondersteun
Comment[ar]=اضبط دعم البطاقات الذكية
Comment[ast]=Configuración del sofitu pa tarxetes Smart
Comment[be]=Настаўленні падтрымкі смарткартак
Comment[be@latin]=Nałady smartkartaŭ
Comment[bg]=Настройки на поддръжката на smartcard
Comment[bn]= ি ি
Comment[bn_IN]=- ি
Comment[bs]=Podešavanje podrške za smart-kartice
Comment[ca]=Configura la compatibilitat de les targetes intel·ligents
Comment[ca@valencia]=Configura la compatibilitat de les targetes intel·ligents
Comment[cs]=Nastavení podpory SmartCard
Comment[csb]=Kònfigùracëjô kartów bezpiekù (SmartCards)
Comment[cy]=Ffurfweddu cynhaliaeth cerdyn smart
Comment[da]=Indstil smartcard-understøttelse
Comment[de]=Smartcard-Unterstützung einrichten
Comment[el]=Διαμόρφωση υποστήριξης έξυπνων καρτών
Comment[en_GB]=Configure smartcard support
Comment[eo]=Agordi la subtenon de memorkartoj
Comment[es]=Configuración del reconocimiento de tarjetas Smart
Comment[et]=Kiipkaardi toetuse seadistamine
Comment[eu]=Konfiguratu txartel adimendunen euskarria
Comment[fa]=پیکربندی پشتیبانی کارت هوشمند
Comment[fi]=Smartcard-tuki
Comment[fr]=Configurer la prise en charge des cartes à puce
Comment[fy]=Chipkaartstipe ynstelle
Comment[ga]=Cumraigh tacaíocht do Chártaí Cliste
Comment[gl]=Configurar a compatibilidade con smartcard
Comment[gu]= િ
Comment[he]=הגדרות תמיכה בכרטיסים חכמים
Comment[hi]=- ि
Comment[hne]=- ि
Comment[hr]=Konfiguriranje smartcard podrške
Comment[hsb]=Podpěru za smartcards připrawić
Comment[hu]=A smartcard-támogatás beállításai
Comment[ia]=Configura le supporto de smartcards
Comment[id]=Atur dukungan kartu pintas
Comment[is]=Stilla stuðning við snjallkort
Comment[ja]=
Comment[kk]=Смарт-карталарды қолдауын баптау
Comment[km]= Smartcard
Comment[kn]= ( ) ಿ
Comment[ko]=
Comment[ku]=Veavakirina piştgirî ya kardênjîr
Comment[lt]=Konfigūruoti gudrių kortelių palaikymą
Comment[lv]=Konfigurēt viedkaršu atbalstu
Comment[mai]=- ि
Comment[mk]=Конфигурирајте ја поддршката за паметни картички
Comment[ml]=ി ി ി
Comment[mr]=-
Comment[ms]=Konfigur sokongan kad pintar
Comment[nb]=Sett opp smartkortstøtte
Comment[nds]=Ünnerstütten för Smartkoorten inrichten
Comment[ne]= ि
Comment[nl]=Chipkaartondersteuning instellen
Comment[nn]=Oppsett av smartkortstøtte
Comment[or]= ି
Comment[pa]=-
Comment[pl]=Ustawienia kart inteligentnych (SmartCards)
Comment[pt]=Configurar o suporte de 'smartcards'
Comment[pt_BR]=Configurar o suporte a cartões com chip
Comment[ro]=Configurează suportul pentru smartcard-uri
Comment[ru]=Настройка поддержки смарт-карт
Comment[se]=Heivet jierbmásgoartadoarjja
Comment[si]=
Comment[sk]=Nastavenie podpory smart kariet
Comment[sl]=Nastavi podporo pametnih kartic
Comment[sr]=Подешавање подршке за смарт-картице
Comment[sr@ijekavian]=Подешавање подршке за смарт-картице
Comment[sr@ijekavianlatin]=Podešavanje podrške za smart-kartice
Comment[sr@latin]=Podešavanje podrške za smart-kartice
Comment[sv]=Anpassa stöd för smartkort
Comment[ta]=
Comment[te]= ి
Comment[tg]=Танзимоти пуштибонии кортҳои Smart
Comment[th]=
Comment[tr]=Smartcard desteğini yapılandır
Comment[ug]=ئىدراكلىق كارتا قوللاش سەپلىمەسى
Comment[uk]=Налаштування підтримки смарт-карт
Comment[uz]=Smartcard'ni moslash
Comment[uz@cyrillic]=Smartcard'ни мослаш
Comment[vi]=Cu hình kh năng h tr th thông minh
Comment[wa]=Apontyî li sopoirt smartcard
Comment[xh]=Qwalasela inkxaso ye smartcard
Comment[x-test]=xxConfigure smartcard supportxx
Comment[zh_CN]=
Comment[zh_TW]= (SmartCard)
X-KDE-Keywords=Smartcard,PKCS,SSL,reader,smart,card
X-KDE-Keywords[bs]=smartcard,PKSC,SSL,čitač,pametan,kartica
X-KDE-Keywords[ca]=Targeta intel·ligent,PKCS,SSL,lector,intel·ligent,targeta
X-KDE-Keywords[ca@valencia]=Targeta intel·ligent,PKCS,SSL,lector,intel·ligent,targeta
X-KDE-Keywords[cs]=SmartCard,PKCS,SSL,čtečka,smart,card
X-KDE-Keywords[da]=smartcard,PKCS,SSL,læser,smart,card
X-KDE-Keywords[de]=Smartcard,PKCS,SSL,Reader,Smart,Card,Leser
X-KDE-Keywords[el]=Έξυπνη κάρτα,PKCS,SSL,αναγνώστης,έξυπνη,κάρτα
X-KDE-Keywords[en_GB]=Smartcard,PKCS,SSL,reader,smart,card
X-KDE-Keywords[es]=Tarjeta inteligente,PKCS,SSL,lector,inteligente,tarjeta
X-KDE-Keywords[et]=kiipkaart,PKCS,SSL,lugeja,kaardilugeja
X-KDE-Keywords[eu]=txartel adimendun,PKCS,SSL,irakurgailu,adimendun,txartel
X-KDE-Keywords[fi]=Smartcard,Älykortti,PKCS,SSL,lukija,äly,kortti
X-KDE-Keywords[fr]=SmartCard, PKCS, SSL, lecteur, smart, card
X-KDE-Keywords[ga]=Cárta cliste,PKCS,SSL,léitheoir,cliste,cárta
X-KDE-Keywords[gl]=Smartcard,PKCS,SSL,lector,tarxeta,intelixente
X-KDE-Keywords[hu]=Intelligenskártya,PKCS,SSL,olvasó,intelligens,kártya
X-KDE-Keywords[ia]=Smartcards,PKCS,SSL,lector,smart,card
X-KDE-Keywords[kk]=Smartcard,PKCS,SSL,reader,smart,card
X-KDE-Keywords[km]=Smartcard,PKCS,SSL,reader,smart,card
X-KDE-Keywords[ko]=Smartcard,PKCS,SSL,reader,smart,card,,,,
X-KDE-Keywords[mr]= , , , ि,,
X-KDE-Keywords[nb]=Smartkort,PKCS,SSL,leser,smart,kort
X-KDE-Keywords[nds]=Smartkoort,PKCS,SSL,Leser,Inleser
X-KDE-Keywords[nl]=Smartcard,PKCS,SSL,lezer,smart,card
X-KDE-Keywords[pl]=Karta inteligentna,Smartcard,PKCS,SSL,czytnik,inteligentna,karta
X-KDE-Keywords[pt]=Smartcard,inteligente,PKCS,SSL,leitor,cartão
X-KDE-Keywords[pt_BR]=Smartcard,PKCS,SSL,leitor,inteligente,cartão
X-KDE-Keywords[ru]=Smartcard,PKCS,SSL,reader,smart,card,смарт-карта,смарт,карта,устройство для чтения карт
X-KDE-Keywords[sk]=Smartcard,PKCS,SSL,čítačka,smart,karta
X-KDE-Keywords[sl]=Smartcard,PKCS,SSL,pametna kartica,kartica,bralnik
X-KDE-Keywords[sr]=Smartcard,PKCS,SSL,reader,smart,card,ПКЦС,ССЛ,читач,картица,смарт-картица
X-KDE-Keywords[sr@ijekavian]=Smartcard,PKCS,SSL,reader,smart,card,ПКЦС,ССЛ,читач,картица,смарт-картица
X-KDE-Keywords[sr@ijekavianlatin]=Smartcard,PKCS,SSL,reader,smart,card,PKCS,SSL,čitač,kartica,smart-kartica
X-KDE-Keywords[sr@latin]=Smartcard,PKCS,SSL,reader,smart,card,PKCS,SSL,čitač,kartica,smart-kartica
X-KDE-Keywords[sv]=Smartkort,PKCS,SSL,läsare,smart,kort
X-KDE-Keywords[tr]=Akıllı kart,PKCS,SSL,okuyucu,akıllı,kart
X-KDE-Keywords[uk]=Smartcard,PKCS,SSL,reader,smart,card,картка памяті,памятова картка,смарт-картка,читання,смарт
X-KDE-Keywords[x-test]=xxSmartcard,PKCS,SSL,reader,smart,cardxx
X-KDE-Keywords[zh_CN]=Smartcard,PKCS,SSL,reader,smart,card,,,,
X-KDE-Keywords[zh_TW]=Smartcard,PKCS,SSL,reader,smart,card
Categories=Qt;KDE;X-KDE-settings-peripherals;

View file

@ -1,89 +0,0 @@
/**
* smartcard.h
*
* Copyright (c) 2001 George Staikos <staikos@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KCM_SMARTCARD_H
#define KCM_SMARTCARD_H
#include <config-workspace.h>
#include <dcopobject.h>
#include <kcmodule.h>
#include <QtCore/qvariant.h>
#include "smartcardbase.h"
#include "nosmartcardbase.h"
class KConfig;
class KCardDB;
class KMenu;
class K3ListViewItem;
#include <QStringList>
class KSmartcardConfig : public KCModule, public DCOPObject
{
K_DCOP
Q_OBJECT
public:
KSmartcardConfig(QWidget *parent, const QVariantList &args)
virtual ~KSmartcardConfig();
SmartcardBase *base;
void load();
void save();
void defaults();
int buttons();
QString quickHelp() const;
k_dcop:
void updateReadersState (QString &readerName,
bool isCardPresent,
QString &atr);
void loadReadersTab (QStringList &lr);
private Q_SLOTS:
void slotShowPopup(QListViewItem * item ,const QPoint & _point,int i);
void slotLaunchChooser();
private:
KConfig *config;
bool _ok;
KCardDB * _cardDB;
KMenu * _popUpKardChooser;
void loadSmartCardSupportTab();
void getSupportingModule( K3ListViewItem * ant,
QString & cardATR) const ;
};
#endif

View file

@ -1,308 +0,0 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>SmartcardBase</class>
<widget class="QWidget">
<property name="name">
<cstring>SmartcardBase</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>519</width>
<height>356</height>
</rect>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QTabWidget" row="0" column="0">
<property name="name">
<cstring>TabWidget2</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Smartcard Support</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox" row="0" column="0">
<property name="name">
<cstring>enableSupport</cstring>
</property>
<property name="text">
<string>&amp;Enable smartcard support</string>
</property>
</widget>
<widget class="QLayoutWidget" row="1" column="0">
<property name="name">
<cstring>Layout2</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox" row="0" column="1">
<property name="name">
<cstring>enablePolling</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Enable &amp;polling to autodetect card events</string>
</property>
<property name="whatsThis" stdset="0">
<string>In most cases you should have this enabled. It allows KDE to automatically detect card insertion and reader hotplug events.</string>
</property>
</widget>
<spacer row="0" column="0" rowspan="3" colspan="1">
<property name="name" stdset="0">
<cstring>Spacer3</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QCheckBox" row="2" column="1">
<property name="name">
<cstring>launchManager</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Automatically &amp;launch card manager if inserted card is unclaimed</string>
</property>
<property name="whatsThis" stdset="0">
<string>When you insert a smartcard, KDE can automatically launch a management tool if no other application attempts to use the card.</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="1">
<property name="name">
<cstring>beepOnInsert</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Beep on card insert and removal</string>
</property>
</widget>
</grid>
</widget>
<spacer row="2" column="0">
<property name="name" stdset="0">
<cstring>Spacer4</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Readers</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget" row="0" column="0">
<property name="name">
<cstring>Layout3</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="K3ListView">
<column>
<property name="text">
<string>Reader</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizeable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Type</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizeable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Subtype</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizeable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>SubSubtype</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizeable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>_readerHostsListView</cstring>
</property>
<property name="rootIsDecorated">
<bool>true</bool>
</property>
</widget>
<widget class="Line">
<property name="name">
<cstring>Line1</cstring>
</property>
<property name="frameShape" stdset="0">
<enum>HLine</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>PCSCLite Configuration</string>
</property>
<widget class="QLabel">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>380</width>
<height>40</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>To add new readers you have to modify /etc/readers.conf file and re-start pcscd</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
</widget>
</vbox>
</widget>
</grid>
</widget>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>enableSupport</sender>
<signal>toggled(bool)</signal>
<receiver>enablePolling</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>enableSupport</sender>
<signal>toggled(bool)</signal>
<receiver>beepOnInsert</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>enableSupport</sender>
<signal>toggled(bool)</signal>
<receiver>launchManager</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>enableSupport</sender>
<signal>toggled(bool)</signal>
<receiver>SmartcardBase</receiver>
<slot>enableSupport_toggled(bool)</slot>
</connection>
<connection>
<sender>enablePolling</sender>
<signal>toggled(bool)</signal>
<receiver>SmartcardBase</receiver>
<slot>enablePolling_toggled(bool)</slot>
</connection>
</connections>
<includes>
<include location="local" impldecl="in implementation">smartcardbase.ui.h</include>
</includes>
<slots>
<slot>slotTestReader()</slot>
<slot>enableSupport_toggled(bool)</slot>
<slot>enablePolling_toggled(bool)</slot>
</slots>
<includes>
<include location="local" impldecl="in implementation">kdialog.h</include>
</includes>
</UI>