kbuildprotocolinfofactory.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "kbuildprotocolinfofactory.h"
00020 #include "ksycoca.h"
00021 #include "ksycocadict.h"
00022 #include "kresourcelist.h"
00023
00024 #include <kglobal.h>
00025 #include <kstandarddirs.h>
00026 #include <kmessageboxwrapper.h>
00027 #include <kdebug.h>
00028 #include <klocale.h>
00029 #include <assert.h>
00030
00031 KBuildProtocolInfoFactory::KBuildProtocolInfoFactory() :
00032 KProtocolInfoFactory()
00033 {
00034 m_resourceList = new KSycocaResourceList();
00035 m_resourceList->add( "services", "*.protocol" );
00036 }
00037
00038
00039
00040 QStringList KBuildProtocolInfoFactory::resourceTypes()
00041 {
00042 return QStringList() << "services";
00043 }
00044
00045 KBuildProtocolInfoFactory::~KBuildProtocolInfoFactory()
00046 {
00047 delete m_resourceList;
00048 }
00049
00050 KProtocolInfo *
00051 KBuildProtocolInfoFactory::createEntry( const QString& file, const char * )
00052 {
00053 return new KProtocolInfo(file);
00054 }
00055
00056 void
00057 KBuildProtocolInfoFactory::addEntry( KSycocaEntry *newEntry, const char *resource)
00058 {
00059 KSycocaFactory::addEntry(newEntry, resource);
00060 }
00061
|