C# 클래스 Plasma.Package

상속: Object, IDisposable
파일 보기 프로젝트 열기: 0xd34df00d/Qross

보호된 프로퍼티들

프로퍼티 타입 설명
interceptor Qyoto.SmokeInvocation

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
CreateProxy ( ) : void
Package ( Type dummy ) : System

비공개 메소드들

메소드 설명
Package ( ) : System

메소드 상세

ContentsHash() 공개 메소드

public ContentsHash ( ) : string
리턴 string

CreatePackage() 공개 정적인 메소드

public static CreatePackage ( Plasma metadata, string source, string destination ) : bool
metadata Plasma
source string
destination string
리턴 bool

CreatePackage() 공개 정적인 메소드

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
public static CreatePackage ( Plasma metadata, string source, string destination, string icon ) : bool
metadata Plasma
source string
destination string
icon string
리턴 bool

CreateProxy() 보호된 메소드

protected CreateProxy ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EntryList() 공개 메소드

Get the list of files of a given type. @arg fileType the type of file to look for, as defined in the package structure.
public EntryList ( string fileType ) : List
fileType string
리턴 List

FilePath() 공개 메소드

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.
public FilePath ( string fileType ) : string
fileType string
리턴 string

FilePath() 공개 메소드

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
public FilePath ( string fileType, string filename ) : string
fileType string
filename string
리턴 string

InstallPackage() 공개 정적인 메소드

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
public static InstallPackage ( string package, string packageRoot, string servicePrefix ) : bool
package string
packageRoot string
servicePrefix string
리턴 bool

IsPublished() 공개 메소드

public IsPublished ( ) : bool
리턴 bool

IsValid() 공개 메소드

public IsValid ( ) : bool
리턴 bool

ListInstalled() 공개 정적인 메소드

Returns a list of all installed packages by name name="packageRoot" path to the directory where Plasmagik packages have been installed to
public static ListInstalled ( string packageRoot ) : List
packageRoot string
리턴 List

ListInstalledPaths() 공개 정적인 메소드

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
public static ListInstalledPaths ( string packageRoot ) : List
packageRoot string
리턴 List

Metadata() 공개 메소드

public Metadata ( ) : PackageMetadata
리턴 PackageMetadata

Package() 보호된 메소드

protected Package ( Type dummy ) : System
dummy System.Type
리턴 System

Package() 공개 메소드

Construct a Package object. @arg packagePath full path to the package directory @arg structure the package structure describing this package
public Package ( string packagePath, Plasma structure ) : System
packagePath string
structure Plasma
리턴 System

Package() 공개 메소드

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
public Package ( string packageRoot, string package, Plasma structure ) : System
packageRoot string
package string
structure Plasma
리턴 System

Path() 공개 메소드

public Path ( ) : string
리턴 string

Publish() 공개 메소드

Publish this package on the network. name="methods" the ways to announce this package on the network.
public Publish ( uint methods, string name ) : void
methods uint
name string
리턴 void

RegisterPackage() 공개 정적인 메소드

Registers a package described by the given desktop file @arg the full path to the desktop file (must be KPluginInfo compatible)
public static RegisterPackage ( Plasma data, string iconPath ) : bool
data Plasma
iconPath string
리턴 bool

SetPath() 공개 메소드

Sets the path to the root of this package @arg path and absolute path
public SetPath ( string path ) : void
path string
리턴 void

Structure() 공개 메소드

public Structure ( ) : Plasma.PackageStructure
리턴 Plasma.PackageStructure

UninstallPackage() 공개 정적인 메소드

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-")
public static UninstallPackage ( string package, string packageRoot, string servicePrefix ) : bool
package string
packageRoot string
servicePrefix string
리턴 bool

Unpublish() 공개 메소드

public Unpublish ( ) : void
리턴 void

Unpublish() 공개 메소드

Remove this package from the network.
public Unpublish ( string name ) : void
name string
리턴 void

프로퍼티 상세

interceptor 보호되어 있는 프로퍼티

protected SmokeInvocation,Qyoto interceptor
리턴 Qyoto.SmokeInvocation