Nepomuk-Core
#include <global-presence.h>
Public Slots | |
void | restoreSavedPresence () |
void | saveCurrentPresence () |
void | setPresence (const Tp::Presence &presence) |
Signals | |
void | changingPresence (bool isChanging) |
void | connectionStatusChanged (Tp::ConnectionStatus) |
void | currentPresenceChanged (const KTp::Presence &presence) |
void | requestedPresenceChanged (const KTp::Presence &customPresence) |
Public Member Functions | |
GlobalPresence (QObject *parent=0) | |
Tp::ConnectionStatus | connectionStatus () const |
Presence | currentPresence () const |
bool | hasEnabledAccounts () const |
bool | isChangingPresence () const |
Tp::AccountSetPtr | onlineAccounts () const |
Presence | requestedPresence () const |
void | setAccountManager (const Tp::AccountManagerPtr &accountManager) |
Detailed Description
This class handles the presence between all enabled accounts It shows the highest current available presence, indicates if any accounts are changing, and what they are changing to.
Definition at line 38 of file global-presence.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 33 of file global-presence.cpp.
Member Function Documentation
|
signal |
Tp::ConnectionStatus KTp::GlobalPresence::connectionStatus | ( | ) | const |
Returns connecting if any account is connecting, else connected if at least one account is connected, disconnected otherwise.
Definition at line 65 of file global-presence.cpp.
|
signal |
Presence KTp::GlobalPresence::currentPresence | ( | ) | const |
The most online presence of any account.
Definition at line 70 of file global-presence.cpp.
|
signal |
bool KTp::GlobalPresence::hasEnabledAccounts | ( | ) | const |
Returns true if there is any enabled account.
Definition at line 185 of file global-presence.cpp.
bool KTp::GlobalPresence::isChangingPresence | ( | ) | const |
Returns true if any account is changing state (i.e connecting.
Definition at line 80 of file global-presence.cpp.
Tp::AccountSetPtr KTp::GlobalPresence::onlineAccounts | ( | ) | const |
Definition at line 206 of file global-presence.cpp.
Presence KTp::GlobalPresence::requestedPresence | ( | ) | const |
The most online presence requested for any account if any of the accounts are changing state.
otherwise returns current presence
Definition at line 75 of file global-presence.cpp.
|
signal |
|
slot |
Restores the saved presence from memory.
Definition at line 200 of file global-presence.cpp.
|
slot |
Saves the current presence to memory.
Definition at line 194 of file global-presence.cpp.
void KTp::GlobalPresence::setAccountManager | ( | const Tp::AccountManagerPtr & | accountManager | ) |
Set the account manager to use.
- Parameters
-
accountManager should be ready.
Definition at line 44 of file global-presence.cpp.
|
slot |
Set all enabled accounts to the specified presence.
Definition at line 85 of file global-presence.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.