|
|
|
@ -35,7 +35,7 @@ SQ_ArchiveHandler::~SQ_ArchiveHandler()
|
|
|
|
|
void SQ_ArchiveHandler::fillProtocols()
|
|
|
|
|
{
|
|
|
|
|
// search for tar protocol
|
|
|
|
|
if(!KGlobal::dirs()->findResource("services", "tar.protocol").isEmpty())
|
|
|
|
|
if(!TDEGlobal::dirs()->findResource("services", "tar.protocol").isEmpty())
|
|
|
|
|
{
|
|
|
|
|
insert("application/x-tgz", "tar");
|
|
|
|
|
insert("application/x-tar", "tar");
|
|
|
|
@ -46,27 +46,27 @@ void SQ_ArchiveHandler::fillProtocols()
|
|
|
|
|
|
|
|
|
|
// search for rar protocol (kio_rar from
|
|
|
|
|
// http://kde-apps.org/content/show.php/kio_rar?content=17527)
|
|
|
|
|
if(!KGlobal::dirs()->findResource("services", "rar.protocol").isEmpty())
|
|
|
|
|
if(!TDEGlobal::dirs()->findResource("services", "rar.protocol").isEmpty())
|
|
|
|
|
{
|
|
|
|
|
insert("application/x-rar", "rar");
|
|
|
|
|
insert("application/x-rar-compressed", "rar");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// search for ar protocol
|
|
|
|
|
if(!KGlobal::dirs()->findResource("services", "ar.protocol").isEmpty())
|
|
|
|
|
if(!TDEGlobal::dirs()->findResource("services", "ar.protocol").isEmpty())
|
|
|
|
|
insert("application/x-archive", "ar");
|
|
|
|
|
|
|
|
|
|
// search for iso protocol
|
|
|
|
|
if(!KGlobal::dirs()->findResource("services", "iso.protocol").isEmpty())
|
|
|
|
|
if(!TDEGlobal::dirs()->findResource("services", "iso.protocol").isEmpty())
|
|
|
|
|
insert("application/x-iso", "iso");
|
|
|
|
|
|
|
|
|
|
// search for zip protocol
|
|
|
|
|
if(!KGlobal::dirs()->findResource("services", "zip.protocol").isEmpty())
|
|
|
|
|
if(!TDEGlobal::dirs()->findResource("services", "zip.protocol").isEmpty())
|
|
|
|
|
insert("application/x-zip", "zip");
|
|
|
|
|
|
|
|
|
|
// search for 7zip protocol (kio_p7zip
|
|
|
|
|
// from http://kde-apps.org/content/show.php/kio_p7zip?content=17829)
|
|
|
|
|
if(!KGlobal::dirs()->findResource("services", "p7zip.protocol").isEmpty())
|
|
|
|
|
if(!TDEGlobal::dirs()->findResource("services", "p7zip.protocol").isEmpty())
|
|
|
|
|
insert("application/x-7z", "p7zip");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|