Review Request: Helper Methods for FileType Enum in new Class FileTypeSupport, get Type in TagDialog from Database instead of Extension, some Code Changes as Example of the Advantage of the Helper Methods
Stefan Derkits
stefan at derkits.at
Mon Nov 1 11:39:56 CET 2010
> On 2010-10-19 15:00:10, Ian Monroe wrote:
> > what's the goal of this refactor?
>
> Stefan Derkits wrote:
> The Goal was, to have an easy way to get all possible FileTypes in a suitable DataStructure.
> Take MetaQueryWidget as Example. If new FileTypes would have been added to FileType.h and used in the Database, there would also have been the need to add them there.
> Also I changed some Functions that worked by comparing the FileExtension to some known FileExtensions and create the corresponding FileType Enum to compare the fileExtension with the List of possibleFileTypes
As discussed on IRC, I've reverted the Refactoring and instead put all the Helper Methods for FileTypes in a new Class with static functions
- Stefan
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100088/#review132
-----------------------------------------------------------
On 2010-11-01 10:37:10, Stefan Derkits wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100088/
> -----------------------------------------------------------
>
> (Updated 2010-11-01 10:37:10)
>
>
> Review request for Amarok.
>
>
> Summary
> -------
>
> -) Created new Class with some Helper Functions
> -) Changed MetaQueryWidget to use the QStringList that contains all Filetypes
> -) Meta::SqlTrack.type() now gets it's Information from the Database instead of the FileExtension
>
>
> Diffs
> -----
>
> shared/FileType.h 55c80b9
> shared/FileType.cpp PRE-CREATION
> src/CMakeLists.txt 5f2ac9d
> src/browsers/CollectionTreeItemModelBase.cpp c25549b
> src/core-impl/collections/sqlcollection/CMakeLists.txt f530d67
> src/core-impl/collections/sqlcollection/SqlMeta.h afdf937
> src/core-impl/collections/sqlcollection/SqlMeta.cpp b1a0694
> src/core-impl/collections/support/MemoryFilter.cpp c076494
> src/widgets/MetaQueryWidget.cpp 99e8993
> tests/synchronization/CMakeLists.txt e5df2df
> utilities/collectionscanner/CMakeLists.txt 70c86d0
> utilities/collectionscanner/CollectionScanner.cpp 033ea84
>
> Diff: http://git.reviewboard.kde.org/r/100088/diff
>
>
> Testing
> -------
>
> Tested in the App, found no wrong Behaviour
>
>
> Thanks,
>
> Stefan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20101101/2fa67362/attachment.htm
More information about the Amarok-devel
mailing list