• Jocelyn Turcotte's avatar
    Refactor the way callbacks are stored · 1f17c9b3
    Jocelyn Turcotte authored
    
    With the upcoming addition of a new type of callback result, this
    patch allows storing multiple callback types in the same QHash instead
    or requiring a different hash table just to please the type system.
    
    This does so by managing the ref-counted callback pointers directly
    instead of relying on a templated QExplicitlySharedDataPointer that
    requires a different type for each different callback pointer type.
    
    The ref-counting, construction and destruction is managed through
    a run-time type enum.
    
    Change-Id: I90ab2e1efc0c9703fc5b6ef57b38204ac8eea828
    Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
    1f17c9b3