27 CTxtMsgFromClient::CTxtMsgFromClient
34 , mTextMessageEvent( *aEvent )
36 , mOriginationTime( _T("") )
37 , mMessageText( _T("") )
38 , mMessageId( _T("") )
39 #if( FMI_SUPPORT_A607 ) 58 CDataExchange * aDataExchange
61 CDialog::DoDataExchange( aDataExchange );
65 #if( FMI_SUPPORT_A607 ) 83 TCHAR stringBuffer[200];
86 char localTimeString[13];
88 CDialog::OnInitDialog();
95 stringBuffer[13] =
'\0';
99 stringBuffer[199] =
'\0';
102 #if( FMI_SUPPORT_A607 ) 108 if( latitudeDegrees < 0 )
110 mLatitude.Format( _T(
"%08.6f °S" ), latitudeDegrees * -1 );
114 mLatitude.Format( _T(
"%08.6f °N" ), latitudeDegrees );
117 if( longitudeDegrees < 0 )
119 mLongitude.Format( _T(
"%08.6f °W" ), longitudeDegrees * -1 );
123 mLongitude.Format( _T(
"%08.6f °E" ), longitudeDegrees );
#define IDC_CLIENTMSG_TXT_LAT
sint32 longitude
Longitude of the device sending the message.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
CString mLatitude
String representation of device latitude.
CString mMessageText
String representation of the text message.
Modal pop up dialog displaying a client to server open text message.
sint32 latitude
Latitude of the device sending the message.
#define IDC_CLIENTMSG_TXT_MESSAGE
uint32 message_id
The message ID.
CString mMessageId
String representation of the message ID.
void UTIL_format_time_string(const date_time_data_type *aDateTime, char *aResultString, int aResultStringSize)
Converts a time structure (date_time_data_type) to a time string representation.
#define IDC_CLIENTMSG_TXT_LON
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
#define IDC_CLIENTMSG_TXT_TIME
void UTIL_convert_seconds_to_time_type(const time_type *aSeconds, date_time_data_type *aDateTime)
Converts from a Garmin time to a structure containing separate members for hour, minute, and second (time_type).
Date & time data type with separate fields for month, day, year, hour, minute, and second...
double UTIL_convert_semicircles_to_degrees(sint32 aSemicircles)
Converts a latitude/longitude from semicircles to degrees.
CString toCString(codepage_type aCodePage) const
CString representation of the message ID.
text_msg_from_client_event_type mTextMessageEvent
The text message event that caused this dialog to be displayed.
codepage_type mClientCodepage
Code page used for encoding of text fields when communicating with the client.
BOOL OnInitDialog()
Initialize the dialog.
CString mLongitude
String representation of device longitude.
Serial communication controller for Garmin and FMI packets.
#define IDC_CLIENTMSG_TXT_LINK_ID
#define INVALID_LAT
placeholder for invalid latitude value
#define IDD_TXT_MSG_FROM_CLIENT
time_type origination_time
Origination time on the client.
char message_text[200]
Message sent by the client.
MessageId link_id
ID of server-to-client message that this is a reply for.
CString mOriginationTime
String representation of the origination time on the client.
Structure containing details for a client to server text message.
CString mLinkId
String representation of the link ID (corresponding server to client message ID)
virtual ~CTxtMsgFromClient()
Destructor.
#define IDC_CLIENTMSG_TXT_ID
void UTIL_convert_UTC_to_local(const time_type *aUtcTime, time_type *aLocalTime)
Converts a time_type from UTC to local time.
uint32 time_type
Absolute time (number of seconds since 12/31/1989 12:00 am UTC)