mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 10:00:34 +02:00
More lazdevice documentation
git-svn-id: trunk@34630 -
This commit is contained in:
parent
80e903b599
commit
6386665a85
@ -165,8 +165,12 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- procedure Visibility: public -->
|
<!-- procedure Visibility: public -->
|
||||||
<element name="TLazMessaging.SendMessage">
|
<element name="TLazMessaging.SendMessage">
|
||||||
<short></short>
|
<short>Sends a message to the target specified on it</short>
|
||||||
<descr>
|
<descr><p>The message to be sent should be created with the method CreateMessage
|
||||||
|
from this same class and later released with FreeMessage. The same message can be
|
||||||
|
sent multiple times, but ideally it should not be edited after sending the first
|
||||||
|
time to avoid confusion when obtaining the message object back in the status
|
||||||
|
callback.<p>
|
||||||
</descr>
|
</descr>
|
||||||
<errors>
|
<errors>
|
||||||
</errors>
|
</errors>
|
||||||
@ -181,7 +185,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- procedure Visibility: public -->
|
<!-- procedure Visibility: public -->
|
||||||
<element name="TLazMessaging.CreateMessage">
|
<element name="TLazMessaging.CreateMessage">
|
||||||
<short></short>
|
<short>Creates a new message which can be sent with SendMessage</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<errors>
|
<errors>
|
||||||
@ -197,7 +201,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- procedure Visibility: public -->
|
<!-- procedure Visibility: public -->
|
||||||
<element name="TLazMessaging.FreeMessage">
|
<element name="TLazMessaging.FreeMessage">
|
||||||
<short></short>
|
<short>Removes a message created with CreateMessage</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<errors>
|
<errors>
|
||||||
@ -222,7 +226,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- class Visibility: default -->
|
<!-- class Visibility: default -->
|
||||||
<element name="TLazPositionInfo">
|
<element name="TLazPositionInfo">
|
||||||
<short></short>
|
<short>Represents the hardware GPS device</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<errors>
|
<errors>
|
||||||
@ -233,7 +237,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.IsPositionDataAvailable">
|
<element name="TLazPositionInfo.IsPositionDataAvailable">
|
||||||
<short></short>
|
<short>Indicates if position info was read in the life of this program</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -242,7 +246,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.accuracy">
|
<element name="TLazPositionInfo.accuracy">
|
||||||
<short></short>
|
<short>The horizontal accuracy of the position in meters</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -251,7 +255,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.altitude">
|
<element name="TLazPositionInfo.altitude">
|
||||||
<short></short>
|
<short>Altitude in meters in relation to the sea level using the World Geodetic System 1984 (WGS84) datum</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -260,16 +264,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.altitudeAccuracy">
|
<element name="TLazPositionInfo.altitudeAccuracy">
|
||||||
<short></short>
|
<short>The vertical accuracy of the position in meters, or zero if not available</short>
|
||||||
<descr>
|
|
||||||
</descr>
|
|
||||||
<seealso>
|
|
||||||
</seealso>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<!-- variable Visibility: public -->
|
|
||||||
<element name="TLazPositionInfo.cellID">
|
|
||||||
<short></short>
|
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -278,7 +273,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.latitude">
|
<element name="TLazPositionInfo.latitude">
|
||||||
<short></short>
|
<short>Latitude in degrees using the World Geodetic System 1984 (WGS84) datum</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -287,7 +282,16 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.longitude">
|
<element name="TLazPositionInfo.longitude">
|
||||||
<short></short>
|
<short>Longitude in degrees using the World Geodetic System 1984 (WGS84) datum</short>
|
||||||
|
<descr>
|
||||||
|
</descr>
|
||||||
|
<seealso>
|
||||||
|
</seealso>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<!-- variable Visibility: public -->
|
||||||
|
<element name="TLazPositionInfo.longitude">
|
||||||
|
<short>In meters / second</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -296,7 +300,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- variable Visibility: public -->
|
<!-- variable Visibility: public -->
|
||||||
<element name="TLazPositionInfo.timeStamp">
|
<element name="TLazPositionInfo.timeStamp">
|
||||||
<short></short>
|
<short>The time when the latest location was established</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
@ -321,7 +325,7 @@ because there is no signal here.</short>
|
|||||||
|
|
||||||
<!-- property Visibility: public -->
|
<!-- property Visibility: public -->
|
||||||
<element name="TLazPositionInfo.OnPositionRetrieved">
|
<element name="TLazPositionInfo.OnPositionRetrieved">
|
||||||
<short></short>
|
<short>Called asynchronously when the position is read</short>
|
||||||
<descr>
|
<descr>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso>
|
<seealso>
|
||||||
|
@ -70,11 +70,13 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create; virtual;
|
constructor Create; virtual;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure SendMessage(AMsg: TLazDeviceMessage); // Attempt to send the specified message.
|
// Attempt to send the specified message.
|
||||||
|
procedure SendMessage(AMsg: TLazDeviceMessage);
|
||||||
function CreateMessage: TLazDeviceMessage;
|
function CreateMessage: TLazDeviceMessage;
|
||||||
procedure FreeMessage(AMessage: TLazDeviceMessage);
|
procedure FreeMessage(AMessage: TLazDeviceMessage);
|
||||||
// Called asynchronously when there is a message sending status
|
// Called asynchronously when there is a message status
|
||||||
property OnMessagingStatus: TOnMessagingStatus read FOnMessagingStatus write FOnMessagingStatus;
|
property OnMessagingStatus: TOnMessagingStatus
|
||||||
|
read FOnMessagingStatus write FOnMessagingStatus;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// TLazPositionInfo
|
// TLazPositionInfo
|
||||||
@ -86,12 +88,12 @@ type
|
|||||||
IsPositionDataAvailable: Boolean; // Indicates if position info was read in the life of this program
|
IsPositionDataAvailable: Boolean; // Indicates if position info was read in the life of this program
|
||||||
// These fields hold the last position information read
|
// These fields hold the last position information read
|
||||||
accuracy: Double; // The horizontal accuracy of the position in meters
|
accuracy: Double; // The horizontal accuracy of the position in meters
|
||||||
altitude: Double; // Altitude in meters using the World Geodetic System 1984 (WGS84) datum.
|
altitude: Double; // Altitude in meters in relation to the sea level using the World Geodetic System 1984 (WGS84) datum.
|
||||||
altitudeAccuracy: Double; // The vertical accuracy of the position in meters, or null if not available.
|
altitudeAccuracy: Double; // The vertical accuracy of the position in meters, or zero if not available.
|
||||||
latitude: Double; // Latitude in degrees using the World Geodetic System 1984 (WGS84) datum.
|
latitude: Double; // Latitude in degrees using the World Geodetic System 1984 (WGS84) datum.
|
||||||
longitude: Double; // Longitude in degrees using the World Geodetic System 1984 (WGS84) datum.
|
longitude: Double; // Longitude in degrees using the World Geodetic System 1984 (WGS84) datum.
|
||||||
speed: Double; // In meters / second
|
speed: Double; // In meters / second
|
||||||
timeStamp: TDateTime; // The time when the location was established.
|
timeStamp: TDateTime; // The time when the latest location was established.
|
||||||
procedure RequestPositionInfo(AMethod: TLazPositionMethod);
|
procedure RequestPositionInfo(AMethod: TLazPositionMethod);
|
||||||
// Called asynchronously when the position is read
|
// Called asynchronously when the position is read
|
||||||
property OnPositionRetrieved: TNotifyEvent read FOnPositionRetrieved write FOnPositionRetrieved;
|
property OnPositionRetrieved: TNotifyEvent read FOnPositionRetrieved write FOnPositionRetrieved;
|
||||||
|
Loading…
Reference in New Issue
Block a user