📄 iphonecontroller.vb
字号:
''' </summary>
''' <returns>True if successed, false if failed</returns>
''' <remarks>Added at 10/2/2005</remarks>
Function CancelCurrentAction() As Boolean
''' <summary>
''' Count of all entires. This shows you status when reading Phonebook.
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
ReadOnly Property TotalEntriesCount() As Integer
''' <summary>
''' Count of current read. This shows you status when reading Phonebook.
''' </summary>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
ReadOnly Property TotalReadCount() As Integer
''' <summary>
''' Get current SMS Storage Status
''' </summary>
''' <returns></returns>
''' <remarks></remarks>
Function GetSMSStorageStatus() As SMSStorageStatus
End Interface
#Region "For Phone basic"
''' <summary>
''' Phone capablility
''' </summary>
''' <remarks></remarks>
Public Structure Capability
Public SupportPDUMode As Boolean
Public SupportMessageArriveReport As Boolean
End Structure
#End Region
#Region "For SMS"
''' <summary>
''' Structure of one SMS read
''' </summary>
''' <remarks></remarks>
Public Structure SMSRead
''' <summary>
''' Where your message from. Only available in a SMS received.
''' </summary>
''' <remarks></remarks>
Public SrcNumber As String
''' <summary>
''' Where your message to. Only available in a SMS sent.
''' </summary>
''' <remarks></remarks>
Public DestNumber As String
''' <summary>
''' Index of SMS in phone memory.
''' </summary>
''' <remarks></remarks>
Public Index As Integer
''' <summary>
''' Content of the SMS.
''' </summary>
''' <remarks></remarks>
Public Content As String
''' <summary>
''' When message recieved. Only available in a SMS received.
''' </summary>
''' <remarks></remarks>
Public ReceivedDate As Date
''' <summary>
''' Indicate whether it is a status report.
''' When it's a status report, please check StatusFromReport for detail message about status report.
''' </summary>
''' <remarks></remarks>
Public IsStatusReport As Boolean
Public StatusFromReport As StatusReportValue
End Structure
''' <summary>
''' Structure of one SMS to send
''' </summary>
''' <remarks></remarks>
Public Structure SMSSend
''' <summary>
''' Where your message to. For example, "+8613881234567". The plus is needed if conutry code appears.
''' </summary>
''' <remarks></remarks>
Public DestinationNumber As String
''' <summary>
''' Indicate status report is required.
''' A status report will give you information about the delivery of this message.
''' Turn it on is recommend..
''' </summary>
''' <remarks></remarks>
Public RequireStatusReport As Boolean
''' <summary>
''' How long this message will store in service center.
''' For some time sensitive message, you can set this to minimal value.
''' If message isn't received by destination during valid period, service center will discard this message
''' and return a status report.
''' For some time insensitive message, you can set this to maximum value.
''' Note maximum value will be different for different service centers.
''' </summary>
''' <remarks></remarks>
Public ValidPeriod As TP_VALID_PERIOD
''' <summary>
''' Message you want to send
''' </summary>
''' <remarks></remarks>
Public Content As String
''' <summary>
''' Valid period of message. See 3GPP 23040-650 for detail
''' </summary>
''' <remarks></remarks>
Public Enum TP_VALID_PERIOD
OneHour = 11 '0 to 143:(TP-VP+1)*5Min
ThreeHours = 29
SixHours = 71
TwelveHours = 143
OneDay = 167
OneWeek = 196
Maximum = 255
End Enum
End Structure
''' <summary>
''' Strucutre of status of SMS storage
''' </summary>
''' <remarks></remarks>
Public Structure SMSStorageStatus
Public MemoryName() As String
Public MemoryUsed() As String
Public MemoryTotal() As String
End Structure
''' <summary>
''' StatusReportValue. See 3GPP 23040-650 for detail.
''' Note some values are not contained here.
''' </summary>
''' <remarks></remarks>
Public Enum StatusReportValue
Success = 0
NotSend = 96
NoResponseFromSME = 98
End Enum
''' <summary>
''' Status of SMS from AT response. See GSM AT command for detail.
''' </summary>
''' <remarks></remarks>
Public Enum ATSMSStatus
REC_UNREAD = 0
REC_READ
STO_UNSENT
STO_SENT
ALL
End Enum
''' <summary>
''' SMS Storage place. Some phone will only support one of these.
''' </summary>
''' <remarks></remarks>
Public Enum SMSStorage
SIMCard
MobileEquipment
MobileTerminal
End Enum
''' <summary>
''' Charactor Set of Phone. Some phone may support other charactor sets.
''' But by default, it must support UCS2(Unicode Encoding) and ASCII encoding.
''' </summary>
''' <remarks></remarks>
Public Enum CharactorSet
UCS2
ASCII
End Enum
#End Region
#Region "For phonebook"
''' <summary>
''' Phonebook Type.
''' Note:When select AddressBook, some phone will switch to IrMC and do some work.
''' </summary>
''' <remarks></remarks>
Public Enum PhonebookType
SIMCard
AddressBook
End Enum
''' <summary>
''' Normal phonebook entry.
''' </summary>
''' <remarks>
''' </remarks>
Public Structure PhonebookEntry
''' <summary>
''' Index of entry. To Add a new entry, please set it to maximum+1
''' </summary>
''' <remarks></remarks>
Public Index As Integer
''' <summary>
''' Name. When you in IrMC Mode and provide a vCardObject, this value will be ignored.
''' </summary>
''' <remarks></remarks>
Public Name As String
''' <summary>
''' Phone Number of a entry from SIM.
''' </summary>
''' <remarks></remarks>
Public SIMNumber As String
''' <summary>
''' IrMC vCard object. Use a vCard to encode and decode this value.
''' When in IrMC Mode, you must provide a vCardObejct.
''' </summary>
''' <remarks></remarks>
Public vCardObject As String
End Structure
''' <summary>
''' Current phone status
''' </summary>
''' <remarks></remarks>
Public Structure PhonebookStatus
Public Used As Integer
Public Capacity As Integer
End Structure
#End Region
End Namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -