kio
UIServer Class Reference
It's purpose is to show progress of IO operations. More...
#include <uiserver.h>

Public Slots | |
| void | slotConfigure () |
| void | slotRemoveSystemTrayIcon () |
Static Public Member Functions | |
| static UIServer * | createInstance () |
Protected Slots | |
| void | slotApplyConfig () |
| void | slotCancelCurrent () |
| void | slotJobCanceled (ProgressItem *) |
| void | slotQuit () |
| void | slotSelection () |
| void | slotShowContextMenu (KListView *, QListViewItem *item, const QPoint &pos) |
| void | slotToggleDefaultProgress (QListViewItem *) |
| void | slotUpdate () |
Protected Member Functions | |
| void | applySettings () |
| ProgressItem * | findItem (int id) |
| virtual bool | queryClose () |
| void | readSettings () |
| virtual void | resizeEvent (QResizeEvent *e) |
| void | setItemVisible (ProgressItem *item, bool visible) |
| void | writeSettings () |
Protected Attributes | |
| ListProgress * | listProgress |
| QString | properties |
| KToolBar::BarPosition | toolbarPos |
| QTimer * | updateTimer |
Detailed Description
It's purpose is to show progress of IO operations.There is only one instance of this window for all jobs.
All IO operations ( jobs ) are displayed in this window, one line per operation. User can cancel operations with Cancel button on toolbar.
Double clicking an item in the list opens a small download window ( DefaultProgress ).
Graphical server for progress information with an optional all-in-one progress window.
For internal use only.
Definition at line 217 of file uiserver.h.
Member Function Documentation
| void UIServer::applySettings | ( | ) | [protected] |
Definition at line 651 of file uiserver.cpp.
| void UIServer::canResume | ( | int | id, | |
| unsigned long | offset | |||
| ) |
Definition at line 926 of file uiserver.cpp.
| void UIServer::canResume64 | ( | int | id, | |
| KIO::filesize_t | offset | |||
| ) |
Definition at line 929 of file uiserver.cpp.
| void UIServer::copying | ( | int | id, | |
| KURL | from, | |||
| KURL | to | |||
| ) |
Definition at line 939 of file uiserver.cpp.
| UIServer * UIServer::createInstance | ( | ) | [static] |
Definition at line 1371 of file uiserver.cpp.
| void UIServer::creatingDir | ( | int | id, | |
| KURL | dir | |||
| ) |
Definition at line 979 of file uiserver.cpp.
| void UIServer::deleting | ( | int | id, | |
| KURL | url | |||
| ) |
Definition at line 959 of file uiserver.cpp.
| ProgressItem * UIServer::findItem | ( | int | id | ) | [protected] |
Definition at line 776 of file uiserver.cpp.
| void UIServer::infoMessage | ( | int | id, | |
| const QString & | msg | |||
| ) |
Definition at line 916 of file uiserver.cpp.
| void UIServer::jobFinished | ( | int | id | ) |
Definition at line 815 of file uiserver.cpp.
| int UIServer::messageBox | ( | int | id, | |
| int | type, | |||
| const QString & | text, | |||
| const QString & | caption, | |||
| const QString & | buttonYes, | |||
| const QString & | buttonNo | |||
| ) |
Popup a message box.
- Parameters:
-
id The message identifier. type type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel... This enum is defined in slavebase.h, it currently is: QuestionYesNo = 1, WarningYesNo = 2, WarningContinueCancel = 3, WarningYesNoCancel = 4, Information = 5, SSLMessageBox = 6 text Message string. May contain newlines. caption Message box title. buttonYes The text for the first button. The default is i18n("&Yes"). buttonNo The text for the second button. The default is i18n("&No"). Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused. and for Information, none is used.
- Returns:
- a button code, as defined in KMessageBox, or 0 on communication error.
Definition at line 1167 of file uiserver.cpp.
Definition at line 999 of file uiserver.cpp.
| void UIServer::moving | ( | int | id, | |
| KURL | from, | |||
| KURL | to | |||
| ) |
Definition at line 949 of file uiserver.cpp.
| int UIServer::newJob | ( | QCString | appId, | |
| bool | showProgress | |||
| ) |
Signal a new job.
- Parameters:
-
appId the DCOP application id of the job's parent application
- See also:
- KIO::Observer::newJob
- Parameters:
-
showProgress whether to popup the progress for the job. Usually true, but may be false when we use kio_uiserver for other things, like SSL dialogs.
- Returns:
- the job id
Definition at line 746 of file uiserver.cpp.
| QByteArray UIServer::open_RenameDlg | ( | int | id, | |
| const QString & | caption, | |||
| const QString & | src, | |||
| const QString & | dest, | |||
| int | mode, | |||
| unsigned long | sizeSrc, | |||
| unsigned long | sizeDest, | |||
| unsigned long | ctimeSrc, | |||
| unsigned long | ctimeDest, | |||
| unsigned long | mtimeSrc, | |||
| unsigned long | mtimeDest | |||
| ) |
- Deprecated:
- (it blocks other apps). Use KIO::open_RenameDlg instead. To be removed in KDE 4.0.
Definition at line 1253 of file uiserver.cpp.
| QByteArray UIServer::open_RenameDlg64 | ( | int | id, | |
| const QString & | caption, | |||
| const QString & | src, | |||
| const QString & | dest, | |||
| int | mode, | |||
| KIO::filesize_t | sizeSrc, | |||
| KIO::filesize_t | sizeDest, | |||
| unsigned long | ctimeSrc, | |||
| unsigned long | ctimeDest, | |||
| unsigned long | mtimeSrc, | |||
| unsigned long | mtimeDest | |||
| ) |
- Deprecated:
- (it blocks other apps). Use KIO::open_RenameDlg instead. To be removed in KDE 4.0.
Definition at line 1268 of file uiserver.cpp.
| int UIServer::open_SkipDlg | ( | int | id, | |
| int | multi, | |||
| const QString & | error_text | |||
| ) |
- Deprecated:
- (it blocks other apps). Use KIO::open_SkipDlg instead. To be removed in KDE 4.0.
Definition at line 1300 of file uiserver.cpp.
| QByteArray UIServer::openPassDlg | ( | const KIO::AuthInfo & | info | ) |
- Deprecated:
- (it blocks other apps). Use KIO::PasswordDialog::getNameAndPassword instead. To be removed in KDE 4.0.
Definition at line 1148 of file uiserver.cpp.
| void UIServer::percent | ( | int | id, | |
| unsigned long | ipercent | |||
| ) |
Definition at line 896 of file uiserver.cpp.
| void UIServer::processedDirs | ( | int | id, | |
| unsigned long | dirs | |||
| ) |
Definition at line 886 of file uiserver.cpp.
| void UIServer::processedFiles | ( | int | id, | |
| unsigned long | files | |||
| ) |
Definition at line 876 of file uiserver.cpp.
| void UIServer::processedSize | ( | int | id, | |
| unsigned long | bytes | |||
| ) |
Definition at line 863 of file uiserver.cpp.
| void UIServer::processedSize64 | ( | int | id, | |
| KIO::filesize_t | bytes | |||
| ) |
Definition at line 866 of file uiserver.cpp.
| bool UIServer::queryClose | ( | ) | [protected, virtual] |
Definition at line 1362 of file uiserver.cpp.
| void UIServer::readSettings | ( | ) | [protected] |
Definition at line 1316 of file uiserver.cpp.
| void UIServer::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Definition at line 1356 of file uiserver.cpp.
| void UIServer::setItemVisible | ( | ProgressItem * | item, | |
| bool | visible | |||
| ) | [protected] |
Definition at line 793 of file uiserver.cpp.
| void UIServer::setJobVisible | ( | int | id, | |
| bool | visible | |||
| ) |
Hide or show a job.
Typically, we hide a job while a "skip" or "rename" dialog is being shown for this job. This prevents killing it from the uiserver.
Definition at line 806 of file uiserver.cpp.
| void UIServer::setListMode | ( | bool | list | ) |
Switch to or from list mode - called by the kcontrol module.
Definition at line 1107 of file uiserver.cpp.
| KSSLCertDlgRet UIServer::showSSLCertDialog | ( | const QString & | host, | |
| const QStringList & | certList | |||
| ) |
Definition at line 1223 of file uiserver.cpp.
| KSSLCertDlgRet UIServer::showSSLCertDialog | ( | const QString & | host, | |
| const QStringList & | certList, | |||
| int | mainwindow | |||
| ) |
Definition at line 1228 of file uiserver.cpp.
| void UIServer::showSSLInfoDialog | ( | const QString & | url, | |
| const KIO::MetaData & | data | |||
| ) |
| void UIServer::showSSLInfoDialog | ( | const QString & | url, | |
| const KIO::MetaData & | data, | |||
| int | mainwindow | |||
| ) |
| void UIServer::slotApplyConfig | ( | ) | [protected, slot] |
Definition at line 728 of file uiserver.cpp.
| void UIServer::slotCancelCurrent | ( | ) | [protected, slot] |
Definition at line 1341 of file uiserver.cpp.
| void UIServer::slotConfigure | ( | ) | [slot] |
Definition at line 706 of file uiserver.cpp.
| void UIServer::slotJobCanceled | ( | ProgressItem * | item | ) | [protected, slot] |
Definition at line 1027 of file uiserver.cpp.
| void UIServer::slotQuit | ( | ) | [protected, slot] |
Definition at line 1038 of file uiserver.cpp.
| void UIServer::slotRemoveSystemTrayIcon | ( | ) | [slot] |
Definition at line 699 of file uiserver.cpp.
| void UIServer::slotSelection | ( | ) | [protected, slot] |
Definition at line 1134 of file uiserver.cpp.
| void UIServer::slotShowContextMenu | ( | KListView * | , | |
| QListViewItem * | item, | |||
| const QPoint & | pos | |||
| ) | [protected, slot] |
Definition at line 674 of file uiserver.cpp.
| void UIServer::slotToggleDefaultProgress | ( | QListViewItem * | item | ) | [protected, slot] |
Definition at line 1129 of file uiserver.cpp.
| void UIServer::slotUpdate | ( | ) | [protected, slot] |
Definition at line 1044 of file uiserver.cpp.
| void UIServer::speed | ( | int | id, | |
| unsigned long | bytes_per_second | |||
| ) |
Definition at line 906 of file uiserver.cpp.
| void UIServer::stating | ( | int | id, | |
| KURL | url | |||
| ) |
Definition at line 989 of file uiserver.cpp.
| void UIServer::totalDirs | ( | int | id, | |
| unsigned long | dirs | |||
| ) |
Definition at line 853 of file uiserver.cpp.
| void UIServer::totalFiles | ( | int | id, | |
| unsigned long | files | |||
| ) |
Definition at line 843 of file uiserver.cpp.
| void UIServer::totalSize | ( | int | id, | |
| unsigned long | size | |||
| ) |
Definition at line 830 of file uiserver.cpp.
| void UIServer::totalSize64 | ( | int | id, | |
| KIO::filesize_t | size | |||
| ) |
Definition at line 833 of file uiserver.cpp.
| void UIServer::transferring | ( | int | id, | |
| KURL | url | |||
| ) |
Definition at line 969 of file uiserver.cpp.
| void UIServer::unmounting | ( | int | id, | |
| QString | point | |||
| ) |
Definition at line 1009 of file uiserver.cpp.
| void UIServer::writeSettings | ( | ) | [protected] |
Definition at line 1328 of file uiserver.cpp.
Member Data Documentation
ListProgress* UIServer::listProgress [protected] |
Definition at line 397 of file uiserver.h.
QString UIServer::properties [protected] |
Definition at line 400 of file uiserver.h.
KToolBar::BarPosition UIServer::toolbarPos [protected] |
Definition at line 399 of file uiserver.h.
QTimer* UIServer::updateTimer [protected] |
Definition at line 396 of file uiserver.h.
The documentation for this class was generated from the following files:
KDE 3.5 API Reference