// Remember data is a ByteArray, so we need to translate this bytes numbers into ASCII(or UTF8) characters.

+

// Remember data is a ByteArray, so we need to translate

+

// this bytes numbers into ASCII(or UTF8) characters.

function loadData(iojb, data){

function loadData(iojb, data){

var str = "";

var str = "";

Latest revision as of 20:03, 22 February 2015

LocalIO

This Extension provides access to local files using asynchronous IOJob objects.

Functions:

IOJobgetUrl(Url url): attempts to fetch the file using an IOJob

IOJobgetUrl(String url): attempts to fetch the file using an IOJob

StringuserDataPath([String type, String path]): (scripting version >= 4) returns the default path for user data. Called with no parameters, it returns the user's home directory. If only one string is passed in, the standard directory for that type of data in the user's home directory will be located; the following values are recognized:

documents

music

video

downloads

pictures

autostart

desktop (should be considered deprecated for Plasma workspaces)

If a second string is passed in, it is considered a request for a specific path and the following types are recognized:

apps - Applications menu (.desktop files).

autostart - Autostart directories (both XDG and kde-specific)

cache - Cached information (e.g. favicons, web-pages)

cgi - CGIs to run from kdehelp.

config - Configuration files.

data - Where applications store data.

emoticons - Emoticons themes

exe - Executables in $prefix/bin. findExe() for a function that takes $PATH into account.

html - HTML documentation.

icon - Icons, see KIconLoader.

kcfg - KConfigXT config files.

lib - Libraries.

locale - Translation files for KLocale.

mime - Mime types defined by KDE-specific .desktop files.

module - Module (dynamically loaded library).

qtplugins - Qt plugins (dynamically loaded objects for Qt)

services - Services.

servicetypes - Service types.

sound - Application sounds.

templates - Templates for the "Create new file" functionality.

wallpaper - Wallpapers.

tmp - Temporary files (specific for both current host and current user)

socket - UNIX Sockets (specific for both current host and current user)