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

A mock access point that does nothing (used for testing). Points to a Model.Capabilities.FileType. More...

Inheritance diagram for ZeroInstall.DesktopIntegration.AccessPoints.MockAccessPoint:
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 "MockAccessPoint: ID". Not safe for parsing!
 
override AccessPoint Clone ()
 Creates a deep copy of this AccessPoint instance. More...
 
bool Equals (MockAccessPoint? 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 ()
 

Properties

string? ID [getset]
 An identifier that controls the result of GetConflictIDs.
 
string? ApplyFlagPath [getset]
 The path to a file to create when Apply is called.
 
string? UnapplyFlagPath [getset]
 The path to a file to create when Unapply is called.
 
- Properties inherited from ZeroInstall.DesktopIntegration.AccessPoints.DefaultAccessPoint
string Capability = default! [getset]
 The ID of the Capability to be made the default handler.
 

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)
 

Detailed Description

A mock access point that does nothing (used for testing). Points to a Model.Capabilities.FileType.

Member Function Documentation

◆ Apply()

override void ZeroInstall.DesktopIntegration.AccessPoints.MockAccessPoint.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.MockAccessPoint.Clone ( )
virtual

Creates a deep copy of this AccessPoint instance.

Implements ZeroInstall.DesktopIntegration.AccessPoints.AccessPoint.

◆ GetConflictIDs()

override IEnumerable< string > ZeroInstall.DesktopIntegration.AccessPoints.MockAccessPoint.GetConflictIDs ( AppEntry  appEntry)
virtual

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.MockAccessPoint.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: