Changeset View
Changeset View
Standalone View
Standalone View
src/statsyncing/Controller.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
71 | */ | 71 | */ | ||
72 | virtual void unregisterProvider( const ProviderPtr &provider ); | 72 | virtual void unregisterProvider( const ProviderPtr &provider ); | ||
73 | 73 | | |||
74 | /** | 74 | /** | ||
75 | * Handle plugin factories derived from ProviderFactory, used for creating | 75 | * Handle plugin factories derived from ProviderFactory, used for creating | ||
76 | * multiple provider instances. This method is called by Amarok's plugin | 76 | * multiple provider instances. This method is called by Amarok's plugin | ||
77 | * infrastructure. | 77 | * infrastructure. | ||
78 | */ | 78 | */ | ||
79 | void setFactories( const QList<Plugins::PluginFactory*> &factories ); | 79 | void setFactories( const QList<QSharedPointer<Plugins::PluginFactory> > &factories ); | ||
80 | 80 | | |||
81 | /** | 81 | /** | ||
82 | * Returns true if any instantiable provider types are registered with the | 82 | * Returns true if any instantiable provider types are registered with the | ||
83 | * controller. | 83 | * controller. | ||
84 | */ | 84 | */ | ||
85 | bool hasProviderFactories() const; | 85 | bool hasProviderFactories() const; | ||
86 | 86 | | |||
87 | /** | 87 | /** | ||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 206 | private: | |||
207 | Q_DISABLE_COPY( Controller ) | 207 | Q_DISABLE_COPY( Controller ) | ||
208 | 208 | | |||
209 | ProviderPtr findRegisteredProvider( const QString &id ) const; | 209 | ProviderPtr findRegisteredProvider( const QString &id ) const; | ||
210 | 210 | | |||
211 | /** | 211 | /** | ||
212 | * Return true if important metadata of both tracks is equal. | 212 | * Return true if important metadata of both tracks is equal. | ||
213 | */ | 213 | */ | ||
214 | bool tracksVirtuallyEqual( const Meta::TrackPtr &first, const Meta::TrackPtr &second ); | 214 | bool tracksVirtuallyEqual( const Meta::TrackPtr &first, const Meta::TrackPtr &second ); | ||
215 | QMap<QString, ProviderFactory*> m_providerFactories; | 215 | QMap<QString, QSharedPointer<ProviderFactory> > m_providerFactories; | ||
216 | 216 | | |||
217 | // synchronization-related | 217 | // synchronization-related | ||
218 | ProviderPtrList m_providers; | 218 | ProviderPtrList m_providers; | ||
219 | QPointer<Process> m_currentProcess; | 219 | QPointer<Process> m_currentProcess; | ||
220 | QTimer *m_startSyncingTimer; | 220 | QTimer *m_startSyncingTimer; | ||
221 | Config *m_config; | 221 | Config *m_config; | ||
222 | 222 | | |||
223 | /** | 223 | /** | ||
Show All 20 Lines |