]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/editbookmarkdialog.h
Dolphin is now a KUniqueApplication. A lot of thanks go to Oscar Blumberg, who submit...
[dolphin.git] / src / editbookmarkdialog.h
index e3578a94014e0bd4e0fcff28826863249ba91088..9e18980e0736bf1f42e5bba95d286a9a0773dbad 100644 (file)
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
  ***************************************************************************/
 #ifndef EDITBOOKMARKDIALOG_H
 #define EDITBOOKMARKDIALOG_H
 
 #include <kbookmark.h>
-#include <kdialogbase.h>
+#include <kdialog.h>
 
 class Bookmark;
 class QLineEdit;
 class QPushButton;
 
 /**
- * @brief Allows to edit the icon, URL and name of a bookmark.
+ * @brief Allows to edit the icon, Url and name of a bookmark.
  *
  * The default usage is like this:
  * \code
  * KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add Bookmark"),
  *                                                      i18n("New bookmark"),
- *                                                      KURL(),
+ *                                                      KUrl(),
  *                                                      "bookmark");
  * if (!bookmark.isNull()) {
  *     // ...
  * }
  * \endcode
  */
-class EditBookmarkDialog : public KDialogBase
+class EditBookmarkDialog : public KDialog
 {
     Q_OBJECT
 
@@ -49,23 +49,23 @@ public:
     virtual ~EditBookmarkDialog();
 
     /**
-     * Opens a dialog where the current icon, URL and name of
-     * an URL are editable. The title of the dialog is set to \a title.
+     * Opens a dialog where the current icon, Url and name of
+     * an Url are editable. The title of the dialog is set to \a title.
      * @return A valid bookmark, if the user has pressed OK. Otherwise
      *         a null bookmark is returned (see Bookmark::isNull()).
      */
     static KBookmark getBookmark(const QString& title,
                                  const QString& name,
-                                 const KURL& url,
+                                 const KUrl& url,
                                  const QString& icon);
 
 protected slots:
-    virtual void slotOk();
+    virtual void slotButtonClicked(int button);
 
 protected:
     EditBookmarkDialog(const QString& title,
                        const QString& name,
-                       const KURL& url,
+                       const KUrl& url,
                        const QString& icon);
 
 private slots: