summaryrefslogtreecommitdiffstats
path: root/kioslave/trash/kfile-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/trash/kfile-plugin')
-rw-r--r--kioslave/trash/kfile-plugin/CMakeLists.txt38
-rw-r--r--kioslave/trash/kfile-plugin/Makefile.am14
-rw-r--r--kioslave/trash/kfile-plugin/RETURNED_ITEMS4
-rw-r--r--kioslave/trash/kfile-plugin/kfile_trash.cpp93
-rw-r--r--kioslave/trash/kfile-plugin/kfile_trash.desktop79
-rw-r--r--kioslave/trash/kfile-plugin/kfile_trash.h42
-rw-r--r--kioslave/trash/kfile-plugin/kfile_trash_system.desktop79
7 files changed, 0 insertions, 349 deletions
diff --git a/kioslave/trash/kfile-plugin/CMakeLists.txt b/kioslave/trash/kfile-plugin/CMakeLists.txt
deleted file mode 100644
index 920144faa..000000000
--- a/kioslave/trash/kfile-plugin/CMakeLists.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-#################################################
-#
-# (C) 2010-2011 Serghei Amelian
-# serghei (DOT) amelian (AT) gmail.com
-#
-# Improvements and feedback are welcome
-#
-# This file is released under GPL >= 2
-#
-#################################################
-
-include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
- ${TDE_INCLUDE_DIR}
- ${TQT_INCLUDE_DIRS}
-)
-
-link_directories(
- ${TQT_LIBRARY_DIRS}
-)
-
-
-##### other data ################################
-
-install( FILES
- kfile_trash.desktop kfile_trash_system.desktop
- DESTINATION ${SERVICES_INSTALL_DIR} )
-
-
-##### kfile_trash (module) ######################
-
-set( target kfile_trash )
-
-tde_add_kpart( ${target} AUTOMOC
- SOURCES kfile_trash.cpp
- LINK trashcommon-static kio-shared
- DESTINATION ${PLUGIN_INSTALL_DIR}
-)
diff --git a/kioslave/trash/kfile-plugin/Makefile.am b/kioslave/trash/kfile-plugin/Makefile.am
deleted file mode 100644
index 0668553a8..000000000
--- a/kioslave/trash/kfile-plugin/Makefile.am
+++ /dev/null
@@ -1,14 +0,0 @@
-## Makefile.am for trash file meta info plugin
-
-AM_CPPFLAGS = $(all_includes)
-
-kde_module_LTLIBRARIES = kfile_trash.la
-
-kfile_trash_la_SOURCES = kfile_trash.cpp
-kfile_trash_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
-kfile_trash_la_LIBADD = ../libtrashcommon.la $(LIB_KIO)
-
-METASOURCES = AUTO
-
-services_DATA = kfile_trash.desktop kfile_trash_system.desktop
-servicesdir = $(kde_servicesdir)
diff --git a/kioslave/trash/kfile-plugin/RETURNED_ITEMS b/kioslave/trash/kfile-plugin/RETURNED_ITEMS
deleted file mode 100644
index 3e34c5b6d..000000000
--- a/kioslave/trash/kfile-plugin/RETURNED_ITEMS
+++ /dev/null
@@ -1,4 +0,0 @@
-kfile_trash
-===========
-QString OriginalPath
-DateTime DateOfDeletion
diff --git a/kioslave/trash/kfile-plugin/kfile_trash.cpp b/kioslave/trash/kfile-plugin/kfile_trash.cpp
deleted file mode 100644
index 182d9c40e..000000000
--- a/kioslave/trash/kfile-plugin/kfile_trash.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-/* This file is part of the KDE project
- * Copyright (C) 2004 David Faure <faure@kde.org>
- * Based on kfile_txt.cpp by Nadeem Hasan <nhasan@kde.org>
- *
- * 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 version 2.
- *
- * 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; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#include "kfile_trash.h"
-
-#include <kgenericfactory.h>
-#include <kdebug.h>
-
-#include <tqfile.h>
-#include <tqstringlist.h>
-#include <tqdatetime.h>
-
-typedef KGenericFactory<KTrashPlugin> TrashFactory;
-
-K_EXPORT_COMPONENT_FACTORY(kfile_trash, TrashFactory("kfile_trash"))
-
-KTrashPlugin::KTrashPlugin(TQObject *parent, const char *name,
- const TQStringList &args) : KFilePlugin(parent, name, args)
-{
- TDEGlobal::locale()->insertCatalogue( "kio_trash" );
-
- kdDebug(7034) << "Trash file meta info plugin\n";
-
- makeMimeTypeInfo("trash");
- makeMimeTypeInfo("system");
-
- (void)impl.init();
-}
-
-void KTrashPlugin::makeMimeTypeInfo(const TQString& mimeType)
-{
- KFileMimeTypeInfo* info = addMimeTypeInfo( mimeType );
-
- KFileMimeTypeInfo::GroupInfo* group =
- addGroupInfo(info, "General", i18n("General"));
-
- KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "OriginalPath", i18n("Original Path"), TQVariant::String);
- item = addItemInfo(group, "DateOfDeletion", i18n("Date of Deletion"), TQVariant::DateTime);
-}
-
-bool KTrashPlugin::readInfo(KFileMetaInfo& info, uint)
-{
- KURL url = info.url();
-
- if ( url.protocol()=="system"
- && url.path().startsWith("/trash") )
- {
- TQString path = url.path();
- path.remove(0, 6);
- url.setProtocol("trash");
- url.setPath(path);
- }
-
- //kdDebug() << k_funcinfo << info.url() << endl;
- if ( url.protocol() != "trash" )
- return false;
-
- int trashId;
- TQString fileId;
- TQString relativePath;
- if ( !TrashImpl::parseURL( url, trashId, fileId, relativePath ) )
- return false;
-
- TrashImpl::TrashedFileInfo trashInfo;
- if ( !impl.infoForFile( trashId, fileId, trashInfo ) )
- return false;
-
- KFileMetaInfoGroup group = appendGroup(info, "General");
- appendItem(group, "OriginalPath", trashInfo.origPath);
- appendItem(group, "DateOfDeletion", trashInfo.deletionDate);
-
- return true;
-}
-
-#include "kfile_trash.moc"
diff --git a/kioslave/trash/kfile-plugin/kfile_trash.desktop b/kioslave/trash/kfile-plugin/kfile_trash.desktop
deleted file mode 100644
index 4b58a68dc..000000000
--- a/kioslave/trash/kfile-plugin/kfile_trash.desktop
+++ /dev/null
@@ -1,79 +0,0 @@
-[Desktop Entry]
-Type=Service
-Name=Trash File Info
-Name[af]=Asblik inligting
-Name[ar]=معلومات مفل المهملات
-Name[az]=Zibil Faylı Məlumatı
-Name[be]=Інфармацыя аб файле сметніцы
-Name[bg]=Информация за кошчето
-Name[bn]=আবর্জনা ফাইল তথ্য
-Name[br]=Titouroù diwar-benn ar pod-lastez
-Name[bs]=Smeće informacije o datoteci
-Name[ca]=Informació del fitxer paperera
-Name[cs]=Info o koši
-Name[csb]=Wëdowiédzô ò lopkù w kòszu
-Name[da]=Fil-info om affald
-Name[de]=Mülleimer-Information
-Name[el]=Πληροφορίες για τον Κάδο Απορριμμάτων
-Name[en_GB]=Wastebin File Info
-Name[eo]=Rubuja informo
-Name[es]=Información de la papelera
-Name[et]=Prügikasti failiinfo
-Name[eu]=Zakarontziaren infoa
-Name[fa]=اطلاعات پروندۀ زباله
-Name[fi]=Roskakorin tiedot
-Name[fr]=Info Fichier Corbeille
-Name[fy]=Jiskefet ynformaasje
-Name[gl]=Información do Lixo
-Name[he]=מידע אודות קובץ אשפה
-Name[hi]=रद्दी फ़ाइल जानकारी
-Name[hr]=Podaci o otpadu
-Name[hu]=Szemétkosár-jellemzők
-Name[is]=Upplýsingar um ruslaskrá
-Name[it]=Informazioni file del cestino
-Name[ja]=ごみ箱情報
-Name[ka]=ურნაში არსებული ფაილის შესახებ ცნობი
-Name[kk]=Өшірілген файл мәліметі
-Name[km]=ព័ត៌មាន​ឯកសារ​សំរាម
-Name[ko]=휴지통 파일 정보
-Name[lt]=Šiukšlių bylos informacija
-Name[lv]=Atkritumu faila informācija
-Name[mk]=Инфо. за датотека од Корпата
-Name[ms]=Maklumat Fail Sampah
-Name[mt]=Skart
-Name[nb]=Søppelfilinformasjon
-Name[nds]=Affalltünn-Informatschonen
-Name[ne]=रद्दीटोकरी फाइल सूचना
-Name[nl]=Prullenbakinformatie
-Name[nn]=Søppelfilinformasjon
-Name[pa]=ਰੱਦੀ ਫਾਇਲ ਜਾਣਕਾਰੀ
-Name[pl]=Informacja o pliku w koszu
-Name[pt]=Informações de Ficheiros no Lixo
-Name[pt_BR]=Informações sobre o Arquivo de Lixo
-Name[ro]=Informații fișier șters
-Name[ru]=Сведения о файле в корзине
-Name[rw]=Ibisobanuro byo Guta Idosiye
-Name[se]=Ruskalihttedieđut
-Name[sk]=Informácie o koši
-Name[sl]=Informacije o Smeteh
-Name[sr]=Информације о фајлу у смећу
-Name[sr@Latn]=Informacije o fajlu u smeću
-Name[sv]=Information om filer i papperskorgen
-Name[ta]=குப்பைத்தொட்டி கோப்பு தகவல்
-Name[te]=చెత్త బుట్ట దస్త్ర వివరాలు
-Name[tg]=Файли ахборотии ахлотдон
-Name[th]=ข้อมูลแฟ้มถังขยะ
-Name[tr]=Çöp Dosya Bilgisi
-Name[tt]=Taşlanğan Birem Turında
-Name[uk]=Інформація про файл у смітнику
-Name[uz]=Chiqindilar qutisi haqida maʼlumot
-Name[uz@cyrillic]=Чиқиндилар қутиси ҳақида маълумот
-Name[vi]=Thông tin về Tập tin trong Thùng rác
-Name[wa]=Informåcion sol fitchî batch
-Name[zh_CN]=回收站文件信息
-Name[zh_TW]=資源回收桶檔案資訊
-ServiceTypes=KFilePlugin
-X-TDE-Library=kfile_trash
-X-TDE-Protocol=trash
-PreferredGroups=General
-PreferredItems=OriginalPath,DateOfDeletion
diff --git a/kioslave/trash/kfile-plugin/kfile_trash.h b/kioslave/trash/kfile-plugin/kfile_trash.h
deleted file mode 100644
index 33f83e911..000000000
--- a/kioslave/trash/kfile-plugin/kfile_trash.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* This file is part of the KDE project
- * Copyright (C) 2004 David Faure <faure@kde.org>
- * Based on kfile_txt.h by Nadeem Hasan <nhasan@kde.org>
- *
- * 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 version 2.
- *
- * 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; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef __KFILE_TRASH_H_
-#define __KFILE_TRASH_H_
-
-#include <kfilemetainfo.h>
-#include "../trashimpl.h"
-
-class TQStringList;
-
-class KTrashPlugin: public KFilePlugin
-{
- Q_OBJECT
-
-public:
- KTrashPlugin(TQObject *parent, const char *name, const TQStringList& args);
- virtual bool readInfo(KFileMetaInfo& info, uint what);
-
-private:
- void makeMimeTypeInfo(const TQString& mimeType);
- TrashImpl impl;
-};
-
-#endif
diff --git a/kioslave/trash/kfile-plugin/kfile_trash_system.desktop b/kioslave/trash/kfile-plugin/kfile_trash_system.desktop
deleted file mode 100644
index 3e3c8fe47..000000000
--- a/kioslave/trash/kfile-plugin/kfile_trash_system.desktop
+++ /dev/null
@@ -1,79 +0,0 @@
-[Desktop Entry]
-Type=Service
-Name=Trash File Info
-Name[af]=Asblik inligting
-Name[ar]=معلومات مفل المهملات
-Name[az]=Zibil Faylı Məlumatı
-Name[be]=Інфармацыя аб файле сметніцы
-Name[bg]=Информация за кошчето
-Name[bn]=আবর্জনা ফাইল তথ্য
-Name[br]=Titouroù diwar-benn ar pod-lastez
-Name[bs]=Smeće informacije o datoteci
-Name[ca]=Informació del fitxer paperera
-Name[cs]=Info o koši
-Name[csb]=Wëdowiédzô ò lopkù w kòszu
-Name[da]=Fil-info om affald
-Name[de]=Mülleimer-Information
-Name[el]=Πληροφορίες για τον Κάδο Απορριμμάτων
-Name[en_GB]=Wastebin File Info
-Name[eo]=Rubuja informo
-Name[es]=Información de la papelera
-Name[et]=Prügikasti failiinfo
-Name[eu]=Zakarontziaren infoa
-Name[fa]=اطلاعات پروندۀ زباله
-Name[fi]=Roskakorin tiedot
-Name[fr]=Info Fichier Corbeille
-Name[fy]=Jiskefet ynformaasje
-Name[gl]=Información do Lixo
-Name[he]=מידע אודות קובץ אשפה
-Name[hi]=रद्दी फ़ाइल जानकारी
-Name[hr]=Podaci o otpadu
-Name[hu]=Szemétkosár-jellemzők
-Name[is]=Upplýsingar um ruslaskrá
-Name[it]=Informazioni file del cestino
-Name[ja]=ごみ箱情報
-Name[ka]=ურნაში არსებული ფაილის შესახებ ცნობი
-Name[kk]=Өшірілген файл мәліметі
-Name[km]=ព័ត៌មាន​ឯកសារ​សំរាម
-Name[ko]=휴지통 파일 정보
-Name[lt]=Šiukšlių bylos informacija
-Name[lv]=Atkritumu faila informācija
-Name[mk]=Инфо. за датотека од Корпата
-Name[ms]=Maklumat Fail Sampah
-Name[mt]=Skart
-Name[nb]=Søppelfilinformasjon
-Name[nds]=Affalltünn-Informatschonen
-Name[ne]=रद्दीटोकरी फाइल सूचना
-Name[nl]=Prullenbakinformatie
-Name[nn]=Søppelfilinformasjon
-Name[pa]=ਰੱਦੀ ਫਾਇਲ ਜਾਣਕਾਰੀ
-Name[pl]=Informacja o pliku w koszu
-Name[pt]=Informações de Ficheiros no Lixo
-Name[pt_BR]=Informações sobre o Arquivo de Lixo
-Name[ro]=Informații fișier șters
-Name[ru]=Сведения о файле в корзине
-Name[rw]=Ibisobanuro byo Guta Idosiye
-Name[se]=Ruskalihttedieđut
-Name[sk]=Informácie o koši
-Name[sl]=Informacije o Smeteh
-Name[sr]=Информације о фајлу у смећу
-Name[sr@Latn]=Informacije o fajlu u smeću
-Name[sv]=Information om filer i papperskorgen
-Name[ta]=குப்பைத்தொட்டி கோப்பு தகவல்
-Name[te]=చెత్త బుట్ట దస్త్ర వివరాలు
-Name[tg]=Файли ахборотии ахлотдон
-Name[th]=ข้อมูลแฟ้มถังขยะ
-Name[tr]=Çöp Dosya Bilgisi
-Name[tt]=Taşlanğan Birem Turında
-Name[uk]=Інформація про файл у смітнику
-Name[uz]=Chiqindilar qutisi haqida maʼlumot
-Name[uz@cyrillic]=Чиқиндилар қутиси ҳақида маълумот
-Name[vi]=Thông tin về Tập tin trong Thùng rác
-Name[wa]=Informåcion sol fitchî batch
-Name[zh_CN]=回收站文件信息
-Name[zh_TW]=資源回收桶檔案資訊
-ServiceTypes=KFilePlugin
-X-TDE-Library=kfile_trash
-X-TDE-Protocol=system
-PreferredGroups=General
-PreferredItems=OriginalPath,DateOfDeletion