kget
KGet Class Reference
#include <kget.h>
List of all members.
Detailed Description
Definition at line 58 of file kget.h.
Member Function Documentation
This is our KGet class.
This is where the user's transfers and searches are stored and organized. Use this class from the views to add or remove transfers or searches In order to organize the transfers inside categories we have a TransferGroup class. By definition, a transfer must always belong to a TransferGroup. If we don't want it to be displayed by the gui inside a specific group, we will put it in the group named "Not grouped" (better name?).
Definition at line 54 of file kget.cpp.
Adds a new observer of the KGet.
See observer.h for more info about it.
- Parameters:
-
| observer | The new observer |
Definition at line 65 of file kget.cpp.
Removes an observer of the KGet.
See observer.h for more info about it.
- Parameters:
-
| observer | The observer to remove |
Definition at line 83 of file kget.cpp.
| bool KGet::addGroup |
( |
const QString & |
groupName |
) |
[static] |
Adds a new group to the KGet.
- Parameters:
-
| groupName | The name of the new group |
- Returns:
- true if the group has been successully added, otherwise it returns false, probably because a group with that named already exists
Definition at line 88 of file kget.cpp.
| void KGet::delGroup |
( |
const QString & |
groupName |
) |
[static] |
Removes a group from the KGet.
- Parameters:
-
| groupName | The name of the group to be deleted |
Definition at line 105 of file kget.cpp.
| void KGet::renameGroup |
( |
const QString & |
oldName, |
|
|
const QString & |
newName | |
|
) |
| | [static] |
Changes the name of the group.
- Parameters:
-
| oldName | the name of the group to be changed |
| newName | the new name of the group |
Definition at line 117 of file kget.cpp.
- Returns:
- the name of the available transfers groups
Definition at line 127 of file kget.cpp.
Adds a new transfer to the KGet.
- Parameters:
-
| srcUrl | The url to be downloaded |
| destDir | The destination directory. If empty we show a dialog where the user can choose it. |
| groupName | The name of the group the new transfer will belong to |
| start | Specifies if the newly added transfers should be started. If the group queue is already in a running state, this flag does nothing |
Definition at line 138 of file kget.cpp.
Adds a new transfer to the KGet.
- Parameters:
-
| e | The transfer's dom element |
| groupName | The name of the group the new transfer will belong to |
Definition at line 187 of file kget.cpp.
| void KGet::addTransfer |
( |
KUrl::List |
srcUrls, |
|
|
QString |
destDir = QString(), |
|
|
const QString & |
groupName = QString(), |
|
|
bool |
start = false | |
|
) |
| | [static] |
Adds new transfers to the KGet.
- Parameters:
-
| srcUrls | The urls to be downloaded |
| destDir | The destination directory. If empty we show a dialog where the user can choose it. |
| groupName | The name of the group the new transfer will belong to |
| start | Specifies if the newly added transfers should be started. If the group queue is already in a running state, this flag does nothing |
Definition at line 205 of file kget.cpp.
Removes a transfer from the KGet.
- Parameters:
-
| transfer | The transfer to be removed |
Definition at line 263 of file kget.cpp.
Moves a transfer to a new group.
- Parameters:
-
| transfer | The transfer to be moved |
| groupName | The name of the new transfer's group |
Definition at line 287 of file kget.cpp.
- Returns:
- the list of selected transfers
Definition at line 293 of file kget.cpp.
- Returns:
- the list of selected groups
Definition at line 330 of file kget.cpp.
Imports the transfers and groups included in the provided xml file.
- Parameters:
-
| filename | the file name to |
Definition at line 355 of file kget.cpp.
Exports all the transfers and groups to the given file.
- Parameters:
-
Definition at line 415 of file kget.cpp.
- Returns:
- The factory of a given transfer
- Parameters:
-
| transfer | the transfer about which we want to have the factory |
Definition at line 457 of file kget.cpp.
| KActionCollection * KGet::actionCollection |
( |
|
) |
[static] |
- Returns:
- a pointer to the KActionCollection objects
Definition at line 462 of file kget.cpp.
| void KGet::setSchedulerRunning |
( |
bool |
running = true |
) |
[static] |
if running == true starts the scheduler if running == false stops the scheduler
Definition at line 467 of file kget.cpp.
| bool KGet::schedulerRunning |
( |
|
) |
[static] |
Returns true if the scheduler has running jobs.
Definition at line 478 of file kget.cpp.
| void KGet::setPluginsSettingsWidget |
( |
KTabWidget * |
widget |
) |
[static] |
Adds a Settings tab for every plugins that needs one to the KTabWidget.
Definition at line 483 of file kget.cpp.
Gets all transfers which are running.
Definition at line 502 of file kget.cpp.
| void KGet::checkSystemTray |
( |
|
) |
[static] |
Run this function for enabling the systemTray (will be automatically done, if there is download running).
Definition at line 514 of file kget.cpp.
Friends And Related Function Documentation
The documentation for this class was generated from the following files: