[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KDE I/O Slave -- Mime Type weirdness
From:       "Ben Schepens" <schepens () mindspring ! com>
Date:       2001-08-07 16:37:37
[Download RAW message or body]

I am creating a I/O Slave (for now "hello" is the protocol name
I am using).

I have found that if I create a TransferJob by calling the following:

  transferJob = KIO::get( "hello:foo" );
vs
  transferJob = KIO::get( "hello://foo" );

the 'mimetype' method of the I/O slave gets invoked for
the first call -- get("hello:foo") -- but not the second.

The second call uses the defaultMimetype value specified in
the hello.protocol file in the /usr/share/services directory.

Any clue why this is?

Ben Schepens
schepens@mindspring.com

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am creating a I/O Slave (for now "hello" is the 
protocol name<BR>I am using).<BR><BR>I have found that if I create a TransferJob 
by calling the following:<BR><BR>&nbsp; transferJob = KIO::get( "hello:foo" 
);<BR>vs<BR>&nbsp; transferJob = KIO::get( "hello://foo" );<BR><BR>the 
'mimetype' method of the I/O slave gets invoked for<BR>the first call -- 
get("hello:foo") -- but not the second.<BR><BR>The second call uses the 
defaultMimetype value specified in<BR>the hello.protocol file in the 
/usr/share/services directory.<BR><BR>Any clue why this is?<BR><BR>Ben 
Schepens<BR>schepens@mindspring.com</FONT></DIV></BODY></HTML>

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic