summaryrefslogtreecommitdiffstats
path: root/knewsticker/knewstickerstub
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /knewsticker/knewstickerstub
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewsticker/knewstickerstub')
-rw-r--r--knewsticker/knewstickerstub/Makefile.am13
-rw-r--r--knewsticker/knewstickerstub/knewstickerstub.cpp80
-rw-r--r--knewsticker/knewstickerstub/knewstickerstub.desktop202
3 files changed, 295 insertions, 0 deletions
diff --git a/knewsticker/knewstickerstub/Makefile.am b/knewsticker/knewstickerstub/Makefile.am
new file mode 100644
index 00000000..200e2eac
--- /dev/null
+++ b/knewsticker/knewstickerstub/Makefile.am
@@ -0,0 +1,13 @@
+INCLUDES = -I$(top_srcdir)/knewsticker/common $(all_includes)
+
+bin_PROGRAMS = knewstickerstub
+
+servicedir = $(kde_appsdir)/.hidden
+service_DATA = knewstickerstub.desktop
+
+METASOURCES = AUTO
+
+knewstickerstub_SOURCES = knewstickerstub.cpp
+knewstickerstub_LDADD = $(LIB_KIO) ../common/libknewstickercommon.la
+knewstickerstub_LDFLAGS = $(all_libraries) $(KDE_RPATH)
+
diff --git a/knewsticker/knewstickerstub/knewstickerstub.cpp b/knewsticker/knewstickerstub/knewstickerstub.cpp
new file mode 100644
index 00000000..7f5960a4
--- /dev/null
+++ b/knewsticker/knewstickerstub/knewstickerstub.cpp
@@ -0,0 +1,80 @@
+/*
+ * knewstickerstub.cpp
+ *
+ * Copyright (c) 2000, 2001 Frerich Raabe <raabe@kde.org>
+ *
+ * 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. For licensing and distribution details, check the
+ * accompanying file 'COPYING'.
+ */
+
+#include <kaboutdata.h>
+#include <kapplication.h>
+#include <kcmdlineargs.h>
+#include <kdebug.h>
+
+#include <dcopclient.h>
+
+
+#include "configaccess.h"
+
+static const char name[] = "knewstickerstub";
+static const char verbname[] = I18N_NOOP("KNewsTickerStub");
+static const char version[] = "0.3";
+static const char description[] = I18N_NOOP("A frontend to the KNewsTicker configuration");
+static const char copyright[] = I18N_NOOP("(c)2000, 2001 Frerich Raabe");
+
+static const KCmdLineOptions options[] =
+{
+ {"a", 0, 0},
+ {"addrdf <url>", I18N_NOOP("Add the RDF/RSS file referenced by <url>"), 0},
+ KCmdLineLastOption
+};
+
+int main(int argc, char **argv)
+{
+ KLocale::setMainCatalogue("knewsticker");
+
+ KAboutData aboutData(name, verbname, version, description,
+ KAboutData::License_BSD, copyright);
+ aboutData.addAuthor("Frerich Raabe", I18N_NOOP("Author"), "raabe@kde.org");
+
+ KCmdLineArgs::init(argc, argv, &aboutData);
+ KCmdLineArgs::addCmdLineOptions(options);
+ KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+
+ KApplication app(false, false);
+
+ DCOPClient *dcopClient = app.dcopClient();
+ dcopClient->attach();
+
+ KConfig cfg(QString::fromLatin1("knewsticker_panelappletrc"), false, false);
+ ConfigAccess configFrontend(&cfg);
+
+ if (args->isSet("addrdf")) {
+ QStringList newsSources = configFrontend.newsSources();
+
+ // TODO: Use the "Suggest" functionality from addnewssourcedlgimpl.cpp here.
+ QString name = i18n("Unknown");
+ if (newsSources.contains(name))
+ for (unsigned int i = 0; ; i++)
+ if (!newsSources.contains(i18n("Unknown %1").arg(i))) {
+ name = i18n("Unknown %1").arg(i);
+ break;
+ }
+
+ newsSources += name;
+
+ QString sourceFile = QString(args->getOption("addrdf"));
+ configFrontend.setNewsSource(NewsSourceBase::Data(name, sourceFile));
+ configFrontend.setNewsSources(newsSources);
+
+ QByteArray data;
+ dcopClient->send("knewsticker", "KNewsTicker", "reparseConfig()", data);
+ }
+
+ args->clear();
+
+ return 0;
+}
diff --git a/knewsticker/knewstickerstub/knewstickerstub.desktop b/knewsticker/knewstickerstub/knewstickerstub.desktop
new file mode 100644
index 00000000..1ce2238b
--- /dev/null
+++ b/knewsticker/knewstickerstub/knewstickerstub.desktop
@@ -0,0 +1,202 @@
+[Desktop Entry]
+Name=KNewsTicker Config Frontend
+Name[be]=Праграма настаўлення KNewsTicker
+Name[bg]=Настройване четеца на новини
+Name[bn]=কে-নিউজ-টিকার কনফিগ ফ্রন্ট-এন্ড
+Name[bs]=KNewsTicker konfiguracijski frontend
+Name[ca]=Interfície de configuració per a KNewsTicker
+Name[cs]=Nastavení KNewsTickeru
+Name[da]=KNewsTicker config-grænseflade
+Name[de]=Newsticker-Einrichtung
+Name[el]=Πρόγραμμα ρύθμισης KNewsTicker
+Name[eo]=Agordilo por Novaĵprezentilo
+Name[es]=Interfaz de configuración de KNewsTicker
+Name[et]=Uudistejälgija seadistamine
+Name[eu]=KNewsTicker konfigurazio interfazea
+Name[fa]=پایانۀ پیکربندی KNewsTicker
+Name[fi]=KNewsTickerin asetusten käyttöliittymä
+Name[fr]=Interface pour la configuration du téléscripteur
+Name[gl]=Interface de Configuración de KNewsTicker
+Name[he]=ממשק לקביעת התצורה של KNewsTicker
+Name[hu]=Grafikus felületű beállítóprogram a KNewsTickerhez
+Name[is]=Stillingatól KNewsTicker
+Name[it]=Interfaccia per la configurazione di KNewsTicker
+Name[ja]=ニュースティッカー設定フロントエンド
+Name[ka]=KNewsTicker კონფიგურაცია
+Name[kk]=KNewsTicker баптауы
+Name[km]=ផ្នែក​ខាង​មុខ​សម្រាប់​កំណត់​រចនាសម្ព័ន្ធ KNewsTicker
+Name[lt]=KNewsTicker derinimo naudotojo sąsaja
+Name[mk]=Конфигурација на интерфејсот на KNewsTicker
+Name[nb]=Oppsettsmodul for KNewsTicker
+Name[nds]=KNewsTicker-Inrichten
+Name[ne]=केडीई न्यूज टिकर कन्फिग फ्रन्टइन्ड
+Name[nl]=KNewsTicker configuratie-interface
+Name[nn]=Oppsett av KNewsTicker
+Name[pl]=Interfejs konfiguracji KNewsTickera
+Name[pt]=Configuração das Notícias
+Name[pt_BR]=Interface de configuração do KNewsTicker
+Name[ro]=Interfaţă configurare Ştiri Internet
+Name[ru]=Параметры монитора новостей
+Name[se]=Heivet KNewsTicker-lavtta
+Name[sk]=Nastavenie KNewsTicker
+Name[sl]=Nastavitveni vmesnik programa KNewsTicker
+Name[sr]=Интерфејс за подешавање KNewsTicker-а
+Name[sr@Latn]=Interfejs za podešavanje KNewsTicker-a
+Name[sv]=Gränssnitt för anpassning av nyhetsövervakaren
+Name[ta]=கேசெய்தி அறிவிப்பான் கட்டமை முன்னிலை
+Name[tg]=KПешохири Танзими Дидабони Ахборот
+Name[tr]=KDE Haber Gözlemcisi Yapılandırma Önyüzü
+Name[uk]=Інтерфейс налаштування KNewsTicker
+Name[zh_CN]=KNewsTicker 配置前端
+Name[zh_HK]=KNewsTicker 設定前端
+Name[zh_TW]=KNewsTicker 設定前端
+Comment=A frontend for the KNewsTicker configuration
+Comment[af]='n voorprogram vir die K-nuustikker opstelling
+Comment[ar]=واجهة لضبط مجدد الأخبار
+Comment[az]=KNewsTicker quraşdırması üçün bir axtar üz
+Comment[be]=Праграма настаўлення KNewsTicker
+Comment[bg]=Графичен интерфейс за настройки на четеца на новини
+Comment[bn]=কে-নিউজ-টিকার কনফিগারেশনের জন্য একটি ফ্রন্ট-এন্ড
+Comment[bs]=Frontend za podešavanje KNewsTicker-a
+Comment[ca]=Una interfície per a la configuració del KNewsTicker
+Comment[cs]=Rozhraní pro nastavení KNewsTickeru
+Comment[cy]=Blaen-wyneb i'r ffurweddiad KTicerNewyddion
+Comment[da]=En grænseflade til indstilling af KNewsTicker
+Comment[de]=Eine Oberfläche zur Einrichtung von KNewsTicker
+Comment[el]=Ένα πρόγραμμα για τη ρύθμιση του KNewsTicker
+Comment[eo]=Agordilofasado por Novaĵprezentilo
+Comment[es]=Un interfaz para la configuración de KNewsTicker
+Comment[et]=Uudistejälgija seadistamise kasutajaliides
+Comment[eu]=KNewsTicker konfigurazioaren interfazea
+Comment[fa]=یک پایانه برای پیکربندی KNewsTicker
+Comment[fi]=Käyttöliittymä KNewsTicker-asetuksiin
+Comment[fr]=Interface pour la configuration de KNewsTicker
+Comment[ga]=Comhéadan le haghaidh chumraíocht KNewsTicker
+Comment[gl]=Unha interfaz para a configuración de KNewsTicker
+Comment[he]=ממשק לקביעת התצורה של KNewsTicker
+Comment[hi]=के-न्यूज टिकर कॉन्फ़िगरेशन के लिए फ्रन्टएण्ड
+Comment[hr]=Sučelje za podešavanje KNewsTicker-a
+Comment[hu]=Előtétprogram a KNewsTicker beállításához
+Comment[is]=Stillingatól fyrir Fréttastrimilinn
+Comment[it]=Un'interfaccia grafica per la configurazione di KNewsTicker
+Comment[ja]=KNewsTicker (ニュースティッカー) の設定フロントエンド
+Comment[ka]=KNewsTicker კონფიგურაციის
+Comment[kk]=KNewsTicker баптауының интерфейсі
+Comment[km]=ផ្នែក​ខាង​មុខ​សម្រាប់​កំណត់​រចនាសម្ព័ន្ធ KNewsTicker
+Comment[ko]=K새소식 표시기 설정 도구
+Comment[lt]=Naudotojo sąsaja, skirta KNewsTicker derinimui
+Comment[lv]=KZiņuTikkera konfigurēšanas frontends
+Comment[mk]=Интерфејс за конфигурацијата на KNewsTicker
+Comment[mn]=KNewsTicker-ийн Тохируулгыг Үзүүлэх
+Comment[ms]=Bahagian depan untuk penyelarasan KNewsTicker
+Comment[mt]=Faċċata għall-konfigurazzjoni ta' KNewsTicker
+Comment[nb]=Program for oppsett av KNewsTicker
+Comment[nds]=En Böversiet för de KNewsTicker-Instellen
+Comment[ne]=केडीई न्यूज टिकर कन्फिगरेसनका लागि फ्रन्टइन्ड
+Comment[nl]=Een grafische schil voor de configuratie van KNewsTicker
+Comment[nn]=Program for oppsett av KNewsTicker
+Comment[nso]=Mafelelo a kapele a peakanyo ya Seswai sa KDitaba
+Comment[pl]=Konfiguracja KNewsTickera
+Comment[pt]=Configuração do extractor de notícias
+Comment[pt_BR]=Uma interface para configuração do KNewsTicker
+Comment[ro]=O interfaţă de configurare pentru Ştiri Internet
+Comment[ru]=Графическая оболочка для клиента новостей
+Comment[se]=Prográmma mainna heiveha KNewsTicker
+Comment[sk]=Nastavenie KNewsTicker
+Comment[sl]=Vmesnik za nastavitve programa KNewsTicker
+Comment[sr]=Интерфејс за подешавање KNewsTicker-а
+Comment[sr@Latn]=Interfejs za podešavanje KNewsTicker-a
+Comment[sv]=Gränssnitt för anpassning av nyhetsövervakaren
+Comment[ta]=செய்தி அறிவிப்பதற்கான முன் அமைப்பு
+Comment[tg]=Муқоваи графикӣ барои танзими KДидабони Ахборот
+Comment[th]=ฟรอนต์เอนด์สำหรับปรับแต่งตั๋วข่าว - K
+Comment[tr]=KDE Haber Gözlemcisi yapılandırması için önyüz
+Comment[uk]=Зовнішній інтерфейс налаштування KNewsTicker
+Comment[ven]=U iswa phanda uitela Mavhekanyele a musengulusi wa mafhungo a K
+Comment[xh]=Umphambili wesiphelo soqwalaselo se KNewsTicker
+Comment[zh_CN]=KNewsTicker 配置的前端
+Comment[zh_HK]=設定 KNewsTicker 的前端程式
+Comment[zh_TW]=設定 KNewsTicker 的前端
+Comment[zu]=Isiqalo sesiphelo sezindaba zesiphelo senhlanganiso lomlekeleli wezindaba ze K
+MimeType=text/rdf;text/rss
+Exec=knewstickerstub -a %u
+Icon=knode
+NoDisplay=true
+Type=Application
+Terminal=false
+InitialPreference=8
+Actions=Add;
+X-KDE-StartupNotify=false
+
+[Desktop Action Add]
+Exec=knewstickerstub -a %u
+Name=Use with KNewsTicker
+Name[af]=Gebruik met K-nuustikker
+Name[ar]=استخدمه مع مجدد الأخبار
+Name[az]=KNewsTicker ilə birgə işlədin
+Name[be]=Выкарыстаць з KNewsTicker
+Name[bg]=Използване с четеца на новини
+Name[bn]=কে-নিউজ-টিকারের সঙ্গে ব্যবহার
+Name[br]=Implijit gant KNewsTicker
+Name[bs]=Koristite sa KNewsTicker-om
+Name[ca]=Empra amb el KNewsTicker
+Name[cs]=Použít s KNewsTickerem
+Name[cy]=Defnyddio efo KTicerNewyddion
+Name[da]=Brug med KNewsTicker
+Name[de]=Zur Benutzung mit KNewsticker
+Name[el]=Χρήση με το KNewsTicker
+Name[eo]=Uzu kun Novaĵprezentilo
+Name[es]=Usar con KNewsTicker
+Name[et]=Kasutamine KNewsTickeriga
+Name[eu]=Erabili KNewsTicker-ekin
+Name[fa]=استفاده با KNewsTicker
+Name[fi]=Käytä KNewsTicker-ohjelman kanssa
+Name[fr]=Utiliser avec KNewsTicker
+Name[gl]=Usar con KNewsTicker
+Name[he]=השתמש ב- KNewsTicker
+Name[hi]=के-न्यूज टिकर के साथ इस्तेमाल करें
+Name[hr]=Koristi sa KNewsTicker-om
+Name[hu]=A KNewsTicker egyik alkotórésze
+Name[id]=Gunakan dengan KNewsTicker
+Name[is]=Notist með 'Fréttastrimli'
+Name[it]=Utilizza con KNewsTicker
+Name[ja]=ニュースティッカーを使用
+Name[ka]=KNewsTicker გამოყენება
+Name[kk]=KNewsTicker-мен бірге қолданылады
+Name[km]=ប្រើ​ជា​មួយ KNewsTicker
+Name[ko]=K새소식 표시기와 같이 씀
+Name[lt]=Naudojama su KNewsTicker
+Name[lv]=Lieto ar KZiņuTikkeru
+Name[mk]=Користи со KNewsTicker
+Name[mn]=KNewsTicker тэй хэрэглэх
+Name[ms]=Digunakan bersama KNewsTicker
+Name[mt]=Uża ma' KNewsTicker
+Name[nb]=Bruk med KNewsTicker
+Name[nds]=Bruuk dat mit KNewsTicker
+Name[ne]=केडीई न्यूज टिकरसँग प्रयोग गर्नुहोस्
+Name[nl]=Gebruik met KNewsTicker
+Name[nn]=Bruk med KNewsTicker
+Name[nso]=Somisa le Seswai sa KDitaba
+Name[pl]=Użyj za pomocą KNewsTickera
+Name[pt]=Usar com as Notícias
+Name[pt_BR]=Usar com KNewsTicker
+Name[ro]=Utilizează cu Ştiri Internet
+Name[ru]=Используется с KNewsTicker
+Name[se]=Geavat ovttas KNewsTicker:in
+Name[sk]=Použiť s KNewsTicker
+Name[sl]=Uporabite s KNewsTicker
+Name[sr]=Користи са KNewsTicker-ом
+Name[sr@Latn]=Koristi sa KNewsTicker-om
+Name[sv]=Använd med nyhetsövervakaren
+Name[ta]=கேசெய்தி அறிவிப்பான்
+Name[tg]=Бо KДидабони Ахборот истифода мегардад
+Name[th]=ใช้กับตั๋วข่าว - K
+Name[tr]=KDE Haber Gözlemcisi ile birlikte kullanın
+Name[uk]=Для використання з KNewsTicker
+Name[ven]=Shumisani na Musengulusi wa mafhungo
+Name[xh]=Yisebenzise ne KNewsTicker
+Name[zh_CN]=和 KNewsTicker 一起使用
+Name[zh_HK]=和 KNewsTicker 一起使用
+Name[zh_TW]=和 KNewsTicker 一起使用
+Name[zu]=Yisebenzise nomlungiseleli wezindaba ze K
+X-KDE-StartupNotify=false