kopete/kopete
#include <kopetestatusrootaction.h>
Public Types | |
enum | Filter { UseCategory, UseStatus, UseStatusAndCategory } |
Signals | |
void | changeMessage (const Kopete::StatusMessage &statusMessage) |
void | changeStatus (uint category, const Kopete::StatusMessage &statusMessage) |
void | updateMessage (Kopete::StatusRootAction *statusRootAction) |
Public Member Functions | |
StatusRootAction (KActionMenu *menu) | |
StatusRootAction (KActionMenu *menu, Filter filter, Account *account, const OnlineStatus &onlineStatus, QAction *before=0) | |
~StatusRootAction () | |
Account * | account () const |
int | category () const |
StatusRootAction::Filter | filter () const |
OnlineStatus | onlineStatus () const |
void | setCurrentMessage (const Kopete::StatusMessage &statusMessage) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static void | createAccountStatusActions (Account *account, KActionMenu *parent, QAction *before=0) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions | |
void | changeStatus (const Kopete::Status::Status *status) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Definition at line 43 of file kopetestatusrootaction.h.
Member Enumeration Documentation
Enumerator | |
---|---|
UseCategory | |
UseStatus | |
UseStatusAndCategory |
Definition at line 47 of file kopetestatusrootaction.h.
Constructor & Destructor Documentation
Kopete::StatusRootAction::StatusRootAction | ( | KActionMenu * | menu | ) |
StatusRootAction constructor.
- Parameters
-
menu the parent menu
The menu actions are automatically recreated if anything changes
- Note
- you should catch
updateMessage
,changeStatus
andchangeMessage
signals
Definition at line 56 of file kopetestatusrootaction.cpp.
Kopete::StatusRootAction::StatusRootAction | ( | KActionMenu * | menu, |
Filter | filter, | ||
Account * | account, | ||
const OnlineStatus & | onlineStatus, | ||
QAction * | before = 0 |
||
) |
StatusRootAction constructor for specific account.
- Parameters
-
menu the parent menu filter menu filter type account kopete account account online status
The menu actions are automatically recreated if anything changes
- Note
- you should catch
updateMessage
signal
Definition at line 66 of file kopetestatusrootaction.cpp.
Kopete::StatusRootAction::~StatusRootAction | ( | ) |
Definition at line 209 of file kopetestatusrootaction.cpp.
Member Function Documentation
Account * Kopete::StatusRootAction::account | ( | ) | const |
Get the account this root action was created for.
- Returns
- account for this root action or 0.
Definition at line 229 of file kopetestatusrootaction.cpp.
int Kopete::StatusRootAction::category | ( | ) | const |
Returns default category.
Definition at line 219 of file kopetestatusrootaction.cpp.
|
signal |
Status message change request.
- Parameters
-
statusMessage of new status
This signal is emitted when a status action is activated by the user
- Note
- this is only emitted if this object wasn't created for specific account
|
signal |
Status category and message change request.
- Parameters
-
category of new status statusMessage of new status
This signal is emitted when a status action is activated by the user
- Note
- this is only emitted if this object wasn't create for specific account
|
protected |
Definition at line 320 of file kopetestatusrootaction.cpp.
|
static |
insert "setStatus" actions from the given account to the specified actionMenu.
(actions have that menu as parent QObject) they are connected to the Account::setOnlineStatus signal
Items are stored by status height.
- Parameters
-
account the account parent the ActionMenu where action are inserted
Definition at line 80 of file kopetestatusrootaction.cpp.
StatusRootAction::Filter Kopete::StatusRootAction::filter | ( | ) | const |
Returns menu filter used for filtering the status actions.
Definition at line 214 of file kopetestatusrootaction.cpp.
OnlineStatus Kopete::StatusRootAction::onlineStatus | ( | ) | const |
Returns default online status.
Definition at line 224 of file kopetestatusrootaction.cpp.
void Kopete::StatusRootAction::setCurrentMessage | ( | const Kopete::StatusMessage & | statusMessage | ) |
Set current status message.
- Parameters
-
statusMessage current status message
Definition at line 234 of file kopetestatusrootaction.cpp.
|
signal |
Update status message for this action.
- Parameters
-
statusRootAction the StatusRootAction object which emitted this signal
This signal is emitted before the status menu is shown and a object that is receiving this signal should update status message of statusRootAction
with setCurrentMessage
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.