| Home · All Classes · Annotated · Functions |
The QSimCommand class specifies the details of a SIM toolkit command message. More...
#include <QSimCommand>
The QSimCommand class specifies the details of a SIM toolkit command message.
Applications that run within a SIM send commands to the host program to interact with the user. These commands might entail choosing an item from a menu, asking if it is OK to dial a phone number, asking for a line of input, displaying text messages, etc.
The QSimCommand class encapsulates a single SIM toolkit command, containing all of the information about it. QSimCommand objects are delivered to the host program by way of the QSimToolkit::command signal.
In Qtopia, the host program is "simapp".
See also QSimToolkit and QSimMenuItem.
| Constant | Value | Description |
|---|---|---|
| QSimCommand::IfNotAlreadyLaunched | 0 | Launch browser, if not already launched. |
| QSimCommand::UseExisting | 2 | Use the existing browser, but not if it is running a secured session. |
| QSimCommand::CloseExistingAndLaunch | 3 | Close the existing browswer session and launch a new browser session. |
This enum defines the class of call that is being created by a "SetupCall" command.
| Constant | Value | Description |
|---|---|---|
| QSimCommand::Voice | 0 | Voice call |
| QSimCommand::Data | 1 | Data call |
| QSimCommand::Fax | 2 | Fax call |
This enum defines the disposition of other calls when a "SetupCall" command is executed by the SIM toolkit application.
| Constant | Value | Description |
|---|---|---|
| QSimCommand::IfNoOtherCalls | 0 | Perform the setup only if there are no other calls. |
| QSimCommand::PutOnHold | 1 | Put other calls on hold when the new call is setup. |
| QSimCommand::Disconnect | 2 | Disconnect other calls when the new call is setup. |
| Constant | Value | Description |
|---|---|---|
| QSimCommand::IdleScreen | 1 | Report an event when the system is idle. |
| QSimCommand::UserActivity | 2 | Report an event when there is user activity. |
| QSimCommand::Both | 3 | Report for both system idle and user activity. |
| QSimCommand::Cancel | 4 | Cancel event reporting. |
This enum defines the type of refresh that was performed by the SIM.
| Constant | Value | Description |
|---|---|---|
| QSimCommand::InitAndFullFileChange | 0 | SIM initialization and full file change notification. |
| QSimCommand::FileChange | 1 | File change notification. |
| QSimCommand::InitAndFileChange | 2 | SIM initialization and file change notification. |
| QSimCommand::Initialization | 3 | SIM initialization. |
| QSimCommand::Reset | 4 | SIM reset. |
This enum defines the tones that can be played by a "PlayTone" command.
| Constant | Value | Description |
|---|---|---|
| QSimCommand::ToneDial | 0 | Currently dialing |
| QSimCommand::ToneBusy | 1 | Called party is busy |
| QSimCommand::ToneCongestion | 2 | Network is congested |
| QSimCommand::ToneRadioAck | 3 | Radio acknowledged |
| QSimCommand::ToneDropped | 4 | Connection has been dropped |
| QSimCommand::ToneError | 5 | An error occurred |
| QSimCommand::ToneCallWaiting | 6 | An incoming call is waiting |
| QSimCommand::ToneRinging | 7 | Ring to indicate and incoming call |
| QSimCommand::ToneGeneralBeep | 8 | A general beep tone |
| QSimCommand::TonePositiveBeep | 9 | A beep indicating a positive outcome |
| QSimCommand::ToneNegativeBeep | 10 | A beep indicating a negative outcome |
This enum defines the type of a SIM toolkit message within a QSimCommand object.
| Constant | Value | Description |
|---|---|---|
| QSimCommand::SetupMainMenu | 0 | Process the main menu of a SIM toolkit application |
| QSimCommand::DisplayText | 1 | Display a text message |
| QSimCommand::GetInkey | 2 | Get a single key of input |
| QSimCommand::GetInput | 3 | Get a line of input |
| QSimCommand::SetupCall | 4 | Set up a phone call to a specific number |
| QSimCommand::PlayTone | 5 | Play a tone to the user |
| QSimCommand::SetupSubMenu | 6 | Process a submenu within a SIM toolkit application |
| QSimCommand::Refresh | 7 | Notification of a SIM refresh |
| QSimCommand::SendSS | 8 | Notification that the application is sending a SS message. |
| QSimCommand::SendSMS | 9 | Notification that the application is sending a SMS message |
| QSimCommand::SendUSSD | 10 | Notification that the application is sending a USSD message |
| QSimCommand::SetupEventList | 11 | Set up the list of events to be reported to the SIM toolkit application |
| QSimCommand::Timeout | 98 | Indicate that an operation has timed out |
| QSimCommand::EndSession | 99 | Indicate that the SIM toolkit session has ended |
| QSimCommand::LaunchBrowser | 200 | Launch a Web browser on a URL |
| QSimCommand::SetupIdleModeText | 201 | Set the text to be displayed when the phone is idle |
Construct a new SIM toolkit command object with default parameters.
Construct a new SIM toolkit command object as a copy of value.
Destruct a SIM toolkit command object.
Get the browser launch mode.
Applies to: LaunchBrowser.
See also setBrowserLaunchMode().
Get the class of call to be setup (Voice, Data, or Fax).
Applies to: SetupCall.
See also setCallClass().
Determine if the text should be automatically cleared after a small delay (usually 3 seconds). If this is false, then the client must call QSimToolkit::clearText() to move on to the next SIM application state.
Applies to: DisplayText.
See also setClearAfterDelay().
Get the index of the default item in the menu, or zero if no default.
Applies to: SetupSubMenu.
See also setDefaultItem().
Get the disposition of other calls when a call setup occurs.
Applies to: SetupCall.
See also setDisposition().
Determine if input should be echoed.
Applies to: GetInput.
See also setEcho().
Get the events to be reported.
Applies to: SetupEventList.
See also setEvents().
Determine if there is help available for this command.
Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.
See also setHasHelp().
Determine if a DisplayText command should attempt to display the text as "high priority" (true) or "normal priority" (false).
Applies to: DisplayText.
See also setHighPriority().
Get the maximum text length for input.
Applies to: GetInput.
See also setMaximumLength().
Get the list of menu items in the menu.
Applies to: SetupMainMenu, SetupSubMenu.
See also setMenuItems().
Get the minimum text length for input.
Applies to: GetInput.
See also setMinimumLength().
Get the phone number for a call setup.
Applies to: SetupCall.
See also setNumber().
Get the type of refresh to that was performed by the SIM.
Applies to: Refresh.
See also setRefreshType().
Set the browser launch mode to value.
Applies to: LaunchBrowser.
See also browserLaunchMode().
Set the class of call to be setup (Voice, Data, or Fax) to value.
Applies to: SetupCall.
See also callClass().
Set the "clear after delay" flag for text display to value.
Applies to: DisplayText.
See also clearAfterDelay().
Set the index of the default item in the menu, or zero if no default, to value.
Applies to: SetupSubMenu.
See also defaultItem().
Set the disposition of other calls when a call setup occurs to value.
Applies to: SetupCall.
See also disposition().
Set the flag that determines if input should be echoed to value.
Applies to: GetInput.
See also echo().
Set the events to be reported to value.
Applies to: SetupEventList.
See also events().
Set the flag that determines if there is help available for this command to value.
Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.
See also hasHelp().
Set the high priority text display flag to value.
Applies to: DisplayText.
See also highPriority().
Set the maximum text length for input to value.
Applies to: GetInput.
See also maximumLength().
Set the list of menu items in the menu to value.
Applies to: SetupMainMenu, SetupSubMenu.
See also menuItems().
Set the minimum text length for input to value.
Applies to: GetInput.
See also minimumLength().
Set the phone number for a call setup to value.
Applies to: SetupCall.
See also number().
Set the type of refresh to that was performed by the SIM to value.
Applies to: Refresh.
See also refreshType().
Set the subaddress (e.g. extension) for a call setup to value.
Applies to: SetupCall.
See also subAddress().
Set the text to be displayed by this command to value.
Applies to: DisplayText, GetInkey, GetInput, SendSS, SendSMS, SendUSSD, PlayTone.
See also text().
Set the title to be displayed on a menu to value.
Applies to: SetupMainMenu, SetupSubMenu.
See also title().
Set the tone to be played by a "PlayTone" command to value.
Applies to: PlayTone
See also tone().
Set the number of milliseconds to play a tone to value.
Applies to: PlayTone.
See also toneTime().
Set the type of this command to value.
Applies to: all commands.
See also type().
Set the URL to launch in the browser to value.
Applies to: LaunchBrowser.
See also url().
Set the flag that determines if "GetInkey" or "GetInput" wants input that consists only of digits (true), or any character combination (false), to value.
Applies to: GetInkey, GetInput.
See also wantDigits().
Set the flag that determines if "GetInkey" wants input that consists of a "Yes" or "No" answer, to value.
Applies to: GetInkey
See also wantYesNo().
Set the "with redial" modifier for call setup disposition to value.
Applies to: SetupCall.
See also withRedial().
Get the subaddress (e.g. extension) for a call setup.
Applies to: SetupCall.
See also setSubAddress().
Get the text to be displayed as either a message, a prompt, or an SMS.
Applies to: DisplayText, GetInkey, GetInput, SendSS, SendSMS, SendUSSD, PlayTone.
See also setText().
Get the title to be displayed on a menu.
Applies to: SetupMainMenu, SetupSubMenu.
See also setTitle().
Get the tone to be played by a "PlayTone" command.
Applies to: PlayTone
See also setTone().
Get the number of milliseconds to play a tone.
Applies to: PlayTone.
See also setToneTime().
Get the type of this command.
Applies to: all commands.
See also setType().
Get the URL to launch in the browser.
Applies to: LaunchBrowser.
See also setUrl().
Determine if "GetInkey" or "GetInput" wants input that consists only of digits (true), or any character combination (false). The allowable digits are 0-9, #, *, and +.
Applies to: GetInkey, GetInput.
See also setWantDigits().
Determine if "GetInkey" wants input that consists of a "Yes" or "No" answer.
Applies to: GetInkey
See also setWantYesNo().
Get the "with redial" modifier for call setup disposition.
Applies to: SetupCall.
See also setWithRedial().
Copy the QSimCommand object value.
| Copyright © 2006 Trolltech | Trademarks | Qtopia 4.1.7 |