status provider: Use inline not inside the class definition
This commit is contained in:
parent
d5613954a4
commit
e232c907ea
|
@ -30,7 +30,7 @@ public:
|
||||||
void unregisterCallback(size_t id);
|
void unregisterCallback(size_t id);
|
||||||
void unregisterAllCallbacks();
|
void unregisterAllCallbacks();
|
||||||
void forwardStatusUpdateCalls(StatusProvider *other = nullptr);
|
void forwardStatusUpdateCalls(StatusProvider *other = nullptr);
|
||||||
inline StatusProvider *usedProvider();
|
StatusProvider *usedProvider();
|
||||||
void tryToAbort();
|
void tryToAbort();
|
||||||
bool isAborted() const;
|
bool isAborted() const;
|
||||||
void invalidateStatus();
|
void invalidateStatus();
|
||||||
|
@ -48,9 +48,9 @@ protected:
|
||||||
StatusProvider();
|
StatusProvider();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline void invokeCallbacks();
|
void invokeCallbacks();
|
||||||
inline void updateWorstNotificationType(NotificationType notificationType);
|
void updateWorstNotificationType(NotificationType notificationType);
|
||||||
inline void transferNotifications(StatusProvider &from);
|
void transferNotifications(StatusProvider &from);
|
||||||
|
|
||||||
NotificationList m_notifications;
|
NotificationList m_notifications;
|
||||||
NotificationType m_worstNotificationType;
|
NotificationType m_worstNotificationType;
|
||||||
|
@ -283,7 +283,7 @@ inline void StatusProvider::updateWorstNotificationType(NotificationType notific
|
||||||
* the notifications are transfered. It also doesn't check whether \a from is the current instance and doesn't
|
* the notifications are transfered. It also doesn't check whether \a from is the current instance and doesn't
|
||||||
* invoke callbacks.
|
* invoke callbacks.
|
||||||
*/
|
*/
|
||||||
void StatusProvider::transferNotifications(StatusProvider &from)
|
inline void StatusProvider::transferNotifications(StatusProvider &from)
|
||||||
{
|
{
|
||||||
m_notifications.splice(m_notifications.end(), from.m_notifications);
|
m_notifications.splice(m_notifications.end(), from.m_notifications);
|
||||||
m_worstNotificationType |= from.worstNotificationType();
|
m_worstNotificationType |= from.worstNotificationType();
|
||||||
|
|
Loading…
Reference in New Issue