Blokkal::Ui::BlogChooser Class Reference
A widget for selecting a blog. More...
#include <blogchooser.h>

Signals | |
| void | blogSelected (Blokkal::Blog *blog) |
Public Member Functions | |
| Blokkal::Account * | account (void) const |
| Blokkal::Blog * | blog (void) const |
| BlogChooser (QWidget *parent=0) | |
| void | setAccount (Blokkal::Account *account) |
| void | setBlog (Blokkal::Blog *blog) |
| virtual | ~BlogChooser (void) |
Protected Slots | |
| virtual void | slotAccountSelectionChanged (void) |
| virtual void | slotBlogSelectionChanged (void) |
Detailed Description
A widget for selecting a blog.A widget for selecting a blog.
Definition at line 39 of file blogchooser.h.
Constructor & Destructor Documentation
| Blokkal::Ui::BlogChooser::BlogChooser | ( | QWidget * | parent = 0 |
) |
Creates a new BlogChooser
- Parameters:
-
parent parent widget
Definition at line 55 of file blogchooser.cpp.
| Blokkal::Ui::BlogChooser::~BlogChooser | ( | void | ) | [virtual] |
Destructor
Definition at line 84 of file blogchooser.cpp.
Member Function Documentation
| Blokkal::Account * Blokkal::Ui::BlogChooser::account | ( | void | ) | const |
Returns the currently selected account
- Returns:
- the currently selected account
Definition at line 89 of file blogchooser.cpp.
| Blokkal::Blog * Blokkal::Ui::BlogChooser::blog | ( | void | ) | const |
Returns the currently selected blog
- Returns:
- the currently selected blog
Definition at line 127 of file blogchooser.cpp.
| void Blokkal::Ui::BlogChooser::blogSelected | ( | Blokkal::Blog * | blog | ) | [signal] |
This signal is emitted when a blog selected.
- Parameters:
-
blog the selected blog, 0 if the selection has been cleared
| void Blokkal::Ui::BlogChooser::setAccount | ( | Blokkal::Account * | account | ) |
Sets the selected account. Calling this method will also clear the blog selection if account does not equal the currently selected account.
- Parameters:
-
account select this account, 0 to clear selection
Definition at line 94 of file blogchooser.cpp.
| void Blokkal::Ui::BlogChooser::setBlog | ( | Blokkal::Blog * | blog | ) |
Sets the selected blog. If blog does not belong to the currently selected account or is 0, the selection will be cleared.
Definition at line 132 of file blogchooser.cpp.
| void Blokkal::Ui::BlogChooser::slotAccountSelectionChanged | ( | void | ) | [protected, virtual, slot] |
An item in the accounts list box has been selected.
Definition at line 150 of file blogchooser.cpp.
| void Blokkal::Ui::BlogChooser::slotBlogSelectionChanged | ( | void | ) | [protected, virtual, slot] |
An item in the blogs list box has been selected.
Definition at line 173 of file blogchooser.cpp.
The documentation for this class was generated from the following files: