![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Interface for plugins that can provide events. More...
#include "ieventsprovider.h"
Public Types | |
using | EventsQueryResult_t = LC::Util::Either< QString, EventInfos_t > |
The result of an recommended events query. More... | |
Public Member Functions | |
virtual | ~IEventsProvider () |
virtual QString | GetServiceName () const =0 |
Returns the service name. More... | |
virtual QFuture< EventsQueryResult_t > | 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... | |
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.
Definition at line 140 of file ieventsprovider.h.
using Media::IEventsProvider::EventsQueryResult_t = LC::Util::Either<QString, EventInfos_t> |
The result of an recommended events query.
The result of an recommended events query is either a string with a human-readable error text, or the list of the recommended events.
Definition at line 150 of file ieventsprovider.h.
|
inlinevirtual |
Definition at line 143 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".
|
pure virtual |
Requests re-fetching the list of recommended events.