diff --git a/includes/CMakeLists.txt b/includes/CMakeLists.txt index 55a2bf00..9902b6e7 100644 --- a/includes/CMakeLists.txt +++ b/includes/CMakeLists.txt @@ -473,7 +473,6 @@ install( KIO/NetRC KIO/PreviewJob KIO/RenameDialog - KIO/RenameDialogPlugin KIO/Scheduler KIO/SessionData KIO/SimpleJob diff --git a/includes/KIO/RenameDialogPlugin b/includes/KIO/RenameDialogPlugin deleted file mode 100644 index ea04e3e9..00000000 --- a/includes/KIO/RenameDialogPlugin +++ /dev/null @@ -1 +0,0 @@ -#include "../../kio/renamedialogplugin.h" diff --git a/kio/CMakeLists.txt b/kio/CMakeLists.txt index 40e62d1e..dc3d7ae6 100644 --- a/kio/CMakeLists.txt +++ b/kio/CMakeLists.txt @@ -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 diff --git a/kio/kio/renamedialog.cpp b/kio/kio/renamedialog.cpp index 773452f2..c954da24 100644 --- a/kio/kio/renamedialog.cpp +++ b/kio/kio/renamedialog.cpp @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/kio/kio/renamedialogplugin.cpp b/kio/kio/renamedialogplugin.cpp deleted file mode 100644 index a1b86404..00000000 --- a/kio/kio/renamedialogplugin.cpp +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2001, 2006 Holger Freyther - * - * 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" diff --git a/kio/kio/renamedialogplugin.h b/kio/kio/renamedialogplugin.h deleted file mode 100644 index 97da6417..00000000 --- a/kio/kio/renamedialogplugin.h +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2001, 2006 Holger Freyther - * - * 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 -#include -#include -#include - - -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 - diff --git a/kio/renamedialogplugin.desktop b/kio/renamedialogplugin.desktop deleted file mode 100644 index 0e0fe8fd..00000000 --- a/kio/renamedialogplugin.desktop +++ /dev/null @@ -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]=Phần bổ sung cho Hộp thoại đổ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]=更名對話盒的外掛程式