• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • KTp
  • GlobalPresence
Public Slots | Signals | Public Member Functions | List of all members
KTp::GlobalPresence Class Reference

#include <global-presence.h>

Inheritance diagram for KTp::GlobalPresence:
Inheritance graph
[legend]

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

KTp::GlobalPresence::GlobalPresence ( QObject *  parent = 0)
explicit

Definition at line 33 of file global-presence.cpp.

Member Function Documentation

void KTp::GlobalPresence::changingPresence ( bool  isChanging)
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.

void KTp::GlobalPresence::connectionStatusChanged ( Tp::ConnectionStatus  )
signal
Presence KTp::GlobalPresence::currentPresence ( ) const

The most online presence of any account.

Definition at line 70 of file global-presence.cpp.

void KTp::GlobalPresence::currentPresenceChanged ( const KTp::Presence &  presence)
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.

void KTp::GlobalPresence::requestedPresenceChanged ( const KTp::Presence &  customPresence)
signal
void KTp::GlobalPresence::restoreSavedPresence ( )
slot

Restores the saved presence from memory.

Definition at line 200 of file global-presence.cpp.

void KTp::GlobalPresence::saveCurrentPresence ( )
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
accountManagershould be ready.

Definition at line 44 of file global-presence.cpp.

void KTp::GlobalPresence::setPresence ( const Tp::Presence &  presence)
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:
  • global-presence.h
  • global-presence.cpp
This file is part of the KDE documentation.
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.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal