메소드 |
설명 |
|
ContentsHash ( ) : string |
|
|
CreatePackage ( Plasma metadata, string source, string destination ) : bool |
|
|
CreatePackage ( Plasma metadata, string source, string destination, string icon ) : bool |
Creates a package based on the metadata from the files contained in the source directory @arg metadata description of the package to create @arg source path to local directory containing the individual files to be added to the package @arg destination path to the package that should be created @arg icon path to the package icon |
|
Dispose ( ) : void |
|
|
EntryList ( string fileType ) : List |
Get the list of files of a given type. @arg fileType the type of file to look for, as defined in the package structure. |
|
FilePath ( string fileType ) : string |
Get the path to a given file. @arg fileType the type of file to look for, as defined in the package structure. The type must refer to a file in the package structure and not a directory. |
|
FilePath ( string fileType, string filename ) : string |
Get the path to a given file. @arg fileType the type of file to look for, as defined in the package structure @arg filename the name of the file |
|
InstallPackage ( string package, string packageRoot, string servicePrefix ) : bool |
Installs a package. name="package" path to the Plasmagik package name="packageRoot" path to the directory where the package should be installed to name="servicePrefix" the prefix for the desktop file, so as not to interfere with unrelated services (eg: "plasma-applet-"). If no prefix is set (e.g. a string() is passed in), then the package will NOT be registered as a service |
|
IsPublished ( ) : bool |
|
|
IsValid ( ) : bool |
|
|
ListInstalled ( string packageRoot ) : List |
Returns a list of all installed packages by name name="packageRoot" path to the directory where Plasmagik packages have been installed to |
|
ListInstalledPaths ( string packageRoot ) : List |
Returns a list of all paths of installed packages in the given root name="packageRoot" path to the directory where Plasmagik packages have been installed to |
|
Metadata ( ) : PackageMetadata |
|
|
Package ( string packagePath, Plasma structure ) : System |
Construct a Package object. @arg packagePath full path to the package directory @arg structure the package structure describing this package |
|
Package ( string packageRoot, string package, Plasma structure ) : System |
Default constructor @arg packageRoot path to the package installation root @arg package the name of the package @arg structure the package structure describing this package |
|
Path ( ) : string |
|
|
Publish ( uint methods, string name ) : void |
Publish this package on the network. name="methods" the ways to announce this package on the network. |
|
RegisterPackage ( Plasma data, string iconPath ) : bool |
Registers a package described by the given desktop file @arg the full path to the desktop file (must be KPluginInfo compatible) |
|
SetPath ( string path ) : void |
Sets the path to the root of this package @arg path and absolute path |
|
Structure ( ) : Plasma.PackageStructure |
|
|
UninstallPackage ( string package, string packageRoot, string servicePrefix ) : bool |
Uninstalls a package. name="package" path to the Plasmagik package name="packageRoot" path to the directory where the package should be installed to name="servicePrefix" the prefix for the desktop file, so as not to interfere with unrelated services (eg: "plasma-applet-") |
|
Unpublish ( ) : void |
|
|
Unpublish ( string name ) : void |
Remove this package from the network. |
|