X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fclient%2FMainWindow.h;h=9b55d5b8eacc0fd26053888c35fe311b01d4f324;hb=4fda70ff265b1a5a1f37597f57253272a2b22fbf;hp=0cef789d43c62db2af8653804051611037916527;hpb=2acb66424c20ea4ddd481b37e4b4dcee3acde632;p=qtrapids diff --git a/src/client/MainWindow.h b/src/client/MainWindow.h index 0cef789..9b55d5b 100644 --- a/src/client/MainWindow.h +++ b/src/client/MainWindow.h @@ -39,57 +39,56 @@ class SeedView; */ class MainWindow : public QMainWindow { - Q_OBJECT; + Q_OBJECT; public: - MainWindow(); - ~MainWindow(); + MainWindow(); + ~MainWindow(); - void connectToServer() - { - qDBusRegisterMetaType(); - qDBusRegisterMetaType(); + void connectToServer() { + qDBusRegisterMetaType(); + qDBusRegisterMetaType(); - connect(&server_ - , SIGNAL(alert(qtrapids::TorrentState - , qtrapids::ParamsMap_t)) - , this - , SLOT(alert(qtrapids::TorrentState - , qtrapids::ParamsMap_t))); - server_.getState(); - } + connect(&server_ + , SIGNAL(alert(qtrapids::TorrentState + , qtrapids::ParamsMap_t)) + , this + , SLOT(alert(qtrapids::TorrentState + , qtrapids::ParamsMap_t))); + server_.getState(); + } signals: - void itemSelected(bool enabled); + 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 alert(qtrapids::TorrentState, qtrapids::ParamsMap_t); + 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 alert(qtrapids::TorrentState, qtrapids::ParamsMap_t); private: - QTabWidget *tabWidget_; - DownloadView *dlView_; - SeedView *seedView_; - PreferencesDialog *preferencesDialog_; - QSettings settings_; + QTabWidget *tabWidget_; + DownloadView *dlView_; + SeedView *seedView_; + PreferencesDialog *preferencesDialog_; + QSettings settings_; - //std::vector< std::auto_ptr const > torrentHandles_; + //std::vector< std::auto_ptr const > torrentHandles_; - QtRapidsServer server_; + QtRapidsServer server_; - //bool IsNewTorrent(std::auto_ptr handlePtr); + //bool IsNewTorrent(std::auto_ptr handlePtr); }; } // namespace qtrapids