Home · All Classes · Annotated · Functions

QSimCommand Class Reference

The QSimCommand class specifies the details of a SIM toolkit command message. More...

#include <QSimCommand>

Public Types

Public Functions


Detailed Description

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.


Member Type Documentation

enum QSimCommand::BrowserLaunchMode

ConstantValueDescription
QSimCommand::IfNotAlreadyLaunched0Launch browser, if not already launched.
QSimCommand::UseExisting2Use the existing browser, but not if it is running a secured session.
QSimCommand::CloseExistingAndLaunch3Close the existing browswer session and launch a new browser session.

enum QSimCommand::CallClass

This enum defines the class of call that is being created by a "SetupCall" command.

ConstantValueDescription
QSimCommand::Voice0Voice call
QSimCommand::Data1Data call
QSimCommand::Fax2Fax call

enum QSimCommand::Disposition

This enum defines the disposition of other calls when a "SetupCall" command is executed by the SIM toolkit application.

ConstantValueDescription
QSimCommand::IfNoOtherCalls0Perform the setup only if there are no other calls.
QSimCommand::PutOnHold1Put other calls on hold when the new call is setup.
QSimCommand::Disconnect2Disconnect other calls when the new call is setup.

enum QSimCommand::Event

ConstantValueDescription
QSimCommand::IdleScreen1Report an event when the system is idle.
QSimCommand::UserActivity2Report an event when there is user activity.
QSimCommand::Both3Report for both system idle and user activity.
QSimCommand::Cancel4Cancel event reporting.

enum QSimCommand::RefreshType

This enum defines the type of refresh that was performed by the SIM.

ConstantValueDescription
QSimCommand::InitAndFullFileChange0SIM initialization and full file change notification.
QSimCommand::FileChange1File change notification.
QSimCommand::InitAndFileChange2SIM initialization and file change notification.
QSimCommand::Initialization3SIM initialization.
QSimCommand::Reset4SIM reset.

enum QSimCommand::Tone

This enum defines the tones that can be played by a "PlayTone" command.

ConstantValueDescription
QSimCommand::ToneDial0Currently dialing
QSimCommand::ToneBusy1Called party is busy
QSimCommand::ToneCongestion2Network is congested
QSimCommand::ToneRadioAck3Radio acknowledged
QSimCommand::ToneDropped4Connection has been dropped
QSimCommand::ToneError5An error occurred
QSimCommand::ToneCallWaiting6An incoming call is waiting
QSimCommand::ToneRinging7Ring to indicate and incoming call
QSimCommand::ToneGeneralBeep8A general beep tone
QSimCommand::TonePositiveBeep9A beep indicating a positive outcome
QSimCommand::ToneNegativeBeep10A beep indicating a negative outcome

enum QSimCommand::Type

This enum defines the type of a SIM toolkit message within a QSimCommand object.

ConstantValueDescription
QSimCommand::SetupMainMenu0Process the main menu of a SIM toolkit application
QSimCommand::DisplayText1Display a text message
QSimCommand::GetInkey2Get a single key of input
QSimCommand::GetInput3Get a line of input
QSimCommand::SetupCall4Set up a phone call to a specific number
QSimCommand::PlayTone5Play a tone to the user
QSimCommand::SetupSubMenu6Process a submenu within a SIM toolkit application
QSimCommand::Refresh7Notification of a SIM refresh
QSimCommand::SendSS8Notification that the application is sending a SS message.
QSimCommand::SendSMS9Notification that the application is sending a SMS message
QSimCommand::SendUSSD10Notification that the application is sending a USSD message
QSimCommand::SetupEventList11Set up the list of events to be reported to the SIM toolkit application
QSimCommand::Timeout98Indicate that an operation has timed out
QSimCommand::EndSession99Indicate that the SIM toolkit session has ended
QSimCommand::LaunchBrowser200Launch a Web browser on a URL
QSimCommand::SetupIdleModeText201Set the text to be displayed when the phone is idle


Member Function Documentation

QSimCommand::QSimCommand ()

Construct a new SIM toolkit command object with default parameters.

QSimCommand::QSimCommand ( const QSimCommand & value )

Construct a new SIM toolkit command object as a copy of value.

QSimCommand::~QSimCommand ()

Destruct a SIM toolkit command object.

QSimCommand::BrowserLaunchMode QSimCommand::browserLaunchMode () const

Get the browser launch mode.

Applies to: LaunchBrowser.

See also setBrowserLaunchMode().

QSimCommand::CallClass QSimCommand::callClass () const

Get the class of call to be setup (Voice, Data, or Fax).

Applies to: SetupCall.

See also setCallClass().

bool QSimCommand::clearAfterDelay () const

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().

uint QSimCommand::defaultItem () const

Get the index of the default item in the menu, or zero if no default.

Applies to: SetupSubMenu.

See also setDefaultItem().

QSimCommand::Disposition QSimCommand::disposition () const

Get the disposition of other calls when a call setup occurs.

Applies to: SetupCall.

See also setDisposition().

bool QSimCommand::echo () const

Determine if input should be echoed.

Applies to: GetInput.

See also setEcho().

QSimCommand::Event QSimCommand::events () const

Get the events to be reported.

Applies to: SetupEventList.

See also setEvents().

bool QSimCommand::hasHelp () const

Determine if there is help available for this command.

Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.

See also setHasHelp().

bool QSimCommand::highPriority () const

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().

uint QSimCommand::maximumLength () const

Get the maximum text length for input.

Applies to: GetInput.

See also setMaximumLength().

QList<QSimMenuItem> QSimCommand::menuItems () const

Get the list of menu items in the menu.

Applies to: SetupMainMenu, SetupSubMenu.

See also setMenuItems().

uint QSimCommand::minimumLength () const

Get the minimum text length for input.

Applies to: GetInput.

See also setMinimumLength().

QString QSimCommand::number () const

Get the phone number for a call setup.

Applies to: SetupCall.

See also setNumber().

QSimCommand::RefreshType QSimCommand::refreshType () const

Get the type of refresh to that was performed by the SIM.

Applies to: Refresh.

See also setRefreshType().

void QSimCommand::setBrowserLaunchMode ( QSimCommand::BrowserLaunchMode value )

Set the browser launch mode to value.

Applies to: LaunchBrowser.

See also browserLaunchMode().

void QSimCommand::setCallClass ( QSimCommand::CallClass value )

Set the class of call to be setup (Voice, Data, or Fax) to value.

Applies to: SetupCall.

See also callClass().

void QSimCommand::setClearAfterDelay ( bool value )

Set the "clear after delay" flag for text display to value.

Applies to: DisplayText.

See also clearAfterDelay().

void QSimCommand::setDefaultItem ( uint value )

Set the index of the default item in the menu, or zero if no default, to value.

Applies to: SetupSubMenu.

See also defaultItem().

void QSimCommand::setDisposition ( QSimCommand::Disposition value )

Set the disposition of other calls when a call setup occurs to value.

Applies to: SetupCall.

See also disposition().

void QSimCommand::setEcho ( bool value )

Set the flag that determines if input should be echoed to value.

Applies to: GetInput.

See also echo().

void QSimCommand::setEvents ( QSimCommand::Event value )

Set the events to be reported to value.

Applies to: SetupEventList.

See also events().

void QSimCommand::setHasHelp ( bool value )

Set the flag that determines if there is help available for this command to value.

Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.

See also hasHelp().

void QSimCommand::setHighPriority ( bool value )

Set the high priority text display flag to value.

Applies to: DisplayText.

See also highPriority().

void QSimCommand::setMaximumLength ( uint value )

Set the maximum text length for input to value.

Applies to: GetInput.

See also maximumLength().

void QSimCommand::setMenuItems ( const QList<QSimMenuItem> & value )

Set the list of menu items in the menu to value.

Applies to: SetupMainMenu, SetupSubMenu.

See also menuItems().

void QSimCommand::setMinimumLength ( uint value )

Set the minimum text length for input to value.

Applies to: GetInput.

See also minimumLength().

void QSimCommand::setNumber ( const QString & value )

Set the phone number for a call setup to value.

Applies to: SetupCall.

See also number().

void QSimCommand::setRefreshType ( QSimCommand::RefreshType value )

Set the type of refresh to that was performed by the SIM to value.

Applies to: Refresh.

See also refreshType().

void QSimCommand::setSubAddress ( const QString & value )

Set the subaddress (e.g. extension) for a call setup to value.

Applies to: SetupCall.

See also subAddress().

void QSimCommand::setText ( const QString & value )

Set the text to be displayed by this command to value.

Applies to: DisplayText, GetInkey, GetInput, SendSS, SendSMS, SendUSSD, PlayTone.

See also text().

void QSimCommand::setTitle ( const QString & value )

Set the title to be displayed on a menu to value.

Applies to: SetupMainMenu, SetupSubMenu.

See also title().

void QSimCommand::setTone ( QSimCommand::Tone value )

Set the tone to be played by a "PlayTone" command to value.

Applies to: PlayTone

See also tone().

void QSimCommand::setToneTime ( uint value )

Set the number of milliseconds to play a tone to value.

Applies to: PlayTone.

See also toneTime().

void QSimCommand::setType ( QSimCommand::Type value )

Set the type of this command to value.

Applies to: all commands.

See also type().

void QSimCommand::setUrl ( const QString & value )

Set the URL to launch in the browser to value.

Applies to: LaunchBrowser.

See also url().

void QSimCommand::setWantDigits ( bool value )

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().

void QSimCommand::setWantYesNo ( bool value )

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().

void QSimCommand::setWithRedial ( bool value )

Set the "with redial" modifier for call setup disposition to value.

Applies to: SetupCall.

See also withRedial().

QString QSimCommand::subAddress () const

Get the subaddress (e.g. extension) for a call setup.

Applies to: SetupCall.

See also setSubAddress().

QString QSimCommand::text () const

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().

QString QSimCommand::title () const

Get the title to be displayed on a menu.

Applies to: SetupMainMenu, SetupSubMenu.

See also setTitle().

QSimCommand::Tone QSimCommand::tone () const

Get the tone to be played by a "PlayTone" command.

Applies to: PlayTone

See also setTone().

uint QSimCommand::toneTime () const

Get the number of milliseconds to play a tone.

Applies to: PlayTone.

See also setToneTime().

Type QSimCommand::type () const

Get the type of this command.

Applies to: all commands.

See also setType().

QString QSimCommand::url () const

Get the URL to launch in the browser.

Applies to: LaunchBrowser.

See also setUrl().

bool QSimCommand::wantDigits () const

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().

bool QSimCommand::wantYesNo () const

Determine if "GetInkey" wants input that consists of a "Yes" or "No" answer.

Applies to: GetInkey

See also setWantYesNo().

bool QSimCommand::withRedial () const

Get the "with redial" modifier for call setup disposition.

Applies to: SetupCall.

See also setWithRedial().

QSimCommand & QSimCommand::operator= ( const QSimCommand & value )

Copy the QSimCommand object value.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7