kio: remove unused rename plugin support

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-06-30 02:55:26 +03:00
parent 033ba52d3b
commit 289d0bffcd
7 changed files with 0 additions and 296 deletions

View file

@ -473,7 +473,6 @@ install(
KIO/NetRC
KIO/PreviewJob
KIO/RenameDialog
KIO/RenameDialogPlugin
KIO/Scheduler
KIO/SessionData
KIO/SimpleJob

View file

@ -1 +0,0 @@
#include "../../kio/renamedialogplugin.h"

View file

@ -96,7 +96,6 @@ set(kiocore_STAT_SRCS
kio/predicateproperties.cpp
kio/previewjob.cpp
kio/renamedialog.cpp
kio/renamedialogplugin.cpp
kio/scheduler.cpp
kio/sessiondata.cpp
kio/skipdialog.cpp
@ -249,7 +248,6 @@ install(
kfileplugin.desktop
kscan.desktop
kurifilterplugin.desktop
renamedialogplugin.desktop
kfile/kpropertiesdialogplugin.desktop
kio/kfilewrite.desktop
kio/kfileitemactionplugin.desktop
@ -293,7 +291,6 @@ install(
kio/davjob.h
kio/directorysizejob.h
kio/renamedialog.h
kio/renamedialogplugin.h
kio/skipdialog.h
kio/udsentry.h
kssl/sslui.h

View file

@ -23,7 +23,6 @@
#include <stdio.h>
#include <assert.h>
#include <QtCore/QTimer>
#include <QtCore/QDir>
#include <QtCore/QDateTime>
#include <QtCore/QFileInfo>

View file

@ -1,93 +0,0 @@
/*
* Copyright (C) 2001, 2006 Holger Freyther <freyther@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "kio/renamedialogplugin.h"
using namespace KIO;
class RenameDialogPlugin::FileItem::FileItemPrivate
{
public:
FileItemPrivate( const KUrl& url, const QString& mimeType,
const KIO::filesize_t size, time_t ctime,
time_t mtime )
: m_url( url )
, m_mimeType( mimeType )
, m_fileSize( size )
, m_ctime( ctime )
, m_mtime( mtime )
{}
KUrl m_url;
QString m_mimeType;
KIO::filesize_t m_fileSize;
time_t m_ctime;
time_t m_mtime;
};
/**
* @param url The location of the item
* @param mimeType The actual mimetype of the item
* @param size The size of this item
* @param ctime The changed time as of stat(2)
* @param mtime The modified time as of stat(2)
*/
RenameDialogPlugin::FileItem::FileItem( const KUrl& url, const QString& mimeType,
KIO::filesize_t size, time_t ctime,
time_t mtime )
: d( new FileItemPrivate(url, mimeType, size, ctime, mtime) )
{}
RenameDialogPlugin::FileItem::~FileItem()
{
delete d;
}
KUrl RenameDialogPlugin::FileItem::url() const {
return d->m_url;
}
QString RenameDialogPlugin::FileItem::mimeType() const {
return d->m_mimeType;
}
KIO::filesize_t RenameDialogPlugin::FileItem::fileSize() const {
return d->m_fileSize;
}
time_t RenameDialogPlugin::FileItem::cTime() const {
return d->m_ctime;
}
time_t RenameDialogPlugin::FileItem::mTime() const {
return d->m_mtime;
}
RenameDialogPlugin::RenameDialogPlugin( QDialog* dlg)
: QWidget( dlg )
{}
#include "moc_renamedialogplugin.cpp"

View file

@ -1,100 +0,0 @@
/*
* Copyright (C) 2001, 2006 Holger Freyther <freyther@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef KIO_RENAMEDIALOGPLUGIN_H
#define KIO_RENAMEDIALOGPLUGIN_H
#include <kio/renamedialog.h>
#include <QtGui/QDialog>
#include <sys/types.h>
#include <QtCore/QStringList>
namespace KIO {
/**
* @short Base class for RenameDialog plugins.
*
* Creating your own RenameDialog Plugin allows you to
* have a different representation of data depending
* on the to be copied files.
*/
class KIO_EXPORT RenameDialogPlugin : public QWidget {
Q_OBJECT
public:
/**
* File Representation consisting of the KUrl, MimeType and filesize and
* the times of the last changes.
*/
class KIO_EXPORT FileItem {
public:
FileItem( const KUrl& url, const QString& mimeSrc, KIO::filesize_t, time_t ctime, time_t mtime);
~FileItem();
KUrl url() const;
QString mimeType() const;
KIO::filesize_t fileSize() const;
time_t cTime() const;
time_t mTime() const;
private:
class FileItemPrivate;
FileItemPrivate * const d;
};
/**
* The Rename Dialog will be embedded into a QDialog.
*/
RenameDialogPlugin(QDialog *dialog);
/**
* This function will be invoked by the KIO::RenameDialog to check if you to handle
* the src and destination file.
*
* @param mode The actual mode of the Rename Dialog
* @param srcFile The FileItem representation of the source file
* @param dstFile The FileItem representation of the destination file
*
* @return Return TRUE if you want to handle/display a resolution
* @see handle
*/
virtual bool wantToHandle( RenameDialog_Mode mode, const FileItem& srcFile, const FileItem& dstFile) const = 0;
/**
* Present the data of @param srcFile and @param dstFile the way you want to.
* You will be embedded into the parentWidget().
*
* @param mode The actual mode of the Rename Dialog
* @param srcFile The FileItem of the source
* @param dstFile The FileItem of the destination
*/
virtual void handle( KIO::RenameDialog_Mode mode, const FileItem& srcFile, const FileItem& dstFile ) = 0;
};
}
#endif

View file

@ -1,97 +0,0 @@
[Desktop Entry]
Type=ServiceType
X-KDE-ServiceType=RenameDialog/Plugin
Comment=Plugin for the Rename Dialog
Comment[af]=Inplak vir die herbenaamdialoog
Comment[ar]=ملحق لمربع حوار إعادة التسمية
Comment[as]= -
Comment[ast]=Complementu pal diálogu de renomáu
Comment[be]=Дадатак да дыялогу змены назвы
Comment[be@latin]=Plugin dla akna źmieny nazvy
Comment[bg]=Приставка за диалога за преименуване
Comment[bn]=ি
Comment[bn_IN]= ি -
Comment[bs]=Priključak za dijalog preimenovanja
Comment[ca]=Connector per al diàleg de reanomenar
Comment[ca@valencia]=Connector per al diàleg de reanomenar
Comment[cs]=Modul pro přejmenovávací dialog
Comment[csb]=Wtëkôcz dialogòwegò òkna Zmiana miona
Comment[cy]=Ategyn am yr Ymgom Ail-enwi
Comment[da]=Plugin til omdøbningsdialog
Comment[de]=Erweiterung für den Dialog Umbenennen
Comment[el]=Πρόσθετο για το διάλογο μετονομασίας
Comment[en_GB]=Plugin for the Rename Dialogue
Comment[eo]=Kromprogramo por la renoma dialogo
Comment[es]=Complemento para la ventana de cambio de nombre
Comment[et]=Ümbernimetamise dialoogi plugin
Comment[eu]=Berrizendatze elkarrizketa-koadroen plugin-a
Comment[fa]=وصله برای محاوره تغییر نام
Comment[fi]=Liitännäinen nimenmuuttamisikkunalle
Comment[fr]=Module externe pour la boîte de dialogue de renommage
Comment[fy]=Plugin foar it 'Omneame'-dialooch
Comment[ga]=Breiseán le haghaidh na dialóige athainmnithe
Comment[gl]=Complemento para o diálogo de mudanzas de nomes
Comment[gu]=
Comment[he]=תוסף לדו־שיח שינוי שם
Comment[hi]= ि
Comment[hne]=
Comment[hr]=Priključak za dijalog preimenovanja
Comment[hsb]=Zašćěpka za přemjenowanski dialog
Comment[hu]=Bővítőmodul az átnevezési párbeszédablakhoz
Comment[hy]=Հարմարանք Rename երկխոսությանը
Comment[ia]=Plugin pro le dialogo de re-denomination
Comment[id]=Plugin untuk Dialog Ganti Nama
Comment[is]=Íforrit fyrir 'endurnefna' gluggann
Comment[it]=Estensione per la finestra di dialogo «Rinomina»
Comment[ja]=
Comment[kk]=Атауын өзгерту диалогтың модулі
Comment[km]=
Comment[kn]=ಿಿ ಿಿ (ಿ)
Comment[ko]=
Comment[ku]=Pêvek ji bo Gotûbêja Nû ve Nav Bike
Comment[lb]=Plugin fir den Ëmbenennen-Dialog
Comment[lt]=Priedas pervadinimo dialogui
Comment[lv]=Spraudnis pārdēvēšanas dialogam
Comment[mai]= '
Comment[mk]=Приклучок за дијалогот за преименување
Comment[ml]= ി
Comment[mr]= ि
Comment[ms]=Plug masuk untuk namakan semula Dialog
Comment[nb]=Programtillegg for omnavningsdialogen
Comment[nds]=Moduul för den Ümnööm-Dialoog
Comment[ne]=: ि
Comment[nl]=Plugin voor de 'Hernoemen'-dialoog
Comment[nn]=Tillegg til dialogvindauget «Endra namn»
Comment[or]=
Comment[pa]=-
Comment[pl]=Wtyczka do okna dialogowego Zmiana nazwy
Comment[ps]=د بيانومولو کړکۍ لپاره لګون
Comment[pt]='Plugin' para a Janela de Mudança do Nome
Comment[pt_BR]=Plugin para a janela renomear
Comment[ro]=Modul pentru dialogul de redenumire
Comment[ru]=Расширение диалога переименования
Comment[se]=Lassemoduvla nammarievdadanláseža várás
Comment[sk]=Modul pre dialóg premenovania
Comment[sl]=Vstavek za pogovorno okno za preimenovanje
Comment[sr]=Прикључак за дијалог преименовања
Comment[sr@ijekavian]=Прикључак за дијалог преименовања
Comment[sr@ijekavianlatin]=Priključak za dijalog preimenovanja
Comment[sr@latin]=Priključak za dijalog preimenovanja
Comment[sv]=Insticksprogram för Byt namn-dialogrutan
Comment[ta]=ி ி
Comment[te]= ి
Comment[tg]=Васлкунак барои номивази диалог
Comment[th]=
Comment[tr]=Yeniden İsimlendir Penceresi İçin Eklenti
Comment[tt]=Исем куша торган диалог өстәмәсе
Comment[ug]=ئات ئۆزگەرتىش سۆزلەشكۈ ئۈچۈن قىستۇرما
Comment[uk]=Додаток для створення діалогового вікна перейменування
Comment[uz]=Nomini oʻzgartirish dialogi uchun plagin
Comment[uz@cyrillic]=Номини ўзгартириш диалоги учун плагин
Comment[vi]=Phn b sung cho Hp thoi đi tên
Comment[wa]=Tchôke-divins pol purnea di rlomaedje
Comment[xh]=Iplagi yangaphakathi Yencoko yababini Yokunika igama elitsha
Comment[x-test]=xxPlugin for the Rename Dialogxx
Comment[zh_CN]=
Comment[zh_HK]=
Comment[zh_TW]=