https://bugs.kde.org/show_bug.cgi?id=514508

            Bug ID: 514508
           Summary: Wishlist: Allow users to create a KArchive that
                    handles the archive type
    Classification: Frameworks and Libraries
           Product: frameworks-karchive
      Version First 6.22.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

It is quite common to see KDE code, where the developer first identifies the
mimetype and then instantiates the corresponding object (KZip, KTar,...) to
deal with multiple different types of archives. This causes quite a lot of code
duplication for something that could be handled by karchive.

I therefore think that it would be useful to add a way to instantiate a
KArchive object without needing to identify and specify the archive type. This
could e.g. be in the form of a static class method, that returns a KArchive
based on the passed string argument.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to