Blokkal::ActionTargetRelay Class Reference
Singleton that stores the targets of Account and Blog context menus. More...
#include <blokkalactiontargetrelay.h>
Inheritance diagram for Blokkal::ActionTargetRelay:
Signals | |
void | currentAccountChanged (Blokkal::Account *newAccount=0) |
void | currentBlogChanged (Blokkal::Blog *newBlog=0) |
Static Public Member Functions | |
static Blokkal::Account * | currentAccount (void) |
static Blokkal::Blog * | currentBlog (void) |
static Blokkal::ActionTargetRelay * | self (void) |
static void | setCurrentAccount (Blokkal::Account *account) |
static void | setCurrentBlog (Blokkal::Blog *blog) |
Friends | |
class | ActionTargetRelayPrivate |
Detailed Description
Singleton that stores the targets of Account and Blog context menus.This global singleton stores the targets of Acconut and Blog context menus, so Plugins can access these in order to perform custom actions.
Definition at line 40 of file blokkalactiontargetrelay.h.
Member Function Documentation
Blokkal::Account * Blokkal::ActionTargetRelay::currentAccount | ( | void | ) | [static] |
- Returns:
- the current account to perform an action, may be 0
Definition at line 53 of file blokkalactiontargetrelay.cpp.
void Blokkal::ActionTargetRelay::currentAccountChanged | ( | Blokkal::Account * | newAccount = 0 |
) | [signal] |
This signal is emitted when a new account has been set to be current
Blokkal::Blog * Blokkal::ActionTargetRelay::currentBlog | ( | void | ) | [static] |
- Returns:
- the current blog to perform an action, may be 0
Definition at line 58 of file blokkalactiontargetrelay.cpp.
void Blokkal::ActionTargetRelay::currentBlogChanged | ( | Blokkal::Blog * | newBlog = 0 |
) | [signal] |
This signal is emitted when a new blog has been set to be current
Blokkal::ActionTargetRelay * Blokkal::ActionTargetRelay::self | ( | void | ) | [static] |
void Blokkal::ActionTargetRelay::setCurrentAccount | ( | Blokkal::Account * | account | ) | [static] |
Sets the current account
- Parameters:
-
account the current account, may be 0
Definition at line 63 of file blokkalactiontargetrelay.cpp.
void Blokkal::ActionTargetRelay::setCurrentBlog | ( | Blokkal::Blog * | blog | ) | [static] |
Sets the current blog
- Parameters:
-
blog the current blog, may be 0
Definition at line 73 of file blokkalactiontargetrelay.cpp.
The documentation for this class was generated from the following files: