mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: remove now redudant remote widgets helper
This commit is contained in:
parent
bf8babd097
commit
6e111b5f03
5 changed files with 1 additions and 227 deletions
|
@ -9,5 +9,4 @@ add_subdirectory(wallpapers)
|
||||||
add_subdirectory(containments)
|
add_subdirectory(containments)
|
||||||
add_subdirectory(declarativeimports)
|
add_subdirectory(declarativeimports)
|
||||||
add_subdirectory(kpart)
|
add_subdirectory(kpart)
|
||||||
add_subdirectory(remotewidgetshelper)
|
|
||||||
add_subdirectory(tools)
|
add_subdirectory(tools)
|
|
@ -1,9 +0,0 @@
|
||||||
########### next target ###############
|
|
||||||
|
|
||||||
kde4_add_executable(kcmremotewidgetshelper remotewidgetshelper.cpp)
|
|
||||||
target_link_libraries(kcmremotewidgetshelper ${KDE4_KDECORE_LIBS})
|
|
||||||
install(TARGETS kcmremotewidgetshelper DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|
||||||
|
|
||||||
kde4_install_auth_helper_files(kcmremotewidgetshelper org.kde.kcontrol.kcmremotewidgets root)
|
|
||||||
kde4_install_auth_actions(org.kde.kcontrol.kcmremotewidgets kcm_remotewidgets.actions)
|
|
||||||
|
|
|
@ -1,131 +0,0 @@
|
||||||
[org.kde.kcontrol.kcmremotewidgets.save]
|
|
||||||
Name=Save remote widgets' policies
|
|
||||||
Name[ar]=احفظ سياسات الودجات البعيدة
|
|
||||||
Name[ast]=Guardáu de polítiques d'elementos gráficos remotos
|
|
||||||
Name[bg]=Запазване на правилата на отдалечените джаджи
|
|
||||||
Name[bs]=Sačuvaj smjernice za udaljene grafičke kontrole
|
|
||||||
Name[ca]=Desa les polítiques d'estris remots
|
|
||||||
Name[ca@valencia]=Guarda les polítiques d'estris remots
|
|
||||||
Name[cs]=Uložit zásady vzdálených widgetů
|
|
||||||
Name[da]=Gem politikker for eksterne widgets
|
|
||||||
Name[de]=Regelungen für entfernte Miniprogramme speichern
|
|
||||||
Name[el]=Αποθήκευση των πολιτικών απομακρυσμένων μικροεφαρμογών
|
|
||||||
Name[en_GB]=Save remote widgets' policies
|
|
||||||
Name[eo]=Konservi politikojn de foraj fenestraĵoj
|
|
||||||
Name[es]=Guardar las políticas de elementos gráficos remotos
|
|
||||||
Name[et]=Välisvidinate reeglite salvestamine
|
|
||||||
Name[eu]=Urruneko trepeten politikak gordetzea
|
|
||||||
Name[fi]=Tallenna etäkäyttöliittymäkomponenttien menettelytavat
|
|
||||||
Name[fr]=Enregistrer la politique des composants graphiques distants
|
|
||||||
Name[ga]=Sábháil polasaithe um giuirléidí cianda
|
|
||||||
Name[gl]=Gardas as políticas dos widgets remotos
|
|
||||||
Name[gu]=દૂરસ્થ વિજેટ્સની નિતિઓ સંગ્રહો
|
|
||||||
Name[he]=שמירת מדיניות של ווידג׳טים מרוחקים
|
|
||||||
Name[hi]=दूरस्थ विगेट्स नीतियाँ सहेजें
|
|
||||||
Name[hr]=Spremi pravila za udaljene widgete
|
|
||||||
Name[hu]=Távoli widgetek irányelveinek mentése
|
|
||||||
Name[ia]=Il salva le politicas del widgets remote
|
|
||||||
Name[id]=Simpan kebijakan widget jarak jauh
|
|
||||||
Name[is]=Vista stefnur varðandi fjartengdar græjur
|
|
||||||
Name[it]=Salva le linee guida degli oggetti remoti
|
|
||||||
Name[ja]=リモートウィジェットポリシーを保存
|
|
||||||
Name[kk]=Қашықтағы виджеттер ережелерін сақтау
|
|
||||||
Name[km]=រក្សាទុកគោលនយោបាយរបស់ធាតុក្រាហ្វិកពីចម្ងាយ
|
|
||||||
Name[ko]=원격 위젯의 정책 저장하기
|
|
||||||
Name[lt]=Išsaugoti nutolusių valdiklių taisykles
|
|
||||||
Name[lv]=Saglabāt attālinātā sīkrīka politiku
|
|
||||||
Name[ml]=വിദൂര ഉരുപ്പടികള്ക്കുള്ള നയങ്ങള് സൂക്ഷിയ്ക്കുക
|
|
||||||
Name[mr]=दूरस्थ विजेटची धोरणे साठवा
|
|
||||||
Name[nb]=Lagre praksis for nettverkselementer
|
|
||||||
Name[nds]=Regeln för feern Lüttprogrammen sekern
|
|
||||||
Name[nl]=Beleidsregels voor widgets op afstand opslaan
|
|
||||||
Name[nn]=Lagra reglar for fjernelement
|
|
||||||
Name[pa]=ਰਿਮੋਟ ਵਿਦਜੈੱਟ ਦੀ ਪਾਲਸੀ ਸੰਭਾਲੋ
|
|
||||||
Name[pl]=Zapisz polityki zdalnych elementów interfejsu
|
|
||||||
Name[pt]=Gravar as políticas dos elementos remotos
|
|
||||||
Name[pt_BR]=Salvar políticas de widgets remotos
|
|
||||||
Name[ro]=Salvează politicile controalelor distante
|
|
||||||
Name[ru]=Сохранение правил удалённо доступных виджетов
|
|
||||||
Name[si]=දුරස්ථ විජට්ටුවල ප්රතිපත්ති සුරකින්න
|
|
||||||
Name[sk]=Uložiť politiky pre vzdialené widgety
|
|
||||||
Name[sl]=Shrani pravilnike za oddaljene gradnike
|
|
||||||
Name[sr]=Сачувај смернице за удаљене виџете
|
|
||||||
Name[sr@ijekavian]=Сачувај смјернице за удаљене виџете
|
|
||||||
Name[sr@ijekavianlatin]=Sačuvaj smjernice za udaljene vidžete
|
|
||||||
Name[sr@latin]=Sačuvaj smernice za udaljene vidžete
|
|
||||||
Name[sv]=Spara policy för grafiska fjärrkomponenter
|
|
||||||
Name[tg]=Танзимоти видҷетҳои дурдастро сабт кунед
|
|
||||||
Name[th]=บันทึกกฎของวิดเจ็ตระยะไกล
|
|
||||||
Name[tr]=Uzak gereç politikalarını kaydet
|
|
||||||
Name[ug]=يىراقتىكى ۋىجېتلارنى ساقلاش تەدبىرى
|
|
||||||
Name[uk]=Зберегти правила для віддалених віджетів
|
|
||||||
Name[vi]=Lưu các chế độ widget từ xa
|
|
||||||
Name[wa]=Schaper les politikes dåzès ahesses då lon
|
|
||||||
Name[x-test]=xxSave remote widgets' policiesxx
|
|
||||||
Name[zh_CN]=保存远程部件的策略
|
|
||||||
Name[zh_TW]=儲存遠端元件政策
|
|
||||||
Description=Prevents the system from saving remote plasma widgets' policies
|
|
||||||
Description[ar]=يمنع النظام من حفظ سياسات ودجات بلازما البعيدة
|
|
||||||
Description[ast]=Impide que'l sistema guarde polítiques d'elementos gráficos Plasma remotos
|
|
||||||
Description[bg]=Забраняване запазването на правилата на отдалечените джаджи
|
|
||||||
Description[bs]=Sprečava sistem da sačuva smjernice udaljenih plazma grafičkih kontrola
|
|
||||||
Description[ca]=Evita al sistema de desar polítiques d'estris remots del plasma
|
|
||||||
Description[ca@valencia]=Evita al sistema de guardar polítiques d'estris remots del plasma
|
|
||||||
Description[cs]=Zabrání systému ukládat zásady vzdálených widgetů plasmy
|
|
||||||
Description[da]=Forhindrer systemet i et gemme politikker for eksterne plasma-widgets
|
|
||||||
Description[de]=Hindert das System daran, Regelungen für entfernte Miniprogramme zu speichern.
|
|
||||||
Description[el]=Αποτρέπει το σύστημα από το να σώσει τις πολιτικές απομακρυσμένων μικροεφαρμογών plasma
|
|
||||||
Description[en_GB]=Prevents the system from saving remote plasma widgets' policies
|
|
||||||
Description[eo]=Ĝi antaŭevitas, ke la sistemo konservas politikojn de foraj fenestraĵoj de Plasmo
|
|
||||||
Description[es]=Impide que el sistema guarde políticas de elementos gráficos Plasma remotos
|
|
||||||
Description[et]=Takistab süsteemil salvestamast Plasma välisvidinate reegleid
|
|
||||||
Description[eu]=Sistemak urruneko Plasma trepeten politikak gordetzea galarazten du
|
|
||||||
Description[fi]=Estää järjestelmää tallentamasta etäplasmakäyttöliittymäkomponenttien menettelytapoja
|
|
||||||
Description[fr]=Empêche le système d'enregistrer la politique des composants graphiques distants
|
|
||||||
Description[ga]=Ná lig don chóras polasaithe um giuirléidí cianda plasma a shábháil
|
|
||||||
Description[gl]=Evita que o sistema garde as políticas dos widgets remotos de plasma
|
|
||||||
Description[gu]=સિસ્ટમને દૂરસ્થ પ્લાઝમા વિજેટ્સ નિતીઓ સંગ્રહ કરવામાંથી અટકાવે છે
|
|
||||||
Description[he]=מונע מהמערכת מלשמור מדיניות של ווידג׳טים מרוחקים
|
|
||||||
Description[hi]=दूरस्थ प्लाज्मा विगेट्स नीतियाँ को सहेजने से तंत्र को रोकता है
|
|
||||||
Description[hr]=Brani sustavu spremanje pravila za udaljene widgete Plasme
|
|
||||||
Description[hu]=Megakadályozza a rendszert a távoli widgetek irányelveinek mentésében
|
|
||||||
Description[ia]=Il preveni le systema ab salvar le politicas del widgets (elementos graphic) remote de plasma
|
|
||||||
Description[id]=Mencegah sistem dari menyimpan kebijakan widget jarak jauh plasma
|
|
||||||
Description[is]=Kemur í veg fyrir að kerfið geti vistað stefnur varðandi fjartengdar græjur
|
|
||||||
Description[it]=Impedisce al sistema di salvare le linee guida degli oggetti remoti di Plasma
|
|
||||||
Description[ja]=システムがリモート Plasma ウィジェットポリシー保存するのを防ぎます
|
|
||||||
Description[kk]=Қашықтағы Plasma виджеттер ережелерін жүйеде сақтауын болдырмау
|
|
||||||
Description[km]=ការពារប្រព័ន្ធមិនឲ្យរក្សាទុកគោលនយោបាយរបស់ធាតុក្រាហ្វិកប្លាស្មាពីចម្ងាយ
|
|
||||||
Description[ko]=Plasma 원격 위젯 정책을 저장하지 못하도록 합니다
|
|
||||||
Description[lt]=Neleidžia sistemai išsaugoti nutolusių plazmos valdiklių taisyklių
|
|
||||||
Description[lv]=Liedz sistēmai saglabāt plasma attālināto sīkrīku politikas
|
|
||||||
Description[mr]=दूरस्थ विजेटची धोरणे संचयीत करण्यापासुन प्रणालीस परावृत्त करतो.
|
|
||||||
Description[nb]=Hindrer at systemet lagrer praksiser for plasmaelementer på nettverket
|
|
||||||
Description[nds]=Höllt dat Systeem vun't Sekern vun de Regeln för feern Plasma-Lüttprogrammen af
|
|
||||||
Description[nl]=Voorkomt het opslaan door het systeem van beleidsregels voor widgets op afstand
|
|
||||||
Description[nn]=Hindrar systemet i å lagra reglar for fjernelement
|
|
||||||
Description[pa]=ਰਿਮੋਟ ਪਲਾਜ਼ਮਾ ਵਿਦਜੈੱਟ ਦੀਆਂ ਨੀਤੀਆਂ ਸੰਭਾਲਣ ਤੋਂ ਸਿਸਟਮ ਨੂੰ ਰੋਕਦਾ ਹੈ
|
|
||||||
Description[pl]=Wyłącza zapisywanie polityk zdalnych elementów interfejsu
|
|
||||||
Description[pt]=Impede o sistema de gravar as políticas dos elementos remotos do Plasma
|
|
||||||
Description[pt_BR]=Previne o sistema de salvar as políticas de widgets Plasma remotos
|
|
||||||
Description[ro]=Impiedică sistemul să salveze politicile controalelor distante
|
|
||||||
Description[ru]=Сохранение правил доступа к удалённо доступным виджетам
|
|
||||||
Description[si]=දුරස්ථ ප්ලැස්මා විජට්ටු ප්රතිපත්ති සුරැකීමෙන් පද්ධතිය වළක්වයි
|
|
||||||
Description[sk]=Zabraňuje systému ukladať politiky pre vzdialené widgety
|
|
||||||
Description[sl]=Sistemu prepreči shranjevanje pravilnikov za oddaljene gradnike
|
|
||||||
Description[sr]=Спречава систем да сачува смернице удаљених плазма виџета
|
|
||||||
Description[sr@ijekavian]=Спречава систем да сачува смјернице удаљених плазма виџета
|
|
||||||
Description[sr@ijekavianlatin]=Sprečava sistem da sačuva smjernice udaljenih plasma vidžeta
|
|
||||||
Description[sr@latin]=Sprečava sistem da sačuva smernice udaljenih plasma vidžeta
|
|
||||||
Description[sv]=Förhindrar systemet från att spara policy för Plasma grafiska fjärrkomponenter
|
|
||||||
Description[tg]=Системаро аз сабткунии танзимоти видҷетҳои plasma-и дурдаст пешгирӣ мекунад
|
|
||||||
Description[th]=ป้องกันระบบจากการบันทึกกฎของวิดเจ็ตของพลาสมาจากทางไกล
|
|
||||||
Description[tr]=Sistemin uzak plasma gereçlerinin politikalarını kaydetmesini engelle
|
|
||||||
Description[ug]=سىستېما يىراقتىكى پلازما ۋىجېتلىرىنىڭ تەدبىرىنى ساقلاشنى چەكلەيدۇ
|
|
||||||
Description[uk]=Заборонити системі зберігати правила для віддалених віджетів Плазми
|
|
||||||
Description[vi]=Ngăn hệ thống khỏi lưu các chế độ widget plasma từ xa
|
|
||||||
Description[wa]=Espaitche li sistinme di schaper des politikes des ahesses plasma då lon
|
|
||||||
Description[x-test]=xxPrevents the system from saving remote plasma widgets' policiesxx
|
|
||||||
Description[zh_CN]=禁止系统保存远程 Plasma 部件的策略
|
|
||||||
Description[zh_TW]=避免系統儲存遠端 plasma 元件政策
|
|
||||||
Policy=auth_admin
|
|
|
@ -1,51 +0,0 @@
|
||||||
/*
|
|
||||||
Copyright (C) 2009 Dario Freddi <drf@kde.org>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 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 Lesser 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 "remotewidgetshelper_p.h"
|
|
||||||
|
|
||||||
#include <QFile>
|
|
||||||
#include <QTextStream>
|
|
||||||
|
|
||||||
ActionReply RemoteWidgetsHelper::save(const QVariantMap &args)
|
|
||||||
{
|
|
||||||
QString filename = args["filename"].toString();
|
|
||||||
QString source = args["source"].toString();
|
|
||||||
|
|
||||||
QFile file(filename);
|
|
||||||
if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
|
|
||||||
ActionReply reply = ActionReply::HelperErrorReply;
|
|
||||||
reply.setErrorCode(file.error());
|
|
||||||
|
|
||||||
return reply;
|
|
||||||
}
|
|
||||||
|
|
||||||
QFile sfile(source);
|
|
||||||
if (!sfile.open(QIODevice::ReadOnly)) {
|
|
||||||
ActionReply reply = ActionReply::HelperErrorReply;
|
|
||||||
reply.setErrorCode(sfile.error());
|
|
||||||
|
|
||||||
return reply;
|
|
||||||
}
|
|
||||||
|
|
||||||
QTextStream stream(&file);
|
|
||||||
stream << sfile.readAll();
|
|
||||||
|
|
||||||
return ActionReply::SuccessReply;
|
|
||||||
}
|
|
||||||
|
|
||||||
KDE4_AUTH_HELPER_MAIN("org.kde.kcontrol.kcmremotewidgets", RemoteWidgetsHelper)
|
|
|
@ -1,34 +0,0 @@
|
||||||
/*
|
|
||||||
Copyright (C) 2009 Dario Freddi <drf@kde.org>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2.1 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 Lesser 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 REMOTEWIDGETS_HELPER_H
|
|
||||||
#define REMOTEWIDGETS_HELPER_H
|
|
||||||
|
|
||||||
#include <kauth.h>
|
|
||||||
|
|
||||||
using namespace KAuth;
|
|
||||||
|
|
||||||
class RemoteWidgetsHelper : public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
ActionReply save(const QVariantMap &map);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // REMOTEWIDGETS_HELPER_H
|
|
Loading…
Add table
Reference in a new issue