Skip to content
  • Ismael Asensio's avatar
    refactor(search): De-couple baloo URL parsing logic from UI · 8d92c8be
    Ismael Asensio authored
    Summary:
    Extracts the logic that parses `baloosearch:` urls into a new model class. The parser logic itself is kept as is.
    The search box UI is later updated using the model fields.
    
    This refactor has been proposed by @bruns in the review of D24422, as it largely simplifies the unit tests and further expansion/improvements.
    
    Test Plan:
    No behavior changes.
    Test case is added in the follow-up revision: D25258
    
    Reviewers: #dolphin, elvisangelaccio, bruns
    
    Reviewed By: #dolphin, elvisangelaccio, bruns
    
    Subscribers: ngraham, bruns, kfm-devel
    
    Tags: #dolphin
    
    Differential Revision: https://phabricator.kde.org/D25257
    8d92c8be