From 7bebf3e547f5bd63e868a24f926daf904c520efb Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 7 Jun 2009 01:55:07 +0200 Subject: start moving things.. --- src/application.cpp | 22 ++++++++++++++++++++++ src/application.h | 9 +++++++++ 2 files changed, 31 insertions(+) diff --git a/src/application.cpp b/src/application.cpp index 94821653..0a6d641d 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -252,3 +252,25 @@ KUrl Application::guessUrlFromString(const QString &string) } return url; } + +void Application::notify(const QString &msg, Rekonq::Notify status) +{ + switch(status) + { + case Rekonq::success: +// hi32-actions-emoticon.png + KPassivePopup::message(); + break; + case Rekonq::error: +// hi32-actions-edit-delete.png + KPassivePopup::message(); + break; + case Rekonq::download: +// kget/pics + KPassivePopup::message(); + break; + default: + kDebug() << "nothing to be notified.."; + break; + } +} \ No newline at end of file diff --git a/src/application.h b/src/application.h index a5658703..acb300ed 100644 --- a/src/application.h +++ b/src/application.h @@ -58,6 +58,13 @@ namespace Rekonq New, ///< open url in new tab and make it current Background ///< open url in new tab in background }; + + enum Notify + { + Success, ///< url successfully (down)loaded + Error, ///< url failed to (down)load + Download ///< downloading url + } } @@ -79,6 +86,8 @@ public: KIcon icon(const KUrl &url) const; + void notify(const QString &msg, Rekonq::Notify status); + static KUrl guessUrlFromString(const QString &url); static HistoryManager *historyManager(); -- cgit v1.2.1