summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-09 11:15:10 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-09 11:15:10 +0100
commit57bc503662183f0d2b89ddc419548e0938c17e8f (patch)
tree24917351016a6b90e5d48028aae16a03c8ad28d3 /src/rekonqpage/newtabpage.h
parentFIX (diff)
downloadrekonq-57bc503662183f0d2b89ddc419548e0938c17e8f.tar.xz
Fix NewTabPage API && comments
Diffstat (limited to 'src/rekonqpage/newtabpage.h')
-rw-r--r--src/rekonqpage/newtabpage.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/rekonqpage/newtabpage.h b/src/rekonqpage/newtabpage.h
index 9d41946e..38d82684 100644
--- a/src/rekonqpage/newtabpage.h
+++ b/src/rekonqpage/newtabpage.h
@@ -44,18 +44,17 @@ class WebPage;
class NewTabPage : public QObject
{
Q_OBJECT
+
public:
NewTabPage(QWebFrame *frame);
~NewTabPage();
/**
- * This is the unique NewTabPage public method. It takes an
- * about: url and loads the corresponding part of the
- * new tab page
+ * This method takes an about: url and loads
+ * the corresponding part of the new tab page
*/
void generate(KUrl url = KUrl("about:home"));
-public slots:
void snapFinished(int index, KUrl url, QString title);
void removePreview(int index);
@@ -63,6 +62,10 @@ protected: // these are the function to build the new tab page
void browsingMenu(const KUrl &currentUrl);
void favoritesPage();
+ void historyPage();
+ void bookmarksPage();
+ void closedTabsPage();
+
QWebElement emptyPreview(int index);
QWebElement loadingPreview(int index, KUrl url);
QWebElement validPreview(int index, KUrl url, QString title);
@@ -73,12 +76,7 @@ protected: // these are the function to build the new tab page
void hideControls(QWebElement e);
void showControls(QWebElement e);
void setupPreview(QWebElement e, int index);
-
-
- void historyPage();
- void bookmarksPage();
- void closedTabsPage();
-
+
private:
void createBookItem(const KBookmark &bookmark, QWebElement parent);