]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/renamedialog.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / renamedialog.h
index d6adb6f95ae15161d7066f1c6a505691aea34946..1eaae2c6180c3f54dc98c5201f09b3706818a62d 100644 (file)
@@ -25,6 +25,8 @@
 #include <kurl.h>
 
 
+class KFileItem;
+class KFileItemList;
 class KLineEdit;
 
 /**
@@ -51,7 +53,7 @@ class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public KDialog
     Q_OBJECT
 
 public:
-    explicit RenameDialog(const KUrl::List& items);
+    explicit RenameDialog(QWidget *parent, const KFileItemList& items);
     virtual ~RenameDialog();
 
     /**
@@ -60,7 +62,7 @@ public:
      * is part of the returned string. If the returned string is empty,
      * then RenameDialog::errorString() should be used to show the reason
      * of having an empty string (e. g. if the # character has
-     * been deleted by the user, although more then one item should be
+     * been deleted by the user, although more than one item should be
      * renamed).
      */
     const QString& newName() const
@@ -79,22 +81,6 @@ public:
 protected slots:
     virtual void slotButtonClicked(int button);
 
-private:
-    /**
-     * Returns the extension string for a filename, which contains all
-     * file extensions. Version numbers like in "cmake-2.4.5" don't count
-     * as file extension. If the version numbers follow after a valid extension, they
-     * are part of the extension string.
-     *
-     * Examples (name -> extension string):
-     * "Image.gif" -> ".gif"
-     * "package.tar.gz" -> ".tar.gz"
-     * "cmake-2.4.5" -> ""
-     * "Image.1.12.gif" -> ".gif"
-     * "Image.tar.1.12.gz" -> ".tar.1.12.gz"
-     */
-    static QString extensionString(const QString& name);
-
 private:
     bool m_renameOneItem;
     KLineEdit* m_lineEdit;