summaryrefslogtreecommitdiffstats
path: root/kcontrol/smartcard
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:11:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:11:21 -0600
commitf537c21b68e08f649b1b297bce8f3904603137e0 (patch)
treefb33065387509dea898c90022ddec9c3f8ede86d /kcontrol/smartcard
parentdc5f267664506a312203c26bfe9001a448b0bb0f (diff)
downloadtdebase-f537c21b68e08f649b1b297bce8f3904603137e0.tar.gz
tdebase-f537c21b68e08f649b1b297bce8f3904603137e0.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kcontrol/smartcard')
-rw-r--r--kcontrol/smartcard/smartcard.cpp28
-rw-r--r--kcontrol/smartcard/smartcard.h8
-rw-r--r--kcontrol/smartcard/smartcardbase.ui2
3 files changed, 19 insertions, 19 deletions
diff --git a/kcontrol/smartcard/smartcard.cpp b/kcontrol/smartcard/smartcard.cpp
index 2105c34d0..d802df1a6 100644
--- a/kcontrol/smartcard/smartcard.cpp
+++ b/kcontrol/smartcard/smartcard.cpp
@@ -69,7 +69,7 @@ KSmartcardConfig::KSmartcardConfig(TQWidget *parent, const char *name)
base = new SmartcardBase(this);
layout->add(base);
- _popUpKardChooser = new KPopupMenu(this,"KpopupKardChooser");
+ _popUpKardChooser = new TDEPopupMenu(this,"KpopupKardChooser");
_popUpKardChooser->insertItem(i18n("Change Module..."),
this,
TQT_SLOT(slotLaunchChooser()));
@@ -145,16 +145,16 @@ void KSmartcardConfig::updateReadersState (TQString readerName,
bool isCardPresent,
TQString atr) {
- KListViewItem * tID=(KListViewItem *) base->_readerHostsListView->findItem(readerName, 0);
+ TDEListViewItem * tID=(TDEListViewItem *) base->_readerHostsListView->findItem(readerName, 0);
if (tID==0) return;
- KListViewItem * tIDChild=(KListViewItem*) tID->firstChild();
+ TDEListViewItem * tIDChild=(TDEListViewItem*) tID->firstChild();
if (tIDChild==NULL) return;
delete tIDChild;
if (!isCardPresent)
- (void) new KListViewItem(tID,i18n("No card inserted"));
+ (void) new TDEListViewItem(tID,i18n("No card inserted"));
else{
getSupportingModule(tID,atr);
@@ -175,7 +175,7 @@ void KSmartcardConfig::loadReadersTab( TQStringList lr){
arg << modName;
// New view items
- KListViewItem * temp;
+ TDEListViewItem * temp;
//If the smartcard support is disabled we unload the kardsvc KDED module
// and return
@@ -188,11 +188,11 @@ void KSmartcardConfig::loadReadersTab( TQStringList lr){
// New view items
- KListViewItem * temp;
+ TDEListViewItem * temp;
kapp->dcopClient()->call("kded", "kded", "unloadModule(TQCString)",
data, rettype, retval);
- (void) new KListViewItem(base->_readerHostsListView,
+ (void) new TDEListViewItem(base->_readerHostsListView,
i18n("Smart card support disabled"));
@@ -203,14 +203,14 @@ void KSmartcardConfig::loadReadersTab( TQStringList lr){
if (lr.isEmpty()){
- (void) new KListViewItem(base->_readerHostsListView,
+ (void) new TDEListViewItem(base->_readerHostsListView,
i18n("No readers found. Check 'pcscd' is running"));
return;
}
for (TQStringList::Iterator _slot=lr.begin();_slot!=lr.end();++_slot){
- temp= new KListViewItem(base->_readerHostsListView,*_slot);
+ temp= new TDEListViewItem(base->_readerHostsListView,*_slot);
TQByteArray dataATR;
@@ -227,7 +227,7 @@ void KSmartcardConfig::loadReadersTab( TQStringList lr){
if (cardATR.isNull()){
- (void) new KListViewItem(temp,i18n("NO ATR or no card inserted"));
+ (void) new TDEListViewItem(temp,i18n("NO ATR or no card inserted"));
continue;
}
@@ -241,13 +241,13 @@ void KSmartcardConfig::loadReadersTab( TQStringList lr){
}
-void KSmartcardConfig::getSupportingModule( KListViewItem * ant,
+void KSmartcardConfig::getSupportingModule( TDEListViewItem * ant,
TQString & cardATR) const{
if (cardATR.isNull()){
- (void) new KListViewItem(ant,i18n("NO ATR or no card inserted"));
+ (void) new TDEListViewItem(ant,i18n("NO ATR or no card inserted"));
return;
}
@@ -258,7 +258,7 @@ void KSmartcardConfig::getSupportingModule( KListViewItem * ant,
TQString type=mng[0];
TQString subType=mng[1];
TQString subSubType=mng[2];
- KListViewItem * hil =new KListViewItem(ant,
+ TDEListViewItem * hil =new TDEListViewItem(ant,
i18n("Managed by: "),
type,
subType,
@@ -268,7 +268,7 @@ void KSmartcardConfig::getSupportingModule( KListViewItem * ant,
else{
- KListViewItem * hil =new KListViewItem(ant,
+ TDEListViewItem * hil =new TDEListViewItem(ant,
i18n("No module managing this card"));
hil->setSelectable(FALSE);
}
diff --git a/kcontrol/smartcard/smartcard.h b/kcontrol/smartcard/smartcard.h
index 0a4b7d704..7cb90478e 100644
--- a/kcontrol/smartcard/smartcard.h
+++ b/kcontrol/smartcard/smartcard.h
@@ -34,8 +34,8 @@
class TDEConfig;
class KCardDB;
-class KPopupMenu;
-class KListViewItem;
+class TDEPopupMenu;
+class TDEListViewItem;
class KSmartcardConfig : public TDECModule, public DCOPObject
{
@@ -77,9 +77,9 @@ private:
TDEConfig *config;
bool _ok;
KCardDB * _cardDB;
- KPopupMenu * _popUpKardChooser;
+ TDEPopupMenu * _popUpKardChooser;
- void getSupportingModule( KListViewItem * ant,
+ void getSupportingModule( TDEListViewItem * ant,
TQString & cardATR) const ;
diff --git a/kcontrol/smartcard/smartcardbase.ui b/kcontrol/smartcard/smartcardbase.ui
index 2949e87e7..c3104f05b 100644
--- a/kcontrol/smartcard/smartcardbase.ui
+++ b/kcontrol/smartcard/smartcardbase.ui
@@ -146,7 +146,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KListView">
+ <widget class="TDEListView">
<column>
<property name="text">
<string>Reader</string>