org.kde.koala
public class KProtocolInfo extends KSycocaEntry
UNKNOWN: Information about I/O (Internet, etc.
Field Summary | |
---|---|
static int | T_ERROR |
static int | T_FILESYSTEM |
static int | T_NONE |
static int | T_STREAM
Describes the type of a protocol. |
Constructor Summary | |
---|---|
protected | KProtocolInfo(Class dummy) |
KProtocolInfo(String path)
Read a protocol description file | |
KProtocolInfo(QDataStream _str, int offset) |
Method Summary | |
---|---|
static boolean | canCopyFromFile(KURL url)
Returns whether the protocol can copy files/objects directly from the
filesystem itself. |
static boolean | canCopyToFile(KURL url)
Returns whether the protocol can copy files/objects directly to the
filesystem itself. |
static boolean | canDeleteRecursive(KURL url)
Returns whether the protocol can recursively delete directories by itself.
|
protected boolean | canDeleteRecursive() |
static boolean | canRenameFromFile(KURL url)
Returns whether the protocol can rename (i.e. move fast) files/objects
directly from the filesystem itself. |
protected boolean | canRenameFromFile() |
static boolean | canRenameToFile(KURL url)
Returns whether the protocol can rename (i.e. move fast) files/objects
directly to the filesystem itself. |
protected boolean | canRenameToFile() |
static ArrayList | capabilities(String protocol)
Returns the list of capabilities provided by the kioslave implementing
this protocol.
|
static String | config(String protocol)
Returns the name of the config file associated with the
specified protocol. |
static String | defaultMimetype(KURL url)
Returns default mimetype for this URL based on the protocol.
|
static boolean | determineMimetypeFromExtension(String protocol)
Returns whether mimetypes can be determined based on extension for this
protocol. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
static String | docPath(String protocol)
Returns the documentation path for the specified protocol.
|
static String | exec(String protocol)
Returns the library / executable to open for the protocol protocol
Example : "kio_ftp", meaning either the executable "kio_ftp" or
the library "kio_ftp.la" (recommended), whichever is available.
|
protected void | finalize() Deletes the wrapped C++ instance |
protected static KProtocolInfo | findProtocol(KURL url) |
static String | icon(String protocol)
Returns the name of the icon, associated with the specified protocol.
|
static int | inputType(KURL url)
Returns whether the protocol should be treated as a filesystem
or as a stream when reading from it.
|
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static boolean | isFilterProtocol(KURL url)
Returns whether the protocol can act as a filter protocol.
|
static boolean | isFilterProtocol(String protocol)
Same as above except you can supply just the protocol instead of
the whole URL. |
static boolean | isHelperProtocol(KURL url)
Returns whether the protocol can act as a helper protocol.
|
static boolean | isHelperProtocol(String protocol)
Same as above except you can supply just the protocol instead of
the whole URL. |
static boolean | isKnownProtocol(KURL url)
Returns whether a protocol is installed that is able to handle url. |
static boolean | isKnownProtocol(String protocol)
Same as above except you can supply just the protocol instead of
the whole URL. |
static boolean | isSourceProtocol(KURL url)
Returns whether the protocol can act as a source protocol.
|
boolean | isValid()
Returns whether the protocol description file is valid. |
static ArrayList | listing(KURL url)
Returns the list of fields this protocol returns when listing
The current possibilities are
Name, Type, Size, Date, AccessDate, Access, Owner, Group, Link, URL, MimeType
as well as Extra1, Extra2 etc. for extra fields (see extraFields).
|
void | load(QDataStream arg1)
Load the protocol info from a stream. |
static int | maxSlaves(String protocol)
Returns the soft limit on the number of slaves for this protocol.
|
String | name()
Returns the name of the protocol.
|
static int | outputType(KURL url)
Returns whether the protocol should be treated as a filesystem
or as a stream when writing to it.
|
static String | protocolClass(String protocol)
Returns the protocol class for the specified protocol.
|
static ArrayList | protocols()
Returns list of all known protocols. |
static String | proxiedBy(String protocol)
Returns the name of the protocol through which the request
will be routed if proxy support is enabled.
|
void | save(QDataStream arg1)
Save the protocol info to a stream. |
static boolean | showFilePreview(String protocol)
Returns whether file previews should be shown for the specified protocol.
|
static boolean | supportsDeleting(KURL url)
Returns whether the protocol can delete files/objects.
|
static boolean | supportsLinking(KURL url)
Returns whether the protocol can create links between files/objects.
|
static boolean | supportsListing(KURL url)
Returns whether the protocol can list files/objects.
|
static boolean | supportsMakeDir(KURL url)
Returns whether the protocol can create directories/folders.
|
static boolean | supportsMoving(KURL url)
Returns whether the protocol can move files/objects between different
locations.
|
static boolean | supportsReading(KURL url)
Returns whether the protocol can retrieve data from URLs.
|
static boolean | supportsWriting(KURL url)
Returns whether the protocol can store data to URLs.
|
static int | uriParseMode(String protocol)
Returns the suggested URI parsing mode for the KURL parser.
|
UNKNOWN: Describes the type of a protocol.
Parameters: path the path of the description file
UNKNOWN: Read a protocol description file
UNKNOWN:
Parameters: url the url to check
Returns: true if the protocol can copy files from the local file system
UNKNOWN: Returns whether the protocol can copy files/objects directly from the filesystem itself.
Parameters: url the url to check
Returns: true if the protocol can copy files to the local file system
UNKNOWN: Returns whether the protocol can copy files/objects directly to the filesystem itself.
Parameters: url the url to check
Returns: true if the protocol can delete non-empty directories by itself.
UNKNOWN: Returns whether the protocol can recursively delete directories by itself.
Parameters: url the url to check
Returns: true if the protocol can rename/move files from the local file system
UNKNOWN: Returns whether the protocol can rename (i.
Parameters: url the url to check
Returns: true if the protocol can rename files to the local file system
UNKNOWN: Returns whether the protocol can rename (i.
Parameters: protocol the protocol to check
Returns: the list of capabilities.
UNKNOWN: Returns the list of capabilities provided by the kioslave implementing this protocol.
Parameters: protocol the protocol to check
Returns: the config file, or null if unknown
UNKNOWN: Returns the name of the config file associated with the specified protocol.
Parameters: url the url to check
Returns: the default mime type of the protocol, or null if unknown
UNKNOWN: Returns default mimetype for this URL based on the protocol.
Parameters: protocol the protocol to check
Returns: true if the mime types can be determined by extension
UNKNOWN: Returns whether mimetypes can be determined based on extension for this protocol.
Parameters: protocol the protocol to check
Returns: the docpath of the protocol, or null if unknown
UNKNOWN: Returns the documentation path for the specified protocol.
protocol
Example : "kio_ftp", meaning either the executable "kio_ftp" or
the library "kio_ftp.la" (recommended), whichever is available.
This corresponds to the "exec=" field in the protocol description file.Parameters: protocol the protocol to check
Returns: the executable of library to open, or null for unsupported protocols
See Also: KURL
UNKNOWN: Returns the library / executable to open for the protocol protocol
Example : "kio_ftp", meaning either the executable "kio_ftp" or the library "kio_ftp.
Parameters: protocol the protocol to check
Returns: the icon of the protocol, or null if unknown
UNKNOWN: Returns the name of the icon, associated with the specified protocol.
Parameters: url the url to check
Returns: the input type of the given url
UNKNOWN: Returns whether the protocol should be treated as a filesystem or as a stream when reading from it.
Parameters: url the url to check
Returns: true if the protocol is a filter (e.g. gzip), false if the protocol is a helper or source
UNKNOWN: Returns whether the protocol can act as a filter protocol.
UNKNOWN: Same as above except you can supply just the protocol instead of the whole URL.
Parameters: url the url to check
Returns: true if the protocol is a helper protocol (e.g. vnc), false if not (e.g. http)
UNKNOWN: Returns whether the protocol can act as a helper protocol.
UNKNOWN: Same as above except you can supply just the protocol instead of the whole URL.
url.
Parameters: url the url to check
Returns: true if the protocol is known
See Also: KProtocolInfo
UNKNOWN: Returns whether a protocol is installed that is able to handle url.
UNKNOWN: Same as above except you can supply just the protocol instead of the whole URL.
Parameters: url the url to check
Returns: true if the protocol is a source of data (e.g. http), false if the protocol is a filter (e.g. gzip)
UNKNOWN: Returns whether the protocol can act as a source protocol.
Returns: true if valid, false otherwise
UNKNOWN: Returns whether the protocol description file is valid.
Parameters: url the url to check
Returns: a list of field names
UNKNOWN: Returns the list of fields this protocol returns when listing The current possibilities are Name, Type, Size, Date, AccessDate, Access, Owner, Group, Link, URL, MimeType as well as Extra1, Extra2 etc.
UNKNOWN:
Parameters: protocol the protocol to check
Returns: the maximum number of slaves, or 1 if unknown
UNKNOWN: Returns the soft limit on the number of slaves for this protocol.
Returns: the name of the protocol
See Also: KURL
UNKNOWN: Returns the name of the protocol.
Parameters: url the url to check
Returns: the output type of the given url
UNKNOWN: Returns whether the protocol should be treated as a filesystem or as a stream when writing to it.
Parameters: protocol the protocol to check
Returns: the class of the protocol, or null if unknown
UNKNOWN: Returns the protocol class for the specified protocol.
Returns: a list of all known protocols
UNKNOWN: Returns list of all known protocols.
UNKNOWN: Returns the name of the protocol through which the request will be routed if proxy support is enabled.
UNKNOWN:
Parameters: protocol the protocol to check
Returns: true if previews should be shown by default, false otherwise
UNKNOWN: Returns whether file previews should be shown for the specified protocol.
Parameters: url the url to check
Returns: true if the protocol supports deleting
UNKNOWN: Returns whether the protocol can delete files/objects.
Parameters: url the url to check
Returns: true if the protocol supports linking
UNKNOWN: Returns whether the protocol can create links between files/objects.
Parameters: url the url to check
Returns: true if the protocol support listing
See Also: KProtocolInfo
UNKNOWN: Returns whether the protocol can list files/objects.
Parameters: url the url to check
Returns: true if the protocol can create directories
UNKNOWN: Returns whether the protocol can create directories/folders.
Parameters: url the url to check
Returns: true if the protocol supports moving
UNKNOWN: Returns whether the protocol can move files/objects between different locations.
Parameters: url the url to check
Returns: true if it is possible to read from the URL
UNKNOWN: Returns whether the protocol can retrieve data from URLs.
Parameters: url the url to check
Returns: true if the protocol supports writing
UNKNOWN: Returns whether the protocol can store data to URLs.
Parameters: protocol the protocol to check
Returns: the suggested parsing mode, or KURL.Auto if unspecified
UNKNOWN: Returns the suggested URI parsing mode for the KURL parser.