summaryrefslogtreecommitdiffstats
path: root/kcontrol/ioslaveinfo
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/ioslaveinfo')
-rw-r--r--kcontrol/ioslaveinfo/Makefile.am21
-rw-r--r--kcontrol/ioslaveinfo/ioslaveinfo.desktop237
-rw-r--r--kcontrol/ioslaveinfo/kcmioslaveinfo.cpp148
-rw-r--r--kcontrol/ioslaveinfo/kcmioslaveinfo.h61
-rw-r--r--kcontrol/ioslaveinfo/uninstall.desktop2
5 files changed, 469 insertions, 0 deletions
diff --git a/kcontrol/ioslaveinfo/Makefile.am b/kcontrol/ioslaveinfo/Makefile.am
new file mode 100644
index 000000000..14150d57c
--- /dev/null
+++ b/kcontrol/ioslaveinfo/Makefile.am
@@ -0,0 +1,21 @@
+kde_module_LTLIBRARIES = kcm_ioslaveinfo.la
+
+kcm_ioslaveinfo_la_SOURCES = kcmioslaveinfo.cpp
+
+kcm_ioslaveinfo_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
+kcm_ioslaveinfo_la_LIBADD = -lkdeui $(LIB_KIO)
+
+AM_CPPFLAGS= $(all_includes)
+
+METASOURCES = AUTO
+
+messages:
+ $(XGETTEXT) *.cpp -o $(podir)/kcmioslaveinfo.pot
+
+xdg_apps_DATA = ioslaveinfo.desktop
+
+install-data-local: uninstall.desktop
+ $(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Settings/Information
+
+# $(INSTALL_DATA) $(srcdir)/uninstall.desktop $(DESTDIR)$(kde_appsdir)/Settings/Network/ioslaveinfo.desktop
+
diff --git a/kcontrol/ioslaveinfo/ioslaveinfo.desktop b/kcontrol/ioslaveinfo/ioslaveinfo.desktop
new file mode 100644
index 000000000..a9ece6f71
--- /dev/null
+++ b/kcontrol/ioslaveinfo/ioslaveinfo.desktop
@@ -0,0 +1,237 @@
+[Desktop Entry]
+Comment=Information about the available protocols
+Comment[af]=Informasie aangaande die beskikbaar protokolle
+Comment[ar]=معلومات عن الموافيق المتوفرة
+Comment[az]=Mövcud protokollar haqqında mə'lumat
+Comment[be]=Інфармацыя аб наяўных пратаколах
+Comment[bg]=Информация за поддържаните протоколи
+Comment[bn]=বিভিন্ন প্রোটোকল সম্বন্ধে তথ্য
+Comment[bs]=Informacije o dostupnim protokolima
+Comment[ca]=Informació sobre els protocols disponibles
+Comment[cs]=Informace o dostupných protokolech
+Comment[csb]=Wëdowiédzô ò przistãpnëch protokòłach
+Comment[cy]=Gwybodaeth am y protocolau sydd ar gael
+Comment[da]=Information om de tilgængelige protokoller
+Comment[de]=Information zu den verfügbaren Ein-/Ausgabemodulen
+Comment[el]=Πληροφορίες για τα διαθέσιμα πρωτόκολλα
+Comment[eo]=Informo pri la uzeblaj protokoloj
+Comment[es]=Información sobre los protocolos disponibles
+Comment[et]=Olemasolevate IO moodulite (ioslave) info
+Comment[eu]=Produktu eskuragarriei buruzko informazioa
+Comment[fa]=اطلاعاتی دربارۀ قراردادهای قابل دسترس
+Comment[fi]=Tietoja saatavilla olevista yhteyskäytännöistä
+Comment[fr]=Informations sur les protocoles disponibles
+Comment[fy]=Ynformaasje oer de beskikbere protokollen
+Comment[ga]=Eolas faoi na bprótacail atá ar fáil
+Comment[gl]=Información acerca dos protocolos diponíbeis
+Comment[he]=מידע על הפרוטוקולים הזמינים
+Comment[hi]=उपलब्ध प्रोटोकॉल्स के बारे में जानकारी
+Comment[hr]=Podaci o raspoloživim protokolima
+Comment[hu]=A rendelkezésre álló protokollok jellemzői
+Comment[id]=Informasi tentang protokol yang tersedia
+Comment[is]=Upplýsingar um nothæfar samskiptareglur
+Comment[it]=Informazioni sui protocolli disponibili
+Comment[ja]=利用可能なプロトコルの情報
+Comment[ka]=ინფორმაცია ხელმისაწვდომი პროტოკოების შესახებ
+Comment[kk]=Енгізу-шығару протоколдар туралы мәлімет
+Comment[km]=ព័ត៌មាន​អំពី​ពិធីការ​ដែល​អាច​រក​បាន
+Comment[ko]=사용 가능한 프로토콜 정보
+Comment[lo]=ຂໍ້ມູນກ່ງວກັບໂປຣໂຕຄອນທີ່ມີຢູ່
+Comment[lt]=Informacija apie esamus protokolus
+Comment[lv]=Informācija par pieejamajiem protokoliem
+Comment[mk]=Информации за достапните протоколи
+Comment[mn]=Бэлэн байгаа оролт/гаралтын-модулын мэдээлэл
+Comment[ms]=Maklumat tentang protokol yang boleh didapatkan
+Comment[mt]=Informazzjoni dwar il-protokolli li hawn
+Comment[nb]=Informasjon om de tilgjengelige protokollene
+Comment[nds]=Informatschoon över de verföögboren Protokollen
+Comment[ne]=उपलब्ध प्रोटोकलका बारेमा सूचना
+Comment[nl]=Informatie over de beschikbare protocollen
+Comment[nn]=Informasjon om dei tilgjengelege protokollane
+Comment[nso]=Tshedimoso kaga melao yeo elego gona
+Comment[pa]=ਉਪਲੱਬਧ ਪਰੋਟੋਕਾਲ ਬਾਰੇ ਜਾਣਕਾਰੀ
+Comment[pl]=Informacje o dostępnych protokołach
+Comment[pt]=Informações sobre os protocolos disponíveis
+Comment[pt_BR]=Informações sobre os protocolos disponíveis
+Comment[ro]=Informații despre protocoalele disponibile
+Comment[ru]=Сведения о протоколах ввода-вывода
+Comment[rw]=Ibisobanuro birebana na porotokole ziboneka
+Comment[se]=Dieđut olamuttus protokollaid birra
+Comment[sk]=Informácia o dostupných protokoloch
+Comment[sl]=Podatki o razpoložljivih protokolih
+Comment[sr]=Информације о доступним протоколима
+Comment[sr@Latn]=Informacije o dostupnim protokolima
+Comment[sv]=Information om tillgängliga protokoll
+Comment[ta]=கிடைக்கக்கூடிய நெறிமுறைகள் பற்றிய தகவல்
+Comment[tg]=Иттилооти дар мавриди қарордодҳои мавҷуд буда
+Comment[th]=ข้อมูลเกี่ยวกับโปรโตคอลที่มีอยู่
+Comment[tr]=Mevcut protokoller hakkında bilgi
+Comment[tt]=Bar bulğan protokollar turında
+Comment[uk]=Інформація про наявні протоколи
+Comment[uz]=Mavjud protokollar haqida maʼlumot
+Comment[uz@cyrillic]=Мавжуд протоколлар ҳақида маълумот
+Comment[ven]=Mafhungo ngaha purotokolo ire hone
+Comment[vi]=Thông tin về các giao thức có thể dùng
+Comment[wa]=Informåcion so les protocoles k' i gn a
+Comment[xh]=Ulwazi malunga nemithetho elandelwayo ekhoyo
+Comment[zh_CN]=可用协议的信息
+Comment[zh_TW]=可用協定的資訊
+Comment[zu]=Ulwazi mayelana nemithetho elandelwayo ekhona
+DocPath=kinfocenter/protocols/index.html
+Exec=kcmshell ioslaveinfo
+Icon=history
+Keywords=Protocol,IO slaves,Slaves,Network,Information,Timeout
+Keywords[ar]=الميفاق,IO Slaves,Slaves,الشبكة,معلومات نفاذ الوقت
+Keywords[az]=Protokol, IO Kölələri, Kölələr, Şəbəkə,Mə'lumat, Vaxt Dolması
+Keywords[be]=Пратакол,Сетка,Інфармацыя,Тэрмін чакання,Protocol,IO slaves,Slaves,Network,Information,Timeout
+Keywords[bg]=информация, система, системна, протокол, протоколи, наличен, поддържан, Protocol, IO slaves, Slaves, Network, Information, Timeout
+Keywords[ca]=Protocol,esclaus IO,Esclaus,Xarxa,Informació,Temps d'expiració
+Keywords[cs]=Protokol,Vstupně/výstupní moduly,Síť,Informace,Časový limit
+Keywords[csb]=Protokół,procedurë wé/wi,wëkonëjący dzéjaniô wé/wi,Séc,wëdowiédzô,Limit czasu
+Keywords[cy]=Protocol,Gweision IO,Gweision,Rhwydwaith,Gwybodaeth,Goramser
+Keywords[da]=Protokol,IO-slaver,Slaver,Netværk,Information,Tid,Udløb,Timeout
+Keywords[de]=Protokolle,Information,Ein/Ausgabe,Ein-/Ausgabemodule,IO-Slaves,Netzwerk,Zeitlimit,Timeout
+Keywords[el]=Πρωτόκολλο,slaves ΕΕ,Slaves,Δίκτυο,Πληροφορίες,Χρονικό όριο
+Keywords[eo]=Protokolo,Enel-sklavoj,sklavoj,reto,informo,tempolimo
+Keywords[es]=Protocolo,Slaves de E/S,Slaves,Red,Información,Tiempo de expiración
+Keywords[et]=protokoll,IO moodulid,moodulid,võrk,info,taimaut,aegumine
+Keywords[eu]=Protocol,IO morroiak,Morroiak,Sarea,Informazioa,Denbora-muga
+Keywords[fa]=قرارداد، IO slaves، Slaves، شبکه، اطلاعات، اتمام وقت
+Keywords[fi]=Protokolla,Yhteyskäytäntö,KIO,KIO-palvelu,Verkko,Aikavalvonta,aikakatkaisu
+Keywords[fr]=protocole,modules,entrées/sorties,réseau,informations,délai
+Keywords[fy]=protocol,IO slaves,slaves,network,ynformaasje,timeout,netwurk,tiidslimyt
+Keywords[gl]=Protocolo,escravos IO,Escravos,Rede,Información,Tempo de agarda,Timeout
+Keywords[he]=פרוטוקול,עבדי קלט־פלט,רשת,מידע,זמן מוקצב, Protocol,IO slaves,Slaves,Network,Information,Timeout
+Keywords[hi]=प्रोटोकॉल,आईओ स्लैव्स,स्लैव्स,नेटवर्क,जानकारी,टाइमआउट
+Keywords[hr]=Protocol,IO slaves,Slaves,Network,Information,Timeout,Protokol,IO podčinjeni,Podčinjeni,Mreža,Podaci,Istek
+Keywords[hu]=protokoll,KDE protokollok,protokoll,hálózat,információ,időtúllépés
+Keywords[is]=Samskiptareglur,IO þrælar,þrælar,staðarnet,net,upplýsingar,útrunninn tími
+Keywords[it]=protocollo,IO slave,slave,rete,informazioni,tempo massimo
+Keywords[ja]=プロトコル,IO,スレイブ,スレーブ,ネットワーク,情報,タイムアウト
+Keywords[km]=ពិធីការ,IO កូនចៅ,កូនចៅ,បណ្ដាញ,ព័ត៌មាន,អស់​ពេល
+Keywords[lo]=ໂປຣໂຕຄອນ,IO slaves,Slaves,ລະບົບເຄືອຂ່າຍ,ຂໍ້ມູນ,ຫມົດເວລາ
+Keywords[lt]=Protocol,IO slaves,Slaves,Network,Information,Timeout,protokolas,tinklas,informacija,laiko pasibaigimas
+Keywords[lv]=Protokols,IO vergi,Vergi,Tīkls,Informācija,Noildze
+Keywords[mk]=Protocol,IO slaves,Slaves,Network,Information,Timeout,Протокол,Мрежа,Информации,Истек на време
+Keywords[mn]=Протокол,Мэдээлэл,Оролт/Гаралт,IO-Slaves,Сүлжээ, Хугацааны хязгаар,Хугацаа хэтрэлт
+Keywords[nb]=Protokoll,IO-slaver,Slaver,Nettverk,Informasjon,Ventetid
+Keywords[nds]=Protokoll,In-/Utgaavdeensten,IO,Deensten,Nettwark,Informatschoon,Timeout,Tietgrenz
+Keywords[ne]=प्रोटोकल, IO स्लेभ, स्लेभहरू, सञ्जाल, सूचना, समय समाप्त
+Keywords[nl]=protocol,IO slaves,slaves,network,informatie,timeout,netwerk,tijdslimiet
+Keywords[nn]=protokoll,IU-slavar,slavar,nettverk,informasjon,tidsgrense
+Keywords[nso]=Molao,Makgoba a IO,Makgoba,Kgokagano,Tshedimoso, Nako e fedile
+Keywords[pa]=Protocol,IO slaves,Slaves,Network,Information,Timeout,ਪਰੋਟੋਕਾਲ,ਨੈਟਵਰਕ
+Keywords[pl]=Protokół,procedury we/wy,wykonujący operacje we/wy,Sieć,Informacje,Limit czasu
+Keywords[pt]=Protocolo,IO slaves,Slaves,Rede,Informações,Timeout,Tempo-limite
+Keywords[pt_BR]=Protocolos,escravos de ES,Escravos,Rede,Informações,Timeout
+Keywords[ro]=samba,dispozitive I/O,sclavi,rețea,informații
+Keywords[rw]=Porotokole,Abagaragu IO,Abagaragu,Urusobemiyoboro,Amakuru, Igihecyarenze
+Keywords[se]=protokolla,SO-slávat,slávat,fierbmi,diehtu,dieđut,áigemearri
+Keywords[sk]=Protokol,Klienti IO,klienti,Sieť,Informácie
+Keywords[sl]=protokol,podrejeni V/I,podrejeni,omrežje,podatki,zakasnitev
+Keywords[sr]=Protocol,IO slaves,Slaves,Network,Information,Timeout,протокол,мрежа,информације,прекорачење времена
+Keywords[sr@Latn]=Protocol,IO slaves,Slaves,Network,Information,Timeout,protokol,mreža,informacije,prekoračenje vremena
+Keywords[sv]=Protokoll,I/O-slavar,Slavar,Nätverk,Information,Timeout,Tidsgräns
+Keywords[ta]=நெறிமுறை,IO சேவகன்,சேவகன்கள்,வலைப்பின்னல்,தகவல்,நேரம் முடிந்தது
+Keywords[th]=โปรโตคอล,IO slaves,Slaves,ระบบเครือข่าย,ข้อมูล,หมดเวลา
+Keywords[tr]=protokol,G/Ç aracısı,aracı,Ağ,Bilgi,zaman aşımı
+Keywords[uk]=протокол,підлеглі В/В,підлеглі,мережа,інформація,тайм-аут
+Keywords[uz]=Protokol,KCH-sleyvlar,Sleyvlar,Tarmoq,Maʼlumot,Taymaut
+Keywords[uz@cyrillic]=Протокол,КЧ-слейвлар,Слейвлар,Тармоқ,Маълумот,Таймаут
+Keywords[ven]=Purotokolo,dziphuli dza IO,Dziphuli,Vhudavhidzani,mafhungo,u fhela ha tshifhinga
+Keywords[vi]=Giao thức,Đầy tớ Vào ra (VR),Đầy tớ,Mạng,Thông tin,Hạn định thời gian
+Keywords[wa]=Protocole,IO slaves,Slaves,rantoele,Informåcion,Timeout
+Keywords[xh]=Imithetho elandelwayo,IO izicaka,Izicaka,Umsebenzi womtya,Ulwazi, Ixesha lokuphuma
+Keywords[zh_CN]=Protocol,IO slaves,Slaves,Network,Information,Timeout,协议,网络,信息,超时
+Keywords[zh_TW]=Protocol,IO slaves,Slaves,Network,Information,Timeout,協定,網路,資訊,作業逾時
+Keywords[zu]=Umthetho olandelwayo,IO slaves,Izigqila,Uxhumano olusakazekile, Ulwazi,Isikhathi sokuphuma
+Name=Protocols
+Name[af]=Protokolle
+Name[ar]=الموافيق
+Name[az]=Protokollar
+Name[be]=Пратаколы
+Name[bg]=Протоколи
+Name[bn]=প্রোটোকল
+Name[br]=Komenadoù
+Name[bs]=Protokoli
+Name[cs]=Protokoly
+Name[csb]=Protokòłë
+Name[cy]=Protocolau
+Name[da]=Protokoller
+Name[de]=Ein-/Ausgabemodule
+Name[el]=Πρωτόκολλα
+Name[eo]=Protokoloj
+Name[es]=Protocolos
+Name[et]=IO moodulid
+Name[eu]=Protokoloak
+Name[fa]=قراردادها
+Name[fi]=Yhteyskäytännöt
+Name[fr]=Protocoles
+Name[fy]=Protokollen
+Name[ga]=Prótacail
+Name[gl]=Protocolos
+Name[he]=פרוטוקולים
+Name[hi]=प्रोटोकॉल्स
+Name[hr]=Protokoli
+Name[hu]=Protokollok
+Name[id]=Protokol
+Name[is]=Samskiptareglur
+Name[it]=Protocolli
+Name[ja]=プロトコル
+Name[ka]=პროტოკოლები
+Name[kk]=Протоколдар
+Name[km]=ពិធីការ
+Name[ko]=프로토콜
+Name[lo]=ໂປຣໂຕຄອລ
+Name[lt]=Protokolai
+Name[lv]=Protokoli
+Name[mk]=Протоколи
+Name[mn]=Оролт/Гаралт-модул
+Name[ms]=Protokol
+Name[mt]=Protokolli
+Name[nb]=Protokoller
+Name[nds]=Protokollen
+Name[ne]=प्रोटोकल
+Name[nl]=Protocollen
+Name[nn]=Protokollar
+Name[nso]=Melao
+Name[pa]=ਪਰੋਟੋਕਾਲ
+Name[pl]=Protokoły
+Name[pt]=Protocolos
+Name[pt_BR]=Protocolos
+Name[ro]=Protocoale
+Name[ru]=Протоколы
+Name[rw]=Amaporotocole
+Name[se]=Protokollat
+Name[sk]=Protokoly
+Name[sl]=Protokoli
+Name[sr]=Протоколи
+Name[sr@Latn]=Protokoli
+Name[ss]=Imitsetfo yekutfumela
+Name[sv]=Protokoll
+Name[ta]=நெறிமுறைகள்
+Name[te]=ప్రొటొకాల్లు
+Name[tg]=Қарордодҳо
+Name[th]=โปรโตคอล
+Name[tr]=Protokoller
+Name[tt]=Protokollar
+Name[uk]=Протоколи
+Name[uz]=Protokollar
+Name[uz@cyrillic]=Протоколлар
+Name[ven]=Purotokolo
+Name[vi]=Giao thức
+Name[wa]=Protocoles
+Name[xh]=Umthetho olandelwayo
+Name[zh_CN]=协议
+Name[zh_TW]=協定
+Name[zu]=Imithetho elandelwayo
+SwallowExec=
+SwallowTitle=
+Terminal=false
+Type=Application
+X-KDE-FactoryName=ioslaveinfo
+X-KDE-Library=ioslaveinfo
+
+X-KDE-ParentApp=kinfocenter
+
+Categories=Qt;KDE;X-KDE-information;
diff --git a/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp b/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp
new file mode 100644
index 000000000..cb4cfdaea
--- /dev/null
+++ b/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp
@@ -0,0 +1,148 @@
+/*
+ * kcmioslaveinfo.cpp
+ *
+ * Copyright 2001 Alexander Neundorf <[email protected]>
+ * Copyright 2001 George Staikos <[email protected]>
+ *
+ * Requires the Qt widget libraries, available at no cost at
+ * http://www.troll.no/
+ *
+ * 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 <qfile.h>
+#include <qhbox.h>
+#include <qlabel.h>
+#include <qlayout.h>
+#include <qspinbox.h>
+#include <qtabwidget.h>
+#include <qtextcodec.h>
+#include <qvbox.h>
+#include <qwhatsthis.h>
+
+#include <kconfig.h>
+#include <kdebug.h>
+#include <kdialog.h>
+#include <kgenericfactory.h>
+#include <kglobal.h>
+#include <kiconloader.h>
+#include <kio/job.h>
+#include <klocale.h>
+#include <kprotocolinfo.h>
+#include <kstandarddirs.h>
+
+#include "kcmioslaveinfo.h"
+
+typedef KGenericFactory<KCMIOSlaveInfo, QWidget> SlaveFactory;
+K_EXPORT_COMPONENT_FACTORY( kcm_ioslaveinfo, SlaveFactory("kcmioslaveinfo") )
+
+KCMIOSlaveInfo::KCMIOSlaveInfo(QWidget *parent, const char *name, const QStringList &)
+ :KCModule(SlaveFactory::instance(), parent,name),m_ioslavesLb(0),m_tfj(0)
+{
+ QVBoxLayout *layout=new QVBoxLayout(this, 0, KDialog::spacingHint());
+
+ setQuickHelp( i18n("<h1>IO slaves</h1> Gives you an overview of the installed ioslaves."));
+ setButtons( KCModule::Help );
+
+ QLabel* label=new QLabel(i18n("Available IO slaves:"),this);
+ QHBox *hbox=new QHBox(this);
+ m_ioslavesLb=new KListBox(hbox);
+ m_ioslavesLb->setMinimumSize(fontMetrics().width("blahfaselwhatever----"),10);
+ connect( m_ioslavesLb, SIGNAL( selectionChanged( QListBoxItem * ) ), SLOT( showInfo( QListBoxItem * ) ) );
+ //TODO make something useful after 2.1 is released
+ m_info=new KTextBrowser(hbox);
+ hbox->setSpacing(KDialog::spacingHint());
+
+ layout->addWidget(label);
+ layout->addWidget(hbox);
+ hbox->setStretchFactor(m_ioslavesLb,1);
+ hbox->setStretchFactor(m_info,5);
+
+ QStringList protocols=KProtocolInfo::protocols();
+ for (QStringList::Iterator it=protocols.begin(); it!=protocols.end(); ++it)
+ {
+ QString proto = *it;
+ m_ioslavesLb->insertItem( SmallIcon( KProtocolInfo::icon( proto )),
+ proto );
+ };
+ m_ioslavesLb->sort();
+ m_ioslavesLb->setSelected(0, true);
+
+ setButtons(KCModule::Help);
+
+ KAboutData *about =
+ new KAboutData(I18N_NOOP("kcmioslaveinfo"),
+ I18N_NOOP("KDE Panel System Information Control Module"),
+ 0, 0, KAboutData::License_GPL,
+ I18N_NOOP("(c) 2001 - 2002 Alexander Neundorf"));
+
+ about->addAuthor("Alexander Neundorf", 0, "[email protected]");
+ about->addAuthor("George Staikos", 0, "[email protected]");
+ setAboutData( about );
+
+}
+
+void KCMIOSlaveInfo::slaveHelp( KIO::Job *, const QByteArray &data)
+{
+ if ( data.size() == 0 ) { // EOF
+ int index = helpData.find( "<meta http-equiv=\"Content-Type\"" );
+ index = helpData.find( "charset=", index ) + 8;
+ QString charset = helpData.mid( index, helpData.find( '\"', index ) - index );
+ QString text = QTextCodec::codecForName(charset.latin1())->toUnicode( helpData );
+ index = text.find( "<div class=\"titlepage\">" );
+ text = text.mid( index );
+ index = text.find( "<table width=\"100%\" class=\"bottom-nav\"" );
+ text = text.left( index );
+ m_info->setText(text);
+ return;
+ }
+ helpData += data;
+}
+
+void KCMIOSlaveInfo::slotResult(KIO::Job *)
+{
+ m_tfj = 0;
+}
+
+void KCMIOSlaveInfo::showInfo(const QString& protocol)
+{
+ QString file = QString("kioslave/%1.docbook").arg( protocol );
+ file = KGlobal::locale()->langLookup( file );
+ if (m_tfj)
+ {
+ m_tfj->kill();
+ m_tfj = 0;
+ }
+
+ if (!file.isEmpty())
+ {
+ helpData.truncate( 0 );
+ m_tfj = KIO::get( KURL( QString("help:/kioslave/%1.html").arg( protocol ) ), true, false );
+ connect( m_tfj, SIGNAL( data( KIO::Job *, const QByteArray &) ), SLOT( slaveHelp( KIO::Job *, const QByteArray &) ) );
+ connect( m_tfj, SIGNAL( result( KIO::Job * ) ), SLOT( slotResult( KIO::Job * ) ) );
+ return;
+ }
+ m_info->setText(i18n("Some info about protocol %1:/ ...").arg(protocol));
+}
+
+void KCMIOSlaveInfo::showInfo(QListBoxItem *item)
+{
+ if (item==0)
+ return;
+ showInfo( item->text() );
+}
+
+#include "kcmioslaveinfo.moc"
+
diff --git a/kcontrol/ioslaveinfo/kcmioslaveinfo.h b/kcontrol/ioslaveinfo/kcmioslaveinfo.h
new file mode 100644
index 000000000..87eda14b4
--- /dev/null
+++ b/kcontrol/ioslaveinfo/kcmioslaveinfo.h
@@ -0,0 +1,61 @@
+/*
+ * kcmioslaveinfo.h
+ *
+ * Copyright 2001 Alexander Neundorf <[email protected]>
+ * Copyright 2001 George Staikos <[email protected]>
+ *
+ * Requires the Qt widget libraries, available at no cost at
+ * http://www.troll.no/
+ *
+ * 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 kcmioslaveinfo_h_included
+#define kcmioslaveinfo_h_included
+
+#include <qlistbox.h>
+#include <qstring.h>
+
+#include <kaboutdata.h>
+#include <kcmodule.h>
+#include <kio/job.h>
+#include <klistbox.h>
+#include <ktextbrowser.h>
+
+class KIOTimeoutControl;
+class QTabWidget;
+class QSpinBox;
+class KConfig;
+
+class KCMIOSlaveInfo : public KCModule
+{
+ Q_OBJECT
+public:
+ KCMIOSlaveInfo(QWidget *parent = 0L, const char *name = 0L, const QStringList &lits=QStringList() );
+
+protected:
+ KListBox *m_ioslavesLb;
+ KTextBrowser *m_info;
+ QCString helpData;
+ KIO::Job *m_tfj;
+
+protected slots:
+
+ void showInfo(const QString& protocol);
+ void showInfo(QListBoxItem *item);
+ void slaveHelp( KIO::Job *, const QByteArray &data);
+ void slotResult( KIO::Job * );
+
+};
+#endif
diff --git a/kcontrol/ioslaveinfo/uninstall.desktop b/kcontrol/ioslaveinfo/uninstall.desktop
new file mode 100644
index 000000000..e1e3e1732
--- /dev/null
+++ b/kcontrol/ioslaveinfo/uninstall.desktop
@@ -0,0 +1,2 @@
+[Desktop Entry]
+Hidden=true