![]() |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Interface for contacts announcing their current activity. More...
#include "ihavecontactactivity.h"
Public Member Functions | |
virtual | ~IHaveContactActivity () |
virtual ActivityInfo | GetUserActivity (const QString &variant) const =0 |
Returns the user activity at the given variant. More... | |
Protected Member Functions | |
virtual void | activityChanged (const QString &variant)=0 |
Notifies that entry's user activity has changed. More... | |
Interface for contacts announcing their current activity.
This interface should be implemented by those contact list entries (ICLEntry objects) that support providing information about their current activity.
Different variants of an entry (as per ICLEntry::Variants()) can have different activities, so exact variant is specified both when announcing the activity change via the activityChanged() signal and when retrieving the activity via the GetUserActivity() function.
Definition at line 48 of file ihavecontactactivity.h.
|
inlinevirtual |
Definition at line 51 of file ihavecontactactivity.h.
|
protectedpure virtual |
Notifies that entry's user activity has changed.
The actual activity is obtained via the GetUserActivity() method
[out] | variant | Variant of the entry whose activity has changed. |
|
pure virtual |
Returns the user activity at the given variant.
If the contact does not announce any activity on this variant, an empty ActivityInfo structure is returned, that is, with empty ActivityInfo::General_ field.
[in] | variant | The variant to query |