Class QRemoteObject
[TypeConverter(typeof(RemoteObject.RemoteObjectTypeConverter))]
public class QRemoteObject : RemoteObject, IDisposable
- Inheritance
-
RemoteObjectQRemoteObject
- Implements
- Inherited Members
Constructors
QRemoteObject(long, string[], IQtBaseAutomation)
public QRemoteObject(long objId, string[] lineage, IQtBaseAutomation qtBase)
Parameters
Methods
Dispose(bool)
Releases resources or references acquired by the remote object. Get/Set/Invoke will no longer be called/callable on this instance.
protected override void Dispose(bool disposing)
Parameters
disposingbool
GetMethodAndPropertyInfos(List<PropertyInfo>, List<MethodInfo>)
Populates the supplied lists with object property and method metadata. Methods with get/set semantics should be mapped as properties.
protected override void GetMethodAndPropertyInfos(List<RemoteObject.PropertyInfo> props, List<RemoteObject.MethodInfo> methods)
Parameters
propsList<RemoteObject.PropertyInfo>The list of properties to populate.
methodsList<RemoteObject.MethodInfo>The list of properties to populate.
GetRawListItem(int)
Returns an item if the objects represents a list.
public override object GetRawListItem(int idx)
Parameters
idxintThe zero-based list index.
Returns
- object
The list item.
GetRawProperty(PropertyInfo)
Returns the property value.
public override object GetRawProperty(RemoteObject.PropertyInfo internalProp)
Parameters
internalPropRemoteObject.PropertyInfo
Returns
- object
The property value.
GetTechName()
A human-readable technology name (e.g. "WinForms")
protected override string GetTechName()
Returns
- string
.
GetTypeLineage()
Returns a list of ancestor types for this objects, with the objects type/class name being the first item. If the target technology does not support this concept, return a list with at least one generic name.
protected override string[] GetTypeLineage()
Returns
- string[]
.
InvokeRawMethod(MethodInfo, params object[])
Invokes a method with the supplied name and arguments. Throws if method invocation fails.
public override object InvokeRawMethod(RemoteObject.MethodInfo method, params object[] args)
Parameters
methodRemoteObject.MethodInfoThe info object of the method to call.
argsobject[]A list to arguments.
Returns
- object
The return value of the method, if any.
SetRawProperty(PropertyInfo, object)
Sets the property to a value. Throws an exception if setting value fails or is not supported.
public override void SetRawProperty(RemoteObject.PropertyInfo internalProp, object value)
Parameters
internalPropRemoteObject.PropertyInfovalueobjectThe value of the property to set.