kget
MainWindow Class Reference
#include <mainwindow.h>

Detailed Description
The main window of KGet.Can be collapsed or expanded.
Definition at line 31 of file mainwindow.h.
Public Slots | |
| void | slotQuit () |
Public Member Functions | |
| MainWindow (bool showMainwindow=true, bool startWithoutAnimation=false, QWidget *parent=0) | |
| ~MainWindow () | |
| virtual void | addTransfers (const QString &src, const QString &destDir=QString(), bool start=false) |
| virtual bool | dropTargetVisible () const |
| virtual void | setDropTargetVisible (bool setVisible) |
| virtual void | setOfflineMode (bool online) |
| virtual bool | offlineMode () const |
| virtual QVariantMap | transfers () const |
| virtual int | transfersSpeed () const |
| virtual void | setSystemTrayDownloading (bool running) |
| KSystemTrayIcon * | systemTray () const |
Protected Member Functions | |
| virtual void | closeEvent (QCloseEvent *) |
| virtual void | dragEnterEvent (QDragEnterEvent *) |
| virtual void | dropEvent (QDropEvent *) |
| virtual QSize | sizeHint () const |
Constructor & Destructor Documentation
| MainWindow::MainWindow | ( | bool | showMainwindow = true, |
|
| bool | startWithoutAnimation = false, |
|||
| QWidget * | parent = 0 | |||
| ) | [explicit] |
Definition at line 48 of file mainwindow.cpp.
| MainWindow::~MainWindow | ( | ) |
Definition at line 84 of file mainwindow.cpp.
Member Function Documentation
| bool MainWindow::dropTargetVisible | ( | ) | const [virtual] |
Definition at line 651 of file mainwindow.cpp.
| void MainWindow::setDropTargetVisible | ( | bool | setVisible | ) | [virtual] |
Definition at line 656 of file mainwindow.cpp.
| void MainWindow::setOfflineMode | ( | bool | online | ) | [virtual] |
Definition at line 662 of file mainwindow.cpp.
| bool MainWindow::offlineMode | ( | ) | const [virtual] |
Definition at line 667 of file mainwindow.cpp.
| QVariantMap MainWindow::transfers | ( | ) | const [virtual] |
Definition at line 672 of file mainwindow.cpp.
| int MainWindow::transfersSpeed | ( | ) | const [virtual] |
Definition at line 677 of file mainwindow.cpp.
| void MainWindow::setSystemTrayDownloading | ( | bool | running | ) | [virtual] |
Definition at line 582 of file mainwindow.cpp.
| KSystemTrayIcon* MainWindow::systemTray | ( | ) | const [inline] |
Definition at line 49 of file mainwindow.h.
| void MainWindow::slotQuit | ( | ) | [slot] |
Definition at line 319 of file mainwindow.cpp.
| void MainWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
| void MainWindow::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 602 of file mainwindow.cpp.
| void MainWindow::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
if (list.count() == 1 && list.first().url().endsWith(".kgt")) { int msgBoxResult = KMessageBox::questionYesNoCancel(this, "The dropped file is a KGet-Transferlist", "KGet", KGuiItem(i18n("&Download"), KIcon("document-save")), KGuiItem(i18n("&Load transferlist"), KIcon("list-add")), KStandardGuiItem::cancel());
if (msgBoxResult == 3) //Download NewTransferDialog::showNewTransferDialog(list.first().url()); if (msgBoxResult == 4) //Load KGet::load(list.first().url()); } else {
Definition at line 608 of file mainwindow.cpp.
| QSize MainWindow::sizeHint | ( | ) | const [protected, virtual] |
Definition at line 99 of file mainwindow.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference