X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.h;h=5de2120ed3ef8bc8b0295b35be6846c42cf8aa42;hb=549e8d8b51f631005863aa7f4f3cb2683a901669;hp=dc75edfd9c9cd1551cf63bd597f7bce8548dda28;hpb=49c54409184e0c72b8ca87f9f3f7331681d95391;p=dorian diff --git a/mainwindow.h b/mainwindow.h index dc75edf..5de2120 100755 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,7 +1,8 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include +#include +#include #include "adopterwindow.h" @@ -12,6 +13,7 @@ class BookView; class Book; class FullScreenWindow; class Progress; +class ProgressDialog; class TranslucentButton; class MainWindow: public AdopterWindow @@ -20,7 +22,7 @@ class MainWindow: public AdopterWindow public: MainWindow(QWidget *parent = 0); - ~MainWindow(); + void initialize(); public slots: void showLibrary(); @@ -34,13 +36,19 @@ public slots: void onSettingsChanged(const QString &key); void onPartLoadStart(); void onPartLoadEnd(int index); - void onAddBookmark(); + void onAddBookmark(const QString ¬e); void onGoToBookmark(int index); void showChapters(); void onGoToChapter(int index); void about(); void goToNextPage(); void goToPreviousPage(); + void onBeginUpgrade(int total); + void onUpgrading(const QString &book); + void onEndUpgrade(); + void onBeginLoad(int total); + void onLoading(const QString &book); + void onEndLoad(); protected: void closeEvent(QCloseEvent *event); @@ -67,6 +75,7 @@ private: Progress *progress; TranslucentButton *previousButton; TranslucentButton *nextButton; + ProgressDialog *libraryProgress; }; #endif // MAINWINDOW_H