Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

Blokkal::ActionTargetRelay Class Reference

Singleton that stores the targets of Account and Blog context menus. More...

#include <blokkalactiontargetrelay.h>

Inheritance diagram for Blokkal::ActionTargetRelay:

List of all members.


Signals

void currentAccountChanged (Blokkal::Account *newAccount=0)
void currentBlogChanged (Blokkal::Blog *newBlog=0)

Static Public Member Functions

static Blokkal::AccountcurrentAccount (void)
static Blokkal::BlogcurrentBlog (void)
static Blokkal::ActionTargetRelayself (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.

Author:
Martin Mueller <orvio@orvio.de>

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]

Returns:
the global ActionTargetRelay

Definition at line 48 of file blokkalactiontargetrelay.cpp.

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: