diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index e90e2eefc..6215c1a0d 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,34 +1,33 @@ find_package(Qt5TextToSpeech ${QT_REQUIRED_VERSION} QUIET) set_package_properties(Qt5TextToSpeech PROPERTIES PURPOSE "Gives Konqueror a plugin to speak portions or all of a website") add_subdirectory( khtmlsettingsplugin ) add_subdirectory( kimgalleryplugin ) add_subdirectory( dirfilter ) # TODO add_subdirectory( uachanger ) add_subdirectory( babelfish ) add_subdirectory( webarchiver ) if (Qt5TextToSpeech_FOUND) add_subdirectory(ttsplugin) endif() if(UNIX) add_subdirectory( shellcmdplugin ) endif(UNIX) # TODO add_subdirectory( imagerotation ) add_subdirectory( minitools ) -#add_subdirectory( microformat ) add_subdirectory( autorefresh ) if(UNIX) add_subdirectory( fsview ) endif() add_subdirectory( searchbar ) add_subdirectory( rellinks ) # TODO add_subdirectory( adblock ) add_subdirectory( akregator ) diff --git a/plugins/microformat/CMakeLists.txt b/plugins/microformat/CMakeLists.txt deleted file mode 100644 index c8cb88eec..000000000 --- a/plugins/microformat/CMakeLists.txt +++ /dev/null @@ -1,22 +0,0 @@ - - - - -########### next target ############### - -set(mfkonqmficon_PART_SRCS konqmficon.cpp pluginbase.cpp ) - -add_library(mfkonqmficon MODULE ${mfkonqmficon_PART_SRCS}) - - - -target_link_libraries(mfkonqmficon KF5::KHtml) - -install(TARGETS mfkonqmficon DESTINATION ${KDE_INSTALL_PLUGINDIR} ) - - -########### install files ############### - -install( FILES microformat.png DESTINATION ${KDE_INSTALL_DATADIR}/microformat/pics ) -install( FILES mf_konqmficon.desktop mf_konqmficon.rc DESTINATION ${KDE_INSTALL_DATADIR}/khtml/kpartplugins ) - diff --git a/plugins/microformat/Messages.sh b/plugins/microformat/Messages.sh deleted file mode 100644 index f48e49792..000000000 --- a/plugins/microformat/Messages.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh -$EXTRACTRC *.rc >> rc.cpp -$XGETTEXT *.cpp -o $podir/mf_konqplugin.pot diff --git a/plugins/microformat/README b/plugins/microformat/README deleted file mode 100644 index 896256fdf..000000000 --- a/plugins/microformat/README +++ /dev/null @@ -1,14 +0,0 @@ -Microformats ------------- - -Please see: - -http://developers.technorati.com/wiki/hCard -http://developers.technorati.com/wiki/hCalendar -http://developers.technorati.com/wiki/MicroFormat - - -Also try: -http://tantek.com/microformats/hcard-creator.html -http://theryanking.com/microformats/hcalendar-creator.html - diff --git a/plugins/microformat/konqmficon.cpp b/plugins/microformat/konqmficon.cpp deleted file mode 100644 index dea4cc537..000000000 --- a/plugins/microformat/konqmficon.cpp +++ /dev/null @@ -1,353 +0,0 @@ -/* - Copyright (C) 2004 Teemu Rytilahti - Copyright (C) 2005 George Staikos - - 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. - - As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. -*/ - -#include "konqmficon.h" - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -K_PLUGIN_FACTORY(KonqMFIconFactory, registerPlugin();) -K_EXPORT_PLUGIN(KonqMFIconFactory("mfkonqmficon")) - -KonqMFIcon::KonqMFIcon(QObject *parent, const QVariantList &) - : KParts::Plugin(parent), PluginBase(), m_part(0), m_mfIcon(0), m_statusBarEx(0), m_menu(0) -{ - //KF5 port: remove this line and define TRANSLATION_DOMAIN in CMakeLists.txt instead -//KLocale::global()->insertCatalog("mf_konqplugin"); - - m_part = qobject_cast(parent); - if (!m_part) { - kDebug() << "couldn't get part"; - return; - } - QTimer::singleShot(0, this, SLOT(waitPartToLoad())); -} - -void KonqMFIcon::waitPartToLoad() -{ - connect(m_part, SIGNAL(completed()), this, SLOT(addMFIcon())); - connect(m_part, SIGNAL(completed(bool)), this, SLOT(addMFIcon())); // to make pages with metarefresh to work - connect(m_part, SIGNAL(started(KIO::Job*)), this, SLOT(removeMFIcon())); -} - -KonqMFIcon::~KonqMFIcon() -{ - KLocale::global()->removeCatalog("mf_konqplugin"); - delete m_menu; - m_menu = 0L; -} - -static QString textForNode(const DOM::Node &node) -{ - QString rc; - DOM::NodeList nl = node.childNodes(); - for (unsigned int i = 0; i < nl.length(); ++i) { - DOM::Node n = nl.item(i); - if (n.nodeType() == DOM::Node::TEXT_NODE) { - rc += n.nodeValue().string(); - } - } - // FIXME: entries need to be escaped for vcard/vevent - return rc.trimmed(); -} - -static QString textForNodeRec(const DOM::Node &node) -{ - QString rc; - DOM::NodeList nl = node.childNodes(); - for (unsigned int i = 0; i < nl.length(); ++i) { - DOM::Node n = nl.item(i); - if (n.nodeType() == DOM::Node::TEXT_NODE) { - rc += n.nodeValue().string(); - } else if (n.nodeType() == DOM::Node::ELEMENT_NODE) { - rc += textForNodeRec(n); - } - } - // FIXME: entries need to be escaped for vcard/vevent - return rc.trimmed(); -} - -static QString extractAddress(const DOM::Node &node) -{ - QString rc = ";;"; - QMap entry; - DOM::NodeList nodes = node.childNodes(); - unsigned int n = nodes.length(); - for (unsigned int i = 0; i < n; ++i) { - DOM::Node node = nodes.item(i); - DOM::NamedNodeMap map = node.attributes(); - for (unsigned int j = 0; j < map.length(); ++j) { - if (map.item(j).nodeName().string() != "class") { - continue; - } - QString a = map.item(j).nodeValue().string(); - if (a == "street-address") { - entry["street-address"] = textForNode(node); - } else if (a == "locality") { - entry["locality"] = textForNode(node); - } else if (a == "region") { - entry["region"] = textForNode(node); - } else if (a == "postal-code") { - entry["postal-code"] = textForNode(node); - } - } - } - - rc += entry["street-address"] + ';' + entry["locality"] + ';' + entry["region"] + ';' + entry["postal-code"] + ';' + entry["country"]; - return rc.trimmed(); -} - -void KonqMFIcon::extractCard(const DOM::Node &node) -{ - QString name, value; - DOM::NodeList nodes = node.childNodes(); - unsigned int n = nodes.length(); - value += "BEGIN:VCARD\nVERSION:3.0\n"; - for (unsigned int i = 0; i < n; ++i) { - DOM::Node node = nodes.item(i); - DOM::NamedNodeMap map = node.attributes(); - for (unsigned int j = 0; j < map.length(); ++j) { - if (map.item(j).nodeName().string() != "class") { - continue; - } - QStringList l = map.item(j).nodeValue().string().split(' ', QString::SkipEmptyParts); - for (QStringList::ConstIterator it = l.constBegin(); it != l.constEnd(); ++it) { - if (*it == "photo") { - } else if (*it == "adr") { - value += "ADR:" + extractAddress(node) + '\n'; - } else if (*it == "tel") { - value += "TEL;TYPE=VOICE:" + textForNode(node) + '\n'; - } else if (-1 < QRegExp("\\b(fn)\\b").indexIn(*it)) { - name = textForNodeRec(node); - value += "FN:" + name + '\n'; - } else if (-1 < QRegExp("\\b(url)\\b").indexIn(*it)) { - DOM::Node at = node.attributes().getNamedItem("href"); - if (!at.isNull()) { - value += "URL:" + at.nodeValue().string().trimmed() + '\n'; - } - } else if (*it == "email") { - DOM::Node at = node.attributes().getNamedItem("href"); - if (!at.isNull()) { - QString v = at.nodeValue().string(); - if (v.startsWith("mailto:")) { - v = v.mid(7); - } - value += "EMAIL:" + v.trimmed() + '\n'; - } - } else if (*it == "org") { - value += "ORG:" + textForNode(node) + '\n'; - } - } - } - } - - if (!name.isEmpty()) { - value += "END:VCARD\n"; - _cards.append(qMakePair(name, value)); - } -} - -void KonqMFIcon::extractEvent(const DOM::Node &node) -{ - QString name, value = "BEGIN:VCALENDAR\nPRODID:-//Konqueror//EN\nVERSION:2.0\nBEGIN:VEVENT\n"; - DOM::NodeList nodes = node.childNodes(); - unsigned int n = nodes.length(); - for (unsigned int i = 0; i < n; ++i) { - DOM::Node node = nodes.item(i); - DOM::NamedNodeMap map = node.attributes(); - for (unsigned int j = 0; j < map.length(); ++j) { - if (map.item(j).nodeName().string() != "class") { - continue; - } - QStringList l = map.item(j).nodeValue().string().split(' ', QString::SkipEmptyParts); - for (QStringList::ConstIterator it = l.constBegin(); it != l.constEnd(); ++it) { - if (*it == "url") { - DOM::Node at = node.attributes().getNamedItem("href"); - if (!at.isNull()) { - value += "URL:" + at.nodeValue().string().trimmed() + '\n'; - } - } else if (*it == "dtstart") { - DOM::Node at = node.attributes().getNamedItem("title"); - if (!at.isNull()) { - value += "DTSTART:" + at.nodeValue().string().trimmed() + '\n'; - } - } else if (*it == "dtend") { - DOM::Node at = node.attributes().getNamedItem("title"); - if (!at.isNull()) { - value += "DTEND:" + at.nodeValue().string().trimmed() + '\n'; - } - } else if (*it == "summary") { - name = textForNode(node); - value += "SUMMARY:" + name + '\n'; - } else if (*it == "location") { - value += "LOCATION:" + textForNode(node) + '\n'; - } - } - } - } - - if (!name.isEmpty()) { - value += "END:VEVENT\nEND:VCALENDAR\n"; - _events.append(qMakePair(name, value)); - } -} - -bool KonqMFIcon::hasMicroFormat(const DOM::NodeList &nodes) -{ - bool ok = false; - unsigned int n = nodes.length(); - for (unsigned int i = 0; i < n; ++i) { - DOM::Node node = nodes.item(i); - DOM::NamedNodeMap map = node.attributes(); - for (unsigned int j = 0; j < map.length(); ++j) { - if (map.item(j).nodeName().string() != "class") { - continue; - } - QString nodeValue(map.item(j).nodeValue().string()); - if (nodeValue == "vevent") { - ok = true; - extractEvent(node); - break; - } - if (-1 < QRegExp("\\b(vcard)\\b").indexIn(nodeValue)) { - ok = true; - extractCard(node); - break; - } - } - if (hasMicroFormat(node.childNodes())) { - ok = true; - } - } - return ok; -} - -bool KonqMFIcon::mfFound() -{ - _events.clear(); - _cards.clear(); - return hasMicroFormat(m_part->document().childNodes()); -} - -void KonqMFIcon::contextMenu() -{ - delete m_menu; - m_menu = new KMenu(m_part->widget()); - m_menu->addTitle(i18n("Microformats")); - int id = 0; - QAction *action = 0; - for (QList >::ConstIterator it = _events.constBegin(); it != _events.constEnd(); ++it) { - action = m_menu->addAction(KIcon("bookmark-new"), (*it).first, this, SLOT(addMF())); - action->setData(qVariantFromValue(id)); - id++; - } - for (QList >::ConstIterator it = _cards.constBegin(); it != _cards.constEnd(); ++it) { - action = m_menu->addAction(KIcon("bookmark-new"), (*it).first, this, SLOT(addMF())); - action->setData(qVariantFromValue(id)); - id++; - } - m_menu->addSeparator(); - m_menu->addAction(KIcon("bookmark-new"), i18n("Import All Microformats"), this, SLOT(addMFs())); - m_menu->popup(QCursor::pos()); -} - -void KonqMFIcon::addMFIcon() -{ - if (!mfFound() || m_mfIcon) { - return; - } - - m_statusBarEx = KParts::StatusBarExtension::childObject(m_part); - if (!m_statusBarEx) { - return; - } - - m_mfIcon = new KUrlLabel(m_statusBarEx->statusBar()); - m_mfIcon->setFixedHeight(KIconLoader::global()->currentSize(KIconLoader::Small)); - m_mfIcon->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); - m_mfIcon->setUseCursor(false); - //FIXME hackish - m_mfIcon->setPixmap(QPixmap(KStandardDirs::locate("data", "microformat/pics/microformat.png"))); - - m_mfIcon->setToolTip(i18np("This site has a microformat entry", "This site has %1 microformat entries", _events.count() + _cards.count())); - - m_statusBarEx->addStatusBarItem(m_mfIcon, 0, true); - - connect(m_mfIcon, SIGNAL(leftClickedUrl()), this, SLOT(contextMenu())); -} - -void KonqMFIcon::removeMFIcon() -{ - _events.clear(); - _cards.clear(); - if (m_mfIcon) { - m_statusBarEx->removeStatusBarItem(m_mfIcon); - delete m_mfIcon; - m_mfIcon = 0; - } - - // Close the popup if it's open, otherwise we crash - delete m_menu; - m_menu = 0L; -} - -void KonqMFIcon::addMF() -{ - bool ok = false; - int id = sender() ? qobject_cast(sender())->data().toInt(&ok) : -1; - if (!ok || id < 0) { - return; - } - addMF(id); -} - -void KonqMFIcon::addMF(int id) -{ - if (id < int(_events.count())) { - } else if (id < int(_cards.count())) { - id -= _cards.count() - 1; - addVCardViaDCOP(_cards[id].second); - } -} - -void KonqMFIcon::addMFs() -{ - int n = _events.count() + _cards.count(); - for (int i = 0; i < n; ++i) { - addMF(i); - } -} - -#include "konqmficon.moc" diff --git a/plugins/microformat/konqmficon.h b/plugins/microformat/konqmficon.h deleted file mode 100644 index 29b006bb3..000000000 --- a/plugins/microformat/konqmficon.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - Copyright (C) 2004 Teemu Rytilahti - Copyright (C) 2005 George Staikos - - 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. - - As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. -*/ - -#ifndef KONQ_PLUGIN_KONQMFICON_H -#define KONQ_PLUGIN_KONQMFICON_H - -#include -#include -#include -#include "pluginbase.h" - -#include - -/** -@author Teemu Rytilahti -*/ -class KUrlLabel; - -namespace KParts -{ -class StatusBarExtension; -} - -class KonqMFIcon : public KParts::Plugin, PluginBase -{ - Q_OBJECT -public: - KonqMFIcon(QObject *parent, const QVariantList &); - - ~KonqMFIcon(); - -private: - bool mfFound(); - bool hasMicroFormat(const DOM::NodeList &nodes); - void extractCard(const DOM::Node &node); - void extractEvent(const DOM::Node &node); - void addMF(int id); - - QPointer m_part; - KUrlLabel *m_mfIcon; - KParts::StatusBarExtension *m_statusBarEx; - QPointer m_menu; - QList > _events, _cards; - -private slots: - void waitPartToLoad(); - void contextMenu(); - void addMFIcon(); - void removeMFIcon(); - void addMFs(); - void addMF(); -}; - -#endif // KONQ_PLUGIN_KONQMFICON_H diff --git a/plugins/microformat/mf_konqmficon.desktop b/plugins/microformat/mf_konqmficon.desktop deleted file mode 100644 index 8b53a59b6..000000000 --- a/plugins/microformat/mf_konqmficon.desktop +++ /dev/null @@ -1,132 +0,0 @@ -[Desktop Entry] -Name=Microformat Icon -Name[ar]=أيقونة مايكروفورمات -Name[ast]=Iconu de microformatu -Name[bg]=Икона за микроформати -Name[bs]=Ikona mikroformata -Name[ca]=Icona de microformat -Name[ca@valencia]=Icona de microformat -Name[cs]=Ikona mikroformátu -Name[da]=Microformat ikon -Name[de]=Microformat-Symbol -Name[el]=Εικονίδιο Microformat -Name[en_GB]=Microformat Icon -Name[es]=Icono de microformato -Name[et]=Microformati ikoon -Name[eu]=Mikroformatuaren ikonoa -Name[fi]=Mikromuodon kuvake -Name[fr]=Icône micro-format -Name[ga]=Deilbhín Micreafhormáide -Name[gl]=Icona de microformato -Name[he]=אייקון Microformat -Name[hne]=माइक्रोफारमेट चिनहा -Name[hr]=Ikona mikroformata -Name[hu]=Mikroformátum ikon -Name[ia]=Icone de micro formato -Name[id]=Ikon Mikroformat -Name[is]=Táknmynd fyrir örsnið -Name[it]=Icona microformat -Name[ja]=マイクロフォーマットアイコン -Name[kk]=Microformat таңбашасы -Name[km]=រូប​តំណាង Microformat -Name[ko]=마이크로포맷 아이콘 -Name[ku]=Ikona Mîkroformat -Name[lt]=Mikroformato piktograma -Name[lv]=Mikroformāta ikona -Name[mr]=Microformat चिन्ह -Name[nb]=Mikroformat-ikon -Name[nds]=Mikroformaat-Lüttbild -Name[nl]=Microformaat-pictogram -Name[nn]=Mikroformat-ikon -Name[pa]=ਮਾਈਕਰੋਫਾਰਮੈਟ ਆਈਕਾਨ -Name[pl]=Ikona Mikroformatu -Name[pt]=Ícone em Micro-Formato -Name[pt_BR]=Ícone em microformato -Name[ro]=Microformat pictogramă -Name[ru]=Значок микроформата -Name[sk]=Ikona mikro-formátu -Name[sl]=Ikona za mikroformat -Name[sr]=Иконица микроформата -Name[sr@ijekavian]=Иконица микроформата -Name[sr@ijekavianlatin]=Ikonica mikroformata -Name[sr@latin]=Ikonica mikroformata -Name[sv]=Mikroformat-ikon -Name[tg]=Нишонаи микроформат -Name[th]=ภาพไอคอน Microformat -Name[tr]=Microformat Simge -Name[ug]=مىكرو پىچىم سىنبەلگە -Name[uk]=Піктограма Microformat -Name[wa]=Imådjete Microformat -Name[x-test]=xxMicroformat Iconxx -Name[zh_CN]=微格式图标 -Name[zh_TW]=微格式圖示 -Icon=user-identity -Comment=Displays an icon in the status bar if the page contains a microformat -Comment[ar]=تعرض أيقونة في شريط الحالية إذا كانت الصفحة تحوي على مايكروفورمات -Comment[ast]=Amuesa un iconu na barra d'estáu si la páxina contién un microformatu -Comment[bg]=Показване на икона в лентата за състояние, ако страницата съдържа микроформат -Comment[bs]=Prikazuje ikonu u traci stanja ako stranica sadrži mikroformat -Comment[ca]=Mostra una icona en la barra d'estat si la pàgina conté un microformat -Comment[ca@valencia]=Mostra una icona en la barra d'estat si la pàgina conté un microformat -Comment[cs]=Pokud stránka obsahuje mikroformát, zobrazí ikonu ve stavovém panelu -Comment[da]=Viser et ikon i statuslinjen hvis siden indeholder data i et microformat -Comment[de]=Zeigt ein Symbol in der Statusleiste an, falls die Seite ein Microformat enthält -Comment[el]=Εμφανίζει ένα εικονίδιο στη γραμμή κατάστασης όταν η σελίδα περιέχει microformat -Comment[en_GB]=Displays an icon in the status bar if the page contains a microformat -Comment[es]=Muestra un icono en la barra de estado si la página contiene un microformato -Comment[et]=Näitab olekuribal ikooni, kui lehekülg sisaldab microformatit -Comment[eu]=Egoera-barran ikono bat bistaratzen du orriak mikroformatu bat daukanean -Comment[fi]=Näyttää kuvakkeen tilarivillä, jos sivulle on olemassa mikromuoto -Comment[fr]=Affiche une icône dans la barre d'état si la page contient un micro-format -Comment[ga]=Taispeáin deilbhín sa bharra stádais nuair atá micreafhormáid ag an leathanach -Comment[gl]=Mostra unha icona na barra de estado se a páxina ten un microformato -Comment[he]=הצג אייקון בשורת המצב אם הדף מכיל microformat -Comment[hr]=Prikaži ikonu u statusnoj traci ako stranica sadrži mikroformat -Comment[hu]=Megjelenít egy ikont az állapotsorban, ha az oldal tartalmaz mikroformátumot -Comment[ia]=Monstra un icone in le barra de stato si le pagina contine un microformato -Comment[id]=Menampilkan ikon di statusbar jika halaman berisi mikroformat -Comment[is]=Birtir táknmynd í stöðuslá ef síðan innigeldur örsnið (microformat) -Comment[it]=Mostra un'icona nella barra di stato se la pagina contiene un microformat -Comment[ja]=マイクロフォーマットを含むページでステータスバーにアイコンを表示します -Comment[kk]=Бетте microformat бар болса, күй-жай жолағында таңбашасы көрсетіледі -Comment[km]=បង្ហាញ​រូប​តំណាង​ក្នុង​របារ​ស្ថានភាព បើ​ទំព័រ​មាន microformat -Comment[ko]=페이지에 마이크로포맷이 들어 있을 때 상태 표시줄에 아이콘 보이기 -Comment[lt]=Būsenos juostoje rodo ženkliuką, jei puslapis turi mikroformatą -Comment[lv]=Parāda statusa joslā ikonu, ja lapa satur mikroformāta datus -Comment[nb]=Viser et ikon i statuslinja hvis siden inneholder et mikroformat -Comment[nds]=Wiest en Lüttbild op den Statusbalken, wenn de Siet en Mikroformaat bargt -Comment[nl]=Toont een pictogram in de statusbalk als de pagina een microformaat bevat -Comment[nn]=Viser eit ikon på statuslinja dersom sida inneheld eit mikroformat -Comment[pa]=ਜੇ ਪੇਜ਼ ਵਿੱਚ ਮਾਈਕਰੋਫਾਰਮੈਟ ਹੋਵੇ ਤਾਂ ਹਾਲਤ-ਪੱਟੀ ਵਿੱਚ ਆਈਕਾਨ ਵੇਖਾਓ -Comment[pl]=Wyświetla ikonę na pasku stanu, jeżeli strona zawiera mikroformat -Comment[pt]=Mostra um ícone na barra de estado quando a página tem um micro-formato -Comment[pt_BR]=Exibe um ícone na barra de status se a página contém um microformato -Comment[ro]=Afișează o pictogramă în bara de stare dacă pagina conține un microformat -Comment[ru]=Отображает значок в строке состояния, если страница содержит микроформат -Comment[sk]=Pokiaľ stránka obsahuje mikro-formát, zobrazí ikonu v stavovej lište -Comment[sl]=V vrstici stanja prikaže ikono, če spletna stran vsebuje mikroformat -Comment[sr]=Приказује иконицу у траци стања ако страница садржи микроформат -Comment[sr@ijekavian]=Приказује иконицу у траци стања ако страница садржи микроформат -Comment[sr@ijekavianlatin]=Prikazuje ikonicu u traci stanja ako stranica sadrži mikroformat -Comment[sr@latin]=Prikazuje ikonicu u traci stanja ako stranica sadrži mikroformat -Comment[sv]=Visar en ikon i statusraden om sidan innehåller ett mikroformat -Comment[tg]=Агар микроформат дорад, ин нишона дар панели ҳолат пайдо мешавад -Comment[th]=แสดงภาพไอคอนบนแถบสถานะ หากหน้าเว็บมีส่วนของ microformat อยู่ -Comment[tr]=Sayfa microformat içerdiğinde durum çubuğunda bir simge gösterir -Comment[ug]=ئەگەر بۇ بەت مىكرو پىچىمنى ئۆز ئىچىگە ئالسا ھالەت بالداقتا بىر سىنبەلگە كۆرسىتىدۇ -Comment[uk]=Показує піктограму в рядку стану, коли сторінка має microformat -Comment[wa]=Håyene ene imådjete el bår ås messaedjes s' i gn a on microformat el pådje -Comment[x-test]=xxDisplays an icon in the status bar if the page contains a microformatxx -Comment[zh_CN]=如果这个页面包含微格式,就在状态栏中显示一个图标 -Comment[zh_TW]=如果頁面中包含微格式(microformat)則在狀態列中顯示圖示 -Type=Service -X-KDE-Library=mfkonqmficon -X-KDE-PluginInfo-Author=George Staikos -X-KDE-PluginInfo-Email=staikos@kde.org -X-KDE-PluginInfo-Name=konqmficon -X-KDE-PluginInfo-Version=1.0.0 -X-KDE-PluginInfo-Category=Statusbar -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-License=GPL -X-KDE-PluginInfo-EnabledByDefault=false -X-KDE-ParentApp=konqueror diff --git a/plugins/microformat/mf_konqmficon.rc b/plugins/microformat/mf_konqmficon.rc deleted file mode 100644 index 82bfdb012..000000000 --- a/plugins/microformat/mf_konqmficon.rc +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/plugins/microformat/microformat.png b/plugins/microformat/microformat.png deleted file mode 100644 index e20bd7563..000000000 Binary files a/plugins/microformat/microformat.png and /dev/null differ diff --git a/plugins/microformat/microformat.svgz b/plugins/microformat/microformat.svgz deleted file mode 100644 index f8410bd25..000000000 Binary files a/plugins/microformat/microformat.svgz and /dev/null differ diff --git a/plugins/microformat/pluginbase.cpp b/plugins/microformat/pluginbase.cpp deleted file mode 100644 index 0186726a9..000000000 --- a/plugins/microformat/pluginbase.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - Copyright (C) 2004 Teemu Rytilahti - Copyright (C) 2005 George Staikos - - 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. - - As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. -*/ -#include "pluginbase.h" - -#include -#include - -#include - -PluginBase::PluginBase() -{ -} - -PluginBase::~PluginBase() -{ -} - -void PluginBase::addVCardViaDCOP(const QString &card) -{ - QDBusInterface kaddressbook("org.kde.kaddressbook", "/AddressBookService", "org.kde.addressbook.service"); - kaddressbook.call("importVCardFromData", card); -} - diff --git a/plugins/microformat/pluginbase.h b/plugins/microformat/pluginbase.h deleted file mode 100644 index 2c91bbe35..000000000 --- a/plugins/microformat/pluginbase.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - Copyright (C) 2004 Teemu Rytilahti - Copyright (C) 2005 George Staikos - - 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. - - As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. -*/ - -#ifndef PLUGINBASE_H -#define PLUGINBASE_H - -class QString; - -class PluginBase -{ -public: - PluginBase(); - ~PluginBase(); - -public: - void addVCardViaDCOP(const QString &vcard); -}; - -#endif