Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.AccessPoints.ContextMenu Class Reference

Integrates an application into a file manager's context menu. More...

Inheritance diagram for ZeroInstall.DesktopIntegration.AccessPoints.ContextMenu:
ZeroInstall.DesktopIntegration.AccessPoints.DefaultAccessPoint ZeroInstall.DesktopIntegration.AccessPoints.AccessPoint ZeroInstall.Model.XmlUnknown NanoByte.Common.ICloneable< AccessPoint >

Public Member Functions

override IEnumerable< string > GetConflictIDs (AppEntry appEntry)
 Retrieves identifiers from a namespace global to all AccessPoints. Collisions in this namespace indicate that the respective AccessPoints are in conflict cannot be applied on a system at the same time. More...
 
override void Apply (AppEntry appEntry, Feed feed, IIconStore iconStore, bool machineWide)
 Applies this access point to the current machine. More...
 
override void Unapply (AppEntry appEntry, bool machineWide)
 Unapply this access point on the current machine. More...
 
override string ToString ()
 Returns the access point in the form "ContextMenu". Not safe for parsing!
 
override AccessPoint Clone ()
 Creates a deep copy of this AccessPoint instance. More...
 
bool Equals (ContextMenu? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.DesktopIntegration.AccessPoints.DefaultAccessPoint
override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.Model.XmlUnknown
string ToShortXml ()
 Returns a shortened XML representation (with attributes but without child elements). More...
 
override int GetHashCode ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< AccessPoint >
AccessPoint Clone ()
 

Additional Inherited Members

- Public Attributes inherited from ZeroInstall.Model.XmlUnknown
XmlAttribute?[] UnknownAttributes
 Contains any unknown additional XML attributes.
 
XmlElement?[] UnknownElements
 Contains any unknown additional XML elements.
 
- Static Public Attributes inherited from ZeroInstall.DesktopIntegration.AccessPoints.DefaultAccessPoint
const string CategoryName = "default-app"
 The name of this category of AccessPoints as used by command-line interfaces.
 
- Protected Member Functions inherited from ZeroInstall.DesktopIntegration.AccessPoints.DefaultAccessPoint
bool Equals (DefaultAccessPoint? other)
 
- Protected Member Functions inherited from ZeroInstall.Model.XmlUnknown
void EnsureAttribute (object? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null). More...
 
void EnsureAttributeSafeID (string? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null) and only contains alphanumeric characters, spaces ( ), dots (.), underscores (_), hyphens (-) and plus signs (+). More...
 
bool Equals (XmlUnknown? other)
 
- Properties inherited from ZeroInstall.DesktopIntegration.AccessPoints.DefaultAccessPoint
string Capability = default! [getset]
 The ID of the Capability to be made the default handler.
 

Detailed Description

Integrates an application into a file manager's context menu.

See also
Model.Capabilities.ContextMenu

Member Function Documentation

◆ Apply()

override void ZeroInstall.DesktopIntegration.AccessPoints.ContextMenu.Apply ( AppEntry  appEntry,
Feed  feed,
IIconStore  iconStore,
bool  machineWide 
)
inlinevirtual

Applies this access point to the current machine.

Implements ZeroInstall.DesktopIntegration.AccessPoints.AccessPoint.

◆ Clone()

override AccessPoint ZeroInstall.DesktopIntegration.AccessPoints.ContextMenu.Clone ( )
virtual

Creates a deep copy of this AccessPoint instance.

Implements ZeroInstall.DesktopIntegration.AccessPoints.AccessPoint.

◆ GetConflictIDs()

override IEnumerable< string > ZeroInstall.DesktopIntegration.AccessPoints.ContextMenu.GetConflictIDs ( AppEntry  appEntry)
inlinevirtual

Retrieves identifiers from a namespace global to all AccessPoints. Collisions in this namespace indicate that the respective AccessPoints are in conflict cannot be applied on a system at the same time.

Implements ZeroInstall.DesktopIntegration.AccessPoints.AccessPoint.

◆ Unapply()

override void ZeroInstall.DesktopIntegration.AccessPoints.ContextMenu.Unapply ( AppEntry  appEntry,
bool  machineWide 
)
inlinevirtual

Unapply this access point on the current machine.

Implements ZeroInstall.DesktopIntegration.AccessPoints.AccessPoint.


The documentation for this class was generated from the following file: