ProcSM.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:3k
- // ProcSM.h: interface for the CProcSM class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_PROCSM_H__4D900422_58AD_11D8_B7C7_00E01808A228__INCLUDED_)
- #define AFX_PROCSM_H__4D900422_58AD_11D8_B7C7_00E01808A228__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "GpsScDoc.h"
- #include "DlgAsCenterDlg.h"
- #include "DlgAsNormaldlg.h"
- class CProcSM : public CObject
- {
- public:
- CProcSM();
- virtual ~CProcSM();
- // Functions
- public:
- void BeginThread(); //begin the thread
- void DealSystemMsg(CString strReceived);
- void JudgeReceivedMsg(CString strReceived);
- void SetStr2Send(CString sSendStr);
- CString ConstructSendstr(CString strOrder,CString strVehicleNumber,CString strSMConttent);
- long WriteComPort(CString str2Write,CGpsSCDoc *pDoc);
- long ReadComPort(WPARAM wParam,CGpsSCDoc *pDoc);
- void SetDocPointer(CGpsSCDoc *pDoc);
- void WriteToFile(CString FileName,CString sInfo);
- void ChangLGAndLt(CString &strLongitude,CString &strLatitude,CString &strVehicleNO,CString &strTelNumber);
- void OnOpenlock(CString strItemText = "");
- void OnGetvehicleposition(CString strItemText = "");
- void OnSetlock(CString strItemText = "");
- void OnShutoil(CString strItemText = "");
- void AutoMonitor(CString strItemText = "");
- void GetHelp(CString strItemText = "");
- void CanceLautoMonitor(CString strItemText = "");
- void HoseChangePassWord();
- void SelectUserType();
- BOOL CheckMonitorCar();
- void SetMonitorCar(CString VehicleID);
- void SetMessageType(CString strVehicleNumber ,CString strSMConttent);
- BOOL GetSubData(char * ReceData,CString *strLongitude,CString *strLatitude);
- CString GetString(char *pData, int *pos);
- void SimulatorDriver(); //模拟车主
- BOOL SystermInite(void * pView);
- CString NewSMIndication(CString strReceived);
- CString GetNewSMData(CString strReceived,CString &sMessage);
- CString GetLenStr(CString DstStr,BYTE pos,BYTE Len);
- CString GetSpecialStr(CString sSrcStr,long pos1,long pos2);
- void ProcShortMessage(CString sMessage);
- void SendMessageResult(CString strReceived);
- void ClearStrList();
- CString AnsiStr2UnicodeStr(CString sAnsiStr);
- WORD GetUnicodeFromTable(WORD wGB);
- CString UnicodeStr2AnsiStr(CString UnicodeStr);
- WORD GetAnsiFromTable(WORD lTemp);
- long LongNEtoLong(CString LongNE);
- BYTE CharToNum(char chr);
- void ClearVehicleList();
- bool CheckVehicleMonitorNow(CString sVehicleID);
- void AddTheMonitorVehicle(CString sVehicleID);
- void DeleteTheMonitorVehicle(CString sVehicleID);
- //the varaible
- public:
- CString strCommonUserPassWord;
- BOOL m_bWaveComInite;
- BYTE m_nUserType; //0 表示中心,1 表示普通用户
- CString m_strMonitorTimeSpan;
- CString m_strPassWord;
- CString m_sCurrMonitorCar;
- CString m_sGetPositionCar;
- BOOL m_bSysTemInit;
- CDlgAsCenterDlg m_dlgAsCenter;
- CDlgAsNormalDlg m_dlgAsNormal;
- CString m_strDriverNumber;
- CStringList m_lCurrMonitorVehicle;
- //variable of shortmessge
- CString m_sVehicleNumber; //将要监控的汽车车号
- void *m_pView;
- };
- #endif // !defined(AFX_PROCSM_H__4D900422_58AD_11D8_B7C7_00E01808A228__INCLUDED_)