kopete/libkopete
kopetestatusmanager.cpp
Go to the documentation of this file.
77 connect( Kopete::AccountManager::self(), SIGNAL(accountOnlineStatusChanged(Kopete::Account*,Kopete::OnlineStatus,Kopete::OnlineStatus)),
116 const QString filename = KStandardDirs::locateLocal( "data", QLatin1String( "kopete/statuses.xml" ) );
220 group->setCategory( (OnlineStatusManager::Category)element.attribute( "category", "0" ).toInt() );
228 else if ( childElement.tagName() == QLatin1String( "group" ) || childElement.tagName() == QLatin1String( "status" ) )
241 status->setCategory( (OnlineStatusManager::Category)element.attribute( "category", "0" ).toInt() );
309 void StatusManager::setGlobalStatus( uint category, const Kopete::StatusMessage &statusMessage )
379 QTimer::singleShot(Kopete::BehaviorSettings::self()->autoAwayTimeout() * 1000, dialog, SLOT(close()));
399 Kopete::OnlineStatusManager::Online ), globalStatusMessage(), Kopete::Account::KeepSpecialFlags );
430 Kopete::OnlineStatusManager::Idle ), d->customStatusMessage, Kopete::Account::KeepSpecialFlags );
436 Kopete::OnlineStatusManager::Idle ), d->globalStatusMessage, Kopete::Account::KeepSpecialFlags );
470 idleTimer->registerTimeout( d->awayTimeout, this, SLOT(askAndSetActive()), SLOT(setAutoAway()) );
Definition: kopeteonlinestatus.h:68
void setGlobalStatus(uint category, const Kopete::StatusMessage &statusMessage=Kopete::StatusMessage())
Remember current global status.
Definition: kopetestatusmanager.cpp:309
Status::StatusGroup * copyRootGroup() const
Copy current status data tree.
Definition: kopetestatusmanager.cpp:172
void setRootGroup(Status::StatusGroup *rootGroup)
Set new status data tree.
Definition: kopetestatusmanager.cpp:153
static Status::StatusItem * parseStatusItem(QDomElement element)
Restore status item from XML structure.
Definition: kopetestatusmanager.cpp:212
virtual bool isGroup() const =0
Returns true if StatusItem is group.
QList< StatusItem * > childList() const
Returns list of all childes.
Definition: kopetestatusitems.h:159
Status represents a status which has title, message and category.
Definition: kopetestatusitems.h:212
static StatusManager * self()
Get the only instance of StatusManager.
Definition: kopetestatusmanager.cpp:145
void setCategory(OnlineStatusManager::Categories category)
Sets category.
Definition: kopetestatusitems.cpp:36
Use the online status but keep special flags, e.g. Invisible.
Definition: kopeteaccount.h:121
static bool autoAwayGoAvailable()
Get Go available after detecting an activity.
Definition: kopetebehaviorsettings.h:855
Category
Kopete will uses categories to have a more general system than simply globally away.
Definition: kopeteonlinestatusmanager.h:59
void setGlobalStatusMessage(const Kopete::StatusMessage &statusMessage=Kopete::StatusMessage())
Remember current global status message.
Definition: kopetestatusmanager.cpp:323
State where you are online but none of your contacts can see that you're online.
Definition: kopeteonlinestatus.h:110
static bool useCustomAwayMessage()
Get When setting the auto away message, use a custom away message.
Definition: kopetebehaviorsettings.h:936
void setAutoAway()
Set all online account to auto away status.
Definition: kopetestatusmanager.cpp:407
static AccountManager * self()
Retrieve the instance of AccountManager.
Definition: kopeteaccountmanager.cpp:76
StatusGroup represents a group that can contain other StatusItems.
Definition: kopetestatusitems.h:130
void registerTimeout(int idleSeconds, QObject *receiver, const char *memberActive, const char *memberIdle)
Register new timeout notification.
Definition: kopeteidletimer.cpp:113
OnlineStatus onlineStatus() const
Get the online status of the contact.
Definition: kopetecontact.cpp:133
StatusItem is a base class for all status items.
Definition: kopetestatusitems.h:42
OnlineStatusManager::Categories category() const
Returns category.
Definition: kopetestatusitems.h:60
IdleTimer handles global idle time and allows to register idle timeout notifications.
Definition: kopeteidletimer.h:33
virtual void setOnlineStatus(const Kopete::OnlineStatus &status, const Kopete::StatusMessage &reason=Kopete::StatusMessage(), const OnlineStatusOptions &options=None)=0
Reimplement this function to set the online status.
Kopete::StatusMessage globalStatusMessage() const
Get current global status message.
Definition: kopetestatusmanager.cpp:348
bool globalAway()
Returns true if global away status was set.
Definition: kopetestatusmanager.cpp:448
Definition: kopetecontact.h:58
Refers to a true online state, i.e.
Definition: kopeteonlinestatus.h:129
KOPETE_EXPORT QWidget * mainWidget()
Returns the main widget - this is the widget that message boxes and KNotify stuff should use as a par...
Definition: kopeteuiglobal.cpp:37
uint globalStatusCategory() const
Get current global status category.
Definition: kopetestatusmanager.cpp:353
const Status::StatusItem * itemForUid(const QString &uid) const
Find status item for given uid.
Definition: kopetestatusmanager.cpp:177
static BehaviorSettings * self()
Definition: kopetebehaviorsettings.cpp:23
StatusManager manages status items that are used to build status menu.
Definition: kopetestatusmanager.h:44
const QList< Account * > & accounts() const
Retrieve the list of accounts.
Definition: kopeteaccountmanager.cpp:312
static OnlineStatusManager * self()
Definition: kopeteonlinestatusmanager.cpp:49
void setMessage(const QString &message)
Set a new status message.
Definition: kopetestatusmessage.cpp:70
void askAndSetActive()
Confirm with the user, then set auto away.
Definition: kopetestatusmanager.cpp:358
void appendChild(Kopete::Status::StatusItem *child)
Inserts child at the end.
Definition: kopetestatusitems.cpp:82
void unregisterTimeout(QObject *receiver)
removes all registered timeout notifications for this object
Definition: kopeteidletimer.cpp:121
Status::StatusGroup * getRootGroup() const
Get current status data tree.
Definition: kopetestatusmanager.cpp:167
static QDomElement storeStatusItem(const Status::StatusItem *item)
Convert status item to XML structure.
Definition: kopetestatusmanager.cpp:182
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.