summaryrefslogtreecommitdiffstats
path: root/kmilo/demo
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
commit2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch)
tree8d927b7b47a90c4adb646482a52613f58acd6f8c /kmilo/demo
downloadtdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz
tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.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/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmilo/demo')
-rw-r--r--kmilo/demo/Makefile.am32
-rw-r--r--kmilo/demo/demo.cpp56
-rw-r--r--kmilo/demo/demo.h39
-rw-r--r--kmilo/demo/kmilo_demo.desktop110
4 files changed, 237 insertions, 0 deletions
diff --git a/kmilo/demo/Makefile.am b/kmilo/demo/Makefile.am
new file mode 100644
index 0000000..8ac7a46
--- /dev/null
+++ b/kmilo/demo/Makefile.am
@@ -0,0 +1,32 @@
+# This file is part of the KDE project
+# Copyright (C) 2003 George Staikos <staikos@kde.org>
+
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Library General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+
+# This library 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
+# Library General Public License for more details.
+
+# You should have received a copy of the GNU Library General Public License
+# along with this library; see the file COPYING.LIB. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+INCLUDES=-I$(srcdir)/../kmilod $(all_includes)
+
+kde_module_LTLIBRARIES = kmilo_demo.la
+
+kmilo_demo_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+kmilo_demo_la_LIBADD = ../kmilod/libkmilo.la $(LIB_KIO)
+kmilo_demo_la_SOURCES = demo.cpp
+METASOURCES = AUTO
+
+noinst_HEADERS = demo.h
+
+services_DATA = kmilo_demo.desktop
+servicesdir = $(kde_servicesdir)/kmilo
+
diff --git a/kmilo/demo/demo.cpp b/kmilo/demo/demo.cpp
new file mode 100644
index 0000000..668d137
--- /dev/null
+++ b/kmilo/demo/demo.cpp
@@ -0,0 +1,56 @@
+/*
+ This file is part of the KDE project
+
+ Copyright (c) 2003 George Staikos <staikos@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+
+*/
+
+#include <kgenericfactory.h>
+
+#include "demo.h"
+
+namespace KMilo {
+
+Demo::Demo(QObject *parent, const char *name, const QStringList& args)
+: Monitor(parent, name, args) {
+}
+
+
+Demo::~Demo() {
+}
+
+
+bool Demo::init() {
+return true;
+}
+
+
+Monitor::DisplayType Demo::poll() {
+Monitor::DisplayType rc = None;
+return rc;
+}
+
+
+int Demo::progress() const {
+ return 10;
+}
+
+};
+
+K_EXPORT_COMPONENT_FACTORY(kmilo_demo, KGenericFactory<Demo>)
+
diff --git a/kmilo/demo/demo.h b/kmilo/demo/demo.h
new file mode 100644
index 0000000..6f57cfc
--- /dev/null
+++ b/kmilo/demo/demo.h
@@ -0,0 +1,39 @@
+/*
+ This file is part of the KDE project
+
+ Copyright (c) 2003 George Staikos <staikos@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+
+*/
+#ifndef _DEMO_H_
+#define _DEMO_H_
+
+#include "monitor.h"
+
+class Demo : public KMilo::Monitor {
+ public:
+ Demo(QObject *parent, const char *name, const QStringList&);
+ virtual ~Demo();
+
+ virtual bool init();
+ virtual DisplayType poll();
+ virtual int progress() const;
+
+ private:
+};
+
+#endif
diff --git a/kmilo/demo/kmilo_demo.desktop b/kmilo/demo/kmilo_demo.desktop
new file mode 100644
index 0000000..288903f
--- /dev/null
+++ b/kmilo/demo/kmilo_demo.desktop
@@ -0,0 +1,110 @@
+[Desktop Entry]
+Type=Service
+ServiceTypes=KMilo Plugin
+X-KDE-ModuleType=Plugin
+Name=Demo Plugin
+Name[ar]=ملحق للعرض
+Name[bg]=Демонстрационна приставка
+Name[ca]=Connector demo
+Name[cy]=Ategyn Arddangosiad
+Name[da]=Demo-plugin
+Name[de]=Demo-Plugin
+Name[el]=Πρόσθετο επίδειξης
+Name[eo]=Demo-kromaĵo
+Name[es]=Extensión de demostración
+Name[et]=Demoplugin
+Name[eu]=Demo Plugina
+Name[fa]=وصلۀ Demo
+Name[fi]=Esimerkkiliitännäinen
+Name[fr]=Module externe de démonstration
+Name[ga]=Breiseán Taispeána
+Name[he]=תוסף לדוגמה
+Name[hi]=डेमो प्लगइन
+Name[hu]=Mintamodul
+Name[is]=Sýnishorn af íforriti
+Name[it]=Plugin dimostrativo
+Name[ja]=デモプラグイン
+Name[ka]=Demo მოდული
+Name[kk]=Үлгілі модулі
+Name[km]=កម្មវិធី​ជំនួយ​សាកល្បង
+Name[lt]=Demo priedas
+Name[mk]=Демо приклучок
+Name[nb]=Programtillegg for demo
+Name[nds]=Demo-Moduul
+Name[ne]=डेमो प्लगइन
+Name[nl]=Demo-plugin
+Name[nn]=Demo-programtillegg
+Name[pa]=ਫ਼ਰਜੀ ਪਲੱਗਿੰਨ
+Name[pl]=Wtyczka demonstracyjna
+Name[pt]='Plugin' de Demonstração
+Name[pt_BR]=Plug-in de Demonstração
+Name[ro]=Modul demonstrativ
+Name[ru]=Демонстрационный модуль
+Name[sk]=Testovací modul
+Name[sl]=Demonstracijski vstavek
+Name[sr]=Демонстрациони прикључак
+Name[sr@Latn]=Demonstracioni priključak
+Name[sv]=Demoinsticksprogram
+Name[ta]= முன்னோட்ட சொருகி
+Name[tg]=Модули Намоиш
+Name[uk]=Демонстраційний втулок
+Name[uz]=Demo plagini
+Name[uz@cyrillic]=Демо плагини
+Name[wa]=Tchôke-divins di mostraedje
+Name[zh_CN]=演示插件
+Name[zh_TW]=示範用外掛程式
+Comment=This plugin does nothing.
+Comment[ar]=لا يفعل هذا الملحق أى شئ..
+Comment[bg]=Тази приставка не прави нищо
+Comment[bs]=Ovaj dodatak ne radi ništa.
+Comment[ca]=Aquest connector no fa res.
+Comment[cy]=Nid yw'r ategyn yma yn gwneud unrhyw beth.
+Comment[da]=Dette plugin gør ingenting.
+Comment[de]=Dieses Plugin macht nichts.
+Comment[el]=Αυτό το πρόσθετο δεν κάνει τίποτα.
+Comment[eo]=Tiu kromaĵo faras nenion.
+Comment[es]=Esta extensión no hace nada.
+Comment[et]=See plugin ei tee mitte kui midagi.
+Comment[eu]=Plugin honek ez du ezer egiten.
+Comment[fa]=این وصله کاری انجام نمی‌دهد.
+Comment[fi]=Tämä liitännäinen ei tee mitään.
+Comment[fr]=Ce module ne fait rien.
+Comment[ga]=Ní dhéanann an breiseán seo faic.
+Comment[he]=התוסף הזה לא עושה כלום
+Comment[hi]=यह प्लगइन कुछ नहीं करता है.
+Comment[hu]=Ez a bővítőmodul nem csinál semmit
+Comment[is]=Þetta íforrit gerir ekki neitt.
+Comment[it]=Questo plugin non fa niente
+Comment[ja]=このプラグインは何もしません
+Comment[ka]=ეს მოდული არაფერს არ აკეთებს
+Comment[kk]=Бұл модуль ештеңе істемейді.
+Comment[km]=កម្មវិធី​ជំនួយ​នេះ​មិន​ធ្វើ​អ្វី ។
+Comment[lt]=Šis priedas nieko nedaro.
+Comment[mk]=Овој приклучок не прави ништо.
+Comment[ms]=Plug masuk ini tidak melakukan apa-apa.
+Comment[nb]=Dette programtillegget utfører ingen funksjoner
+Comment[nds]=Dit Moduul deit nix.
+Comment[ne]=यो प्लगइनले केही गर्दैन ।
+Comment[nl]=Deze plugin doet niets.
+Comment[nn]=Dette programtillegget gjer ikkje noko som helst.
+Comment[pa]=ਇਹ ਪਲੱਗਿੰਨ ਕੁਝ ਨਹੀਂ ਕਰਦੀ ਹੈ।
+Comment[pl]=Ta wtyczka nic nie robi.
+Comment[pt]=Este 'plugin' não faz nada.
+Comment[pt_BR]=Este plug-in não faz coisa alguma.
+Comment[ro]=Acest modul nu face nimic.
+Comment[ru]=Этот модуль ничего не делает.
+Comment[sk]=Tento modul nič nerobí.
+Comment[sl]=Ta vstavek ne naredi ničesar.
+Comment[sr]=Овај прикључак ништа не ради.
+Comment[sr@Latn]=Ovaj priključak ništa ne radi.
+Comment[sv]=Det här insticksprogrammet gör ingenting.
+Comment[ta]= செருகுப்பொருள் செயல்படவில்லை.
+Comment[tg]=Ин модул ҳеҷ чиз намекунад.
+Comment[tr]=Bu plugin birşey yapmaz.
+Comment[uk]=Цей втулок нічого не робить.
+Comment[uz]=Bu plagin hech narsa bajarmaydi.
+Comment[uz@cyrillic]=Бу плагин ҳеч нарса бажармайди.
+Comment[wa]=Ci tchôke-divins chal ni fwait rén do tot.
+Comment[zh_CN]=此插件不完成任何工作。
+Comment[zh_TW]=這個外掛程式不做任何事。
+X-KDE-Library=kmilo_demo