| Home · All Classes · Grouped 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 browser 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 |
| QSimCommand::LanguageNotification | 202 | Inform the user about the language the SIM toolkit application will be displaying messages in. |
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.
Returns the browser launch mode.
Applies to: LaunchBrowser.
See also setBrowserLaunchMode().
Returns the class of call to be setup (Voice, Data, or Fax).
Applies to: SetupCall.
See also setCallClass().
Returns true if the text should be automatically cleared after a small delay (usually 3 seconds); otherwise returns false. 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().
Returns the index of the default item in the menu, or zero if no default.
Applies to: SetupSubMenu.
See also setDefaultItem().
Returns the disposition of other calls when a call setup occurs.
Applies to: SetupCall.
See also setDisposition().
Returns true if input should be echoed; otherwise returns false.
Applies to: GetInput.
See also setEcho().
Returns the events to be reported.
Applies to: SetupEventList.
See also setEvents().
Returns true if there is help available for this command; otherwise returns false.
Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.
See also setHasHelp().
Returns true if a DisplayText command should attempt to display the text as high priority (true) or normal priority (false).
Applies to: DisplayText.
See also setHighPriority().
Returns the icon identifier associated with this command. Returns zero if there is no icon.
Applies to: DisplayText, GetInkey, GetInput, PlayTone, SetupSubMenu, SendSMS, SendSS, SetupCall, SetupMainMenu, LaunchBrowser, SetupIdleModeText
See also setIconId().
Returns true if the icon specified by iconId() is self-explanatory without the display of label(). If this function returns false, then label() should be displayed next to the icon. If iconId() returns zero, then iconSelfExplanatory() should be ignored.
Applies to: DisplayText, GetInkey, GetInput, PlayTone, SetupSubMenu, SendSMS, SendSS, SetupCall, SetupMainMenu, LaunchBrowser, SetupIdleModeText
See also setIconSelfExplanatory().
Returns the maximum text length for input.
Applies to: GetInput.
See also setMaximumLength().
Returns the list of menu items in the menu.
Applies to: SetupMainMenu, SetupSubMenu.
See also setMenuItems().
Returns the minimum text length for input.
Applies to: GetInput.
See also setMinimumLength().
Returns the phone number for SetupCall or the supplementary service string for SendSS.
Applies to: SetupCall, SendSS.
See also setNumber().
Returns the type of refresh to that was performed by the SIM.
Applies to: Refresh.
See also setRefreshType().
Sets the browser launch mode to value.
Applies to: LaunchBrowser.
See also browserLaunchMode().
Sets the class of call to be setup (Voice, Data, or Fax) to value.
Applies to: SetupCall.
See also callClass().
Sets the clear after delay flag for text display to value.
Applies to: DisplayText.
See also clearAfterDelay().
Sets the index of the default item in the menu, or zero if no default, to value.
Applies to: SetupSubMenu.
See also defaultItem().
Sets the disposition of other calls when a call setup occurs to value.
Applies to: SetupCall.
See also disposition().
Sets the flag that determines if input should be echoed to value.
Applies to: GetInput.
See also echo().
Sets the events to be reported to value.
Applies to: SetupEventList.
See also events().
Sets the flag that determines if there is help available for this command to value.
Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.
See also hasHelp().
Sets the high priority text display flag to value.
Applies to: DisplayText.
See also highPriority().
Sets the icon identifier associated with this menu item to value.
Applies to: DisplayText, GetInkey, GetInput, PlayTone, SetupSubMenu, SendSMS, SendSS, SetupCall, SetupMainMenu, LaunchBrowser, SetupIdleModeText
See also iconId().
Sets the self-explanatory flag to value.
Applies to: DisplayText, GetInkey, GetInput, PlayTone, SetupSubMenu, SendSMS, SendSS, SetupCall, SetupMainMenu, LaunchBrowser, SetupIdleModeText
See also iconSelfExplanatory().
Sets the maximum text length for input to value.
Applies to: GetInput.
See also maximumLength().
Sets the list of menu items in the menu to value.
Applies to: SetupMainMenu, SetupSubMenu.
See also menuItems().
Sets the minimum text length for input to value.
Applies to: GetInput.
See also minimumLength().
Sets the phone number for SetupCall or the supplementary service string for SendSS to value.
Applies to: SetupCall, SendSS.
See also number().
Sets the type of refresh to that was performed by the SIM to value.
Applies to: Refresh.
See also refreshType().
Sets the sub-address (e.g. extension) for a call setup to value.
Applies to: SetupCall.
See also subAddress().
Sets the text to be displayed by this command to value.
Applies to: DisplayText, GetInkey, GetInput, SendSS, SendSMS, SendUSSD, PlayTone.
See also text().
Sets the title to be displayed on a menu to value.
Applies to: SetupMainMenu, SetupSubMenu.
See also title().
Sets the tone to be played by a PlayTone command to value.
Applies to: PlayTone
See also tone() and toneTime().
Sets the number of milliseconds to play a tone to value.
Applies to: PlayTone.
See also toneTime() and tone().
Sets the type of this command to value.
Applies to: all commands.
See also type().
Sets the URL to launch in the browser to value.
Applies to: LaunchBrowser.
See also url().
Sets 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().
Sets the flag that determines if GetInkey wants input that consists of a Yes or No answer, to value.
Applies to: GetInkey
See also wantYesNo().
Sets the with-redial modifier for call setup disposition to value.
Applies to: SetupCall.
See also withRedial().
Returns the sub-address (e.g. extension) for a call setup.
Applies to: SetupCall.
See also setSubAddress().
Returns the text to be displayed as either a message, a prompt, or an SMS.
Applies to: DisplayText, GetInkey, GetInput, SendSS, SendSMS, SendUSSD, PlayTone, LanguageNotification.
See also setText().
Returns the title to be displayed on a menu.
Applies to: SetupMainMenu, SetupSubMenu.
See also setTitle().
Returns the tone to be played by a PlayTone command.
Applies to: PlayTone
See also setTone() and toneTime().
Returns the number of milliseconds to play a tone.
Applies to: PlayTone.
See also setToneTime() and tone().
Returns the type of this command.
Applies to: all commands.
See also setType().
Returns the URL to launch in the browser.
Applies to: LaunchBrowser.
See also setUrl().
Returns true 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().
Returns true if GetInkey wants input that consists of a Yes or No answer.
Applies to: GetInkey
See also setWantYesNo().
Returns true if with-redial modifier is set for call setup disposition; otherwise returns false.
Applies to: SetupCall.
See also setWithRedial().
Copy the QSimCommand object value.
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |