libkdepim
KPIM::KSubscription Class Reference
#include <ksubscription.h>

Detailed Description
This class provides a generic subscription widget The dialog itself has a main listview that holds all items and two listviews that show all changes.The user can change the state of the items via checkable items. When you construct a new instance you need to provide an account and a caption After inserting your items (checkable or not) you need to call slotLoadingComplete() You should at least connect slots to the signals okClicked() (to save your changes) and user1Clicked() (to reload the list) You can hide unwanted checkboxes via the respective hide<checkboxname> methods
Definition at line 194 of file ksubscription.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| KSubscription::KSubscription | ( | QWidget * | parent, | |
| const QString & | caption, | |||
| KAccount * | acct, | |||
| KDialog::ButtonCodes | buttons = 0, |
|||
| const QString & | user1 = QString(), |
|||
| bool | descriptionColumn = true | |||
| ) |
Definition at line 221 of file ksubscription.cpp.
| KSubscription::~KSubscription | ( | ) |
Definition at line 381 of file ksubscription.cpp.
Member Function Documentation
| KAccount* KPIM::KSubscription::account | ( | ) | [inline] |
| int KSubscription::activeItemCount | ( | ) |
| void KSubscription::changeItemState | ( | GroupItem * | item, | |
| bool | on | |||
| ) |
Makes all changes after an item is toggled called by the item's stateChange-method.
Definition at line 473 of file ksubscription.cpp.
| Direction KPIM::KSubscription::directionButton1 | ( | ) | [inline] |
| Direction KPIM::KSubscription::directionButton2 | ( | ) | [inline] |
| void KSubscription::filterChanged | ( | Q3ListViewItem * | item = 0, |
|
| const QString & | text = QString() | |||
| ) |
Update the item-states (visible, enabled) when a filter criteria changed.
Definition at line 514 of file ksubscription.cpp.
| Q3ListView* KPIM::KSubscription::folderTree | ( | ) | [inline] |
| Q3ListViewItem * KSubscription::getListItem | ( | Q3ListView * | view, | |
| const KGroupInfo & | gi | |||
| ) |
Gets the item from the listview Returns 0 if the item can't be found.
Definition at line 418 of file ksubscription.cpp.
| void KPIM::KSubscription::hideNewOnlyCheckbox | ( | ) | [inline] |
| void KPIM::KSubscription::hideTreeCheckbox | ( | ) | [inline] |
| bool KPIM::KSubscription::isLoading | ( | ) | [inline] |
Returns true if items are being constructed Call 'slotLoadingComplete' to switch this.
Definition at line 273 of file ksubscription.h.
| bool KSubscription::itemInListView | ( | Q3ListView * | view, | |
| const KGroupInfo & | gi | |||
| ) |
| void KPIM::KSubscription::listChanged | ( | ) | [signal] |
Emitted when the amount of items in the groupView changes (e.g.
on filtering)
| void KSubscription::removeListItem | ( | Q3ListView * | view, | |
| const KGroupInfo & | gi | |||
| ) |
| void KSubscription::restoreOpenStates | ( | ) |
| void KSubscription::restoreOriginalParent | ( | ) |
Moves all items from toplevel back to their original position.
Definition at line 583 of file ksubscription.cpp.
| void KSubscription::saveOpenStates | ( | ) |
| KLineEdit* KPIM::KSubscription::searchField | ( | ) | [inline] |
| void KPIM::KSubscription::setAccount | ( | KAccount * | acct | ) | [inline] |
Definition at line 218 of file ksubscription.h.
| void KSubscription::setDirectionButton1 | ( | Direction | dir | ) |
Definition at line 451 of file ksubscription.cpp.
| void KSubscription::setDirectionButton2 | ( | Direction | dir | ) |
Definition at line 462 of file ksubscription.cpp.
| void KSubscription::setStartItem | ( | const KGroupInfo & | info | ) |
| void KSubscription::slotButton1 | ( | ) | [slot] |
| void KSubscription::slotButton2 | ( | ) | [slot] |
Definition at line 709 of file ksubscription.cpp.
| void KSubscription::slotCBToggled | ( | ) | [protected, slot] |
| void KSubscription::slotChangeButtonState | ( | Q3ListViewItem * | item | ) | [slot] |
| void KSubscription::slotFilterTextChanged | ( | const QString & | text | ) | [protected, slot] |
| void KSubscription::slotLoadFolders | ( | ) | [slot] |
| void KSubscription::slotLoadingComplete | ( | ) | [slot] |
| void KSubscription::slotUpdateStatusLabel | ( | ) | [slot] |
Member Data Documentation
QPushButton* KPIM::KSubscription::arrowBtn1 [protected] |
Definition at line 367 of file ksubscription.h.
QPushButton * KPIM::KSubscription::arrowBtn2 [protected] |
Definition at line 367 of file ksubscription.h.
KLineEdit* KPIM::KSubscription::filterEdit [protected] |
Definition at line 365 of file ksubscription.h.
Q3ListView* KPIM::KSubscription::groupView [protected] |
Definition at line 363 of file ksubscription.h.
QLabel* KPIM::KSubscription::leftLabel [protected] |
Definition at line 370 of file ksubscription.h.
QGridLayout* KPIM::KSubscription::listL [protected] |
Definition at line 369 of file ksubscription.h.
KAccount* KPIM::KSubscription::mAcct [protected] |
Definition at line 359 of file ksubscription.h.
int KPIM::KSubscription::mDescrColumn [protected] |
Definition at line 383 of file ksubscription.h.
Direction KPIM::KSubscription::mDirButton1 [protected] |
Definition at line 376 of file ksubscription.h.
Direction KPIM::KSubscription::mDirButton2 [protected] |
Definition at line 377 of file ksubscription.h.
QString KPIM::KSubscription::mLastText [protected] |
Definition at line 380 of file ksubscription.h.
bool KPIM::KSubscription::mLoading [protected] |
Definition at line 373 of file ksubscription.h.
QCheckBox * KPIM::KSubscription::newCB [protected] |
Definition at line 366 of file ksubscription.h.
QCheckBox* KPIM::KSubscription::noTreeCB [protected] |
Definition at line 366 of file ksubscription.h.
QWidget* KPIM::KSubscription::page [protected] |
Definition at line 362 of file ksubscription.h.
QIcon KPIM::KSubscription::pmLeft [protected] |
Definition at line 368 of file ksubscription.h.
QIcon KPIM::KSubscription::pmRight [protected] |
Definition at line 368 of file ksubscription.h.
QLabel * KPIM::KSubscription::rightLabel [protected] |
Definition at line 370 of file ksubscription.h.
QCheckBox * KPIM::KSubscription::subCB [protected] |
Definition at line 366 of file ksubscription.h.
Q3ListView* KPIM::KSubscription::subView [protected] |
Definition at line 364 of file ksubscription.h.
Q3ListView * KPIM::KSubscription::unsubView [protected] |
Definition at line 364 of file ksubscription.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference