Revision 542661
Go back to digest for 21st May 2006Other in KDE Base
Redesign/refactoring of KTrader:
- separated KMimeTypeTrader and KTrader (will be renamed to KServiceTypeTrader when I have more time)
their api is different, since ktrader works with 1 servicetype as input (e.g. KMyApp/Plugin),
and KMimeTypeTrader works with mimetype + generic service type (Application, KParts/ReadOnlyPart, etc.)
- changed the command-line tool ktradertest accordingly, it now takes -mimetype and/or -servicetype, and -constraint arguments
- moved preferredService() to the traders, no more direct use of KServiceTypeProfile
- also moved OfferList, to KTrader which is now the weighted one. Most KTrader usage is simply ported to KService::List.
- removed unused "preferences" feature (was expressed in the trader query language, and used for custom sorting of services)
- moved KServiceOffer into its own header file
- moved ParseTreeFoo stuff out of the KIO namespace and into KTraderParse namespace (since this will go into kdecore)
File Changes
- /trunk/KDE/kdelibs/kio/kio
- /kmimetypetrader.cpp
- /kmimetypetrader.h
- /kserviceoffer.h
- /trunk/KDE/kdelibs
- /KDE4PORTING.html
- /kdeprint/kprintpreview.cpp
- /khtml/khtml_part.cpp
- /kio/CMakeLists.txt
- /kparts/browserrun.cpp
- /kparts/componentfactory.h
- /kresources/configpage.cpp
- /kresources/factory.cpp
- /phonon/backendcapabilities.cpp
- /phonon/factory.cpp
- /interfaces/ktexteditor/editorchooser.cpp
- /kate/part/kateconfig.cpp
- /kate/part/kateglobal.cpp
- /kate/part/kateglobal.h
- /khtml/ecma/kjs_navigator.cpp
- /kio/kfile/kopenwith.cpp
- /kio/kfile/kopenwith.h
- /kio/kfile/kpropertiesdialog.cpp
- /kio/kio/CMakeLists.txt
- /kio/kio/kdatatool.cpp
- /kio/kio/kdcopservicestarter.cpp
- /kio/kio/kdcopservicestarter.h
- /kio/kio/kfilemetainfo.cpp
- /kio/kio/krun.cpp
- /kio/kio/kservicetype.cpp
- /kio/kio/kservicetypeprofile.cpp
- /kio/kio/kservicetypeprofile.h
- /kio/kio/ktrader.cpp
- /kio/kio/ktrader.h
- /kio/kio/ktraderparse.cpp
- /kio/kio/ktraderparsetree.cpp
- /kio/kio/ktraderparsetree.h
- /kio/kio/kurifilter.cpp
- /kio/kio/metainfojob.cpp
- /kio/kio/previewjob.cpp
- /kio/kio/renamedlg.cpp
- /kio/tests/kmimetypetest.cpp
- /kio/tests/kmimetypetest.h
- /kio/tests/ksycocatest.cpp
- /kio/tests/ktradertest.cpp
- /phonon/kcm/backendselection.cpp
- /interfaces/kimproxy/library/kimproxy.cpp