• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Inheritance graph
[legend]

List of all members.


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

void MainWindow::addTransfers ( const QString &  src,
const QString &  destDir = QString(),
bool  start = false 
) [virtual]

DBUS interface.

Definition at line 645 of file mainwindow.cpp.

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]

widget events

Definition at line 591 of file mainwindow.cpp.

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:
  • mainwindow.h
  • mainwindow.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal