![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
Interface for plugins that can provide events. More...
#include "ieventsprovider.h"
Public Member Functions | |
virtual | ~IEventsProvider () |
virtual QString | GetServiceName () const =0 |
Returns the service name. More... | |
virtual void | UpdateRecommendedEvents ()=0 |
Requests re-fetching the list of recommended events. More... | |
virtual void | AttendEvent (qint64 id, EventAttendType status)=0 |
Updates the event attendance status, if possible. More... | |
Protected Member Functions | |
virtual void | gotRecommendedEvents (const EventInfos_t &events)=0 |
Emitted when a list of recommended events is fetched. More... | |
Interface for plugins that can provide events.
Plugins that can provide nearby or recommended events based on user's location or musical taste should implement this interface.
Fetching recommended events is asynchronous in nature, so one should request updating the list of recommended events via UpdateRecommendedEvents() and then listen for the gotRecommendedEvents() signal.
Definition at line 162 of file ieventsprovider.h.
|
inlinevirtual |
Definition at line 165 of file ieventsprovider.h.
|
pure virtual |
Updates the event attendance status, if possible.
This function marks the event attendance status as status, if the service supports it. The event is identified by its ID.
[in] | id | The ID of the event (EventInfo::ID_). |
[in] | status | The new event attendance status. |
|
pure virtual |
Returns the service name.
This string returns a human-readable string with the service name, like "Last.FM".
|
protectedpure virtual |
Emitted when a list of recommended events is fetched.
[out] | events | The current list of recommended events. |
|
pure virtual |
Requests re-fetching the list of recommended events.
The gotRecommendedEvents() signal will be emitted after new recommended events are fetched.