Class AppEntry
- Namespace
- ZeroInstall.DesktopIntegration
- Assembly
- ZeroInstall.DesktopIntegration.dll
Represents an application in the AppList identified by its interface URI.
public sealed class AppEntry : XmlUnknown, IMergeable<AppEntry>, IEquatable<AppEntry>, ICloneable<AppEntry>
- Inheritance
-
objectAppEntry
- Implements
- Inherited Members
Constructors
AppEntry()
public AppEntry()
Properties
AccessPoints
A set of AccessPointss to be registered in the desktop environment. Is null if no desktop integration has been performed yet.
public AccessPointList? AccessPoints { get; set; }
Property Value
AutoUpdate
Set to true to automatically download the newest available version of the application as a regular background task. Update checks will still be performed when the application is launched when set to false.
public bool AutoUpdate { get; set; }
Property Value
CapabilityLists
A set of Capability lists to be registered in the desktop environment. Only compatible architectures are handled.
[Browsable(false)]
public List<CapabilityList> CapabilityLists { get; }
Property Value
EffectiveRequirements
The Requirements if it is set, otherwise a basic reference to InterfaceUri.
[Browsable(false)]
public Requirements EffectiveRequirements { get; }
Property Value
Hostname
A regular expression a computer's hostname must match for this entry to be applied. Enables machine-specific entry filtering.
public string? Hostname { get; set; }
Property Value
InterfaceUri
The URI or local path of the interface defining the application or the pet-name if Requirements is set.
public required FeedUri InterfaceUri { get; set; }
Property Value
Name
The name of the application. Usually equal to Name.
public required string Name { get; set; }
Property Value
Requirements
A set of requirements/restrictions imposed by the user on the implementation selection process.
[Browsable(false)]
public Requirements? Requirements { get; set; }
Property Value
Timestamp
[Browsable(false)]
public DateTime Timestamp { get; set; }
Property Value
TimestampUnix
The time this entry was last modified encoded as Unix time (number of seconds since the epoch).
[Browsable(false)]
public long TimestampUnix { get; set; }
Property Value
Remarks
This value is ignored by clone and equality methods.
Methods
Clone()
Creates a deep copy of this AppEntry instance.
public AppEntry Clone()
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
LookupCapability<T>(string)
Retrieves the first Capability that matches a specific type and ID and is compatible with CurrentSystem.
public T LookupCapability<T>(string id) where T : Capability
Parameters
Returns
- T
The first matching Capability.
Type Parameters
TThe capability type to match.
Exceptions
- KeyNotFoundException
No capability matching
idandTwas found.
ToString()
Creates string representation suitable for console output.
public override string ToString()
Returns
Operators
operator ==(AppEntry?, AppEntry?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(AppEntry? left, AppEntry? right)
Parameters
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(AppEntry?, AppEntry?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(AppEntry? left, AppEntry? right)
Parameters
Returns
- bool
true if the objects are not equal; otherwise, false.