#### PyKDE - Python Bindings for KDE

# class KProtocolInfo

Table of contents
Modules
kio Classes
All Classes

Module | kio
Class | KProtocolInfo
Inherits | KSycocaEntry

### enums

- FileNameUsedForCopying = {Name, FromURL }
- Type = {T_STREAM, T_FILESYSTEM, T_NONE, T_ERROR }

### methods

- KProtocolInfo (path)

  returns a KProtocolInfo instance

  Argument | Type | Default
  --- | --- | ---
  path | QString |

- KProtocolInfo (_str, offset)

  returns a KProtocolInfo instance

  Argument | Type | Default
  --- | --- | ---
  _str | QDataStream |
  offset | int |

- canCopyFromFile (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- canCopyFromFile (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- canCopyToFile (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- canCopyToFile (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- canDeleteRecursive (url)

  returns (bool)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- canDeleteRecursive ()

  returns (bool)
  In versions KDE 3.5.1 and above only

- canRenameFromFile (url)

  returns (bool)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- canRenameFromFile ()

  returns (bool)
  In versions KDE 3.5.1 and above only

- canRenameToFile (url)

  returns (bool)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- canRenameToFile ()

  returns (bool)
  In versions KDE 3.5.1 and above only

- capabilities (protocol)

  returns (QStringList)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- config (protocol)

  returns (QString)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- defaultMimetype (url)

  returns (QString)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- defaultMimetype (protocol)

  returns (QString)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- determineMimetypeFromExtension (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- docPath (protocol)

  returns (QString)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- exec_ (protocol)

  returns (QString)
  Renamed: was ' exec' in C++
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- extraFields (url)

  returns (KProtocolInfo.ExtraFieldList)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- fileNameUsedForCopying (url)

  returns (KProtocolInfo.FileNameUsedForCopying)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- fileNameUsedForCopying ()

  returns (KProtocolInfo.FileNameUsedForCopying)
  In versions KDE 3.5.1 and above only

- findProtocol (url)

  returns (KProtocolInfo)
  In versions KDE 3.4.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- icon (protocol)

  returns (QString)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- inputType (url)

  returns (KProtocolInfo.Type)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- inputType (protocol)

  returns (Type)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- isFilterProtocol (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- isFilterProtocol (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- isHelperProtocol (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- isHelperProtocol (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- isKnownProtocol (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- isKnownProtocol (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- isSourceProtocol (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- isSourceProtocol (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- isValid ()

  returns (bool)

- listing (url)

  returns (QStringList)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- listing (protocol)

  returns (QStringList)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- load (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDataStream |

- maxSlaves (protocol)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- name ()

  returns (QString)

- outputType (url)

  returns (KProtocolInfo.Type)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- outputType (protocol)

  returns (Type)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- protocolClass (protocol)

  returns (QString)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- protocols ()

  returns (QStringList)
  static

- proxiedBy (protocol)

  returns (QString)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- save (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QDataStream |

- showFilePreview (protocol)

  returns (bool)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsDeleting (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsDeleting (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsLinking (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsLinking (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsListing (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsListing (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsMakeDir (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsMakeDir (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsMoving (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsMoving (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsReading (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsReading (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- supportsWriting (url)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  url | KURL |

- supportsWriting (protocol)

  returns (bool)
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |

- uriParseMode (protocol)

  returns (KURL.URIMode)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  protocol | QString |