kopete/libkopete
kopeteonlinestatusmanager.cpp
Go to the documentation of this file.
91 /* Each category has a number which is a power of two, so it is possible to have several categories per online status
92 * the logaritm in base two if this number, which represent the bit which is equal to 1 in the number is chosen to be in a tree
126 kWarning() << "No status in the category " << category << " for the protocol " << protocol->displayName();
155 QString OnlineStatusManager::fingerprint( const OnlineStatus &statusFor, const QString& icon, int size, QColor color, bool idle)
168 QPixmap OnlineStatusManager::cacheLookupByObject( const OnlineStatus &statusFor, const QString& icon, int size, QColor color, bool idle)
302 static QPoint getOffsetForCorner( const QImage& upperImage, const QImage& lowerImage, const int i )
329 QPixmap* OnlineStatusManager::renderIcon( const OnlineStatus &statusFor, const QString& baseIcon, int size, QColor color, bool idle) const
350 if ( statusFor.internalStatus() == Kopete::OnlineStatus::AccountOffline || statusFor.status() == Kopete::OnlineStatus::Offline )
392 QImage scaledImg = basis->toImage().scaled( size, size , Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
QStringList overlayIcons() const
Return the list of overlay icons.
Definition: kopeteonlinestatus.cpp:257
Definition: kopeteonlinestatus.h:68
static void blendOnLower(const QImage &upper_, QImage &lower, const QPoint &offset)
Definition: kopeteonlinestatusmanager.cpp:199
~OnlineStatusManager()
Definition: kopeteonlinestatusmanager.cpp:64
QString displayName() const
Returns the display name of this plugin.
Definition: kopeteplugin.cpp:52
Protocol * protocol() const
Return the protocol this applies to.
Definition: kopeteonlinestatus.cpp:267
Category
Kopete will uses categories to have a more general system than simply globally away.
Definition: kopeteonlinestatusmanager.h:59
State where you really cannot be contacted.
Definition: kopeteonlinestatus.h:98
The account this contact belongs to is offline.
Definition: kopeteonlinestatus.h:147
OnlineStatus onlineStatus(Protocol *protocol, Categories category) const
return the status of the protocol which is in the category category
Definition: kopeteonlinestatusmanager.cpp:89
static QRect getBoundingBox(const QImage &image)
Definition: kopeteonlinestatusmanager.cpp:246
void iconsChanged()
Kopete::OnlineStatusManager::Category initialStatus() const
This returns status from config as Kopete::OnlineStatusManager::Category.
Definition: kopeteonlinestatusmanager.cpp:130
friend class OnlineStatus
Definition: kopeteonlinestatusmanager.h:131
static KIcon pixmapForCategory(Categories category)
return KIcon for given category
Definition: kopeteonlinestatusmanager.cpp:408
QList< OnlineStatus > registeredStatusList(Protocol *protocol) const
return the registered statuses for given protocol
Definition: kopeteonlinestatusmanager.cpp:403
static QPoint getOffsetForCorner(const QImage &upperImage, const QImage &lowerImage, const int i)
Definition: kopeteonlinestatusmanager.cpp:302
static BehaviorSettings * self()
Definition: kopetebehaviorsettings.cpp:23
void registerOnlineStatus(const OnlineStatus &status)
You need to register each status an account can be.
Definition: kopeteonlinestatusmanager.cpp:84
static OnlineStatusManager * self()
Definition: kopeteonlinestatusmanager.cpp:49
OnlineStatusManager is a singleton which manage OnlineStatus.
Definition: kopeteonlinestatusmanager.h:42
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.