X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fgui%2FMainWindow.h;h=f4d43b1a4af26ef782a28c746985bfdd95156351;hb=d27c2db830de9a65d6a419479ee598cbf3697746;hp=3f546bbcfbc7e45e0b570ef3813aabb5f8ce58dd;hpb=6c325f6d191739f115b2df64b7b83949e355e8d6;p=qtrapids diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index 3f546bb..f4d43b1 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -33,44 +33,45 @@ class PreferencesDialog; /** @author Lassi Väätämöinen */ -class MainWindow : public QMainWindow { - Q_OBJECT - - public: +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: MainWindow(); ~MainWindow(); - - signals: - void itemSelected(bool enabled); - - public slots: - private slots: - void on_openAction_clicked(); - void on_removeAction_clicked(); - void on_quitAction_clicked(); - void on_preferencesAction_clicked(); - void on_aboutAction_clicked(); - void on_aboutQtAction_clicked(); - void on_downloadItemSelectionChanged(); - void on_seedItemSelectionChanged(); - void handleToolBarAction(QAction* action); - void on_torrentFileSelected(const QString& file); - void on_alert(std::auto_ptr al); - - private: - QTabWidget *tabWidget_; - DownloadView *dlView_; - SeedView *seedView_; - PreferencesDialog *preferencesDialog_; - QSettings settings_; - - //std::vector< std::auto_ptr const > torrentHandles_; - - qtrapids::QBittorrentSession btSession_; - - //bool IsNewTorrent(std::auto_ptr handlePtr); +signals: + void itemSelected(bool enabled); + +public slots: +private slots: + void on_openAction_clicked(); + void on_removeAction_clicked(); + void on_quitAction_clicked(); + void on_preferencesAction_clicked(); + void on_aboutAction_clicked(); + void on_aboutQtAction_clicked(); + void on_downloadItemSelectionChanged(); + void on_seedItemSelectionChanged(); + void handleToolBarAction(QAction* action); + void on_torrentFileSelected(const QString& file); + void on_alert(std::auto_ptr al); + +private: + QTabWidget *tabWidget_; + DownloadView *dlView_; + SeedView *seedView_; + PreferencesDialog *preferencesDialog_; + QSettings settings_; + + //std::vector< std::auto_ptr const > torrentHandles_; + + qtrapids::QBittorrentSession btSession_; + + + //bool IsNewTorrent(std::auto_ptr handlePtr); }; #endif