Home · All Classes · Grouped 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 browser 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
QSimCommand::LanguageNotification202Inform the user about the language the SIM toolkit application will be displaying messages in.


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

Returns the browser launch mode.

Applies to: LaunchBrowser.

See also setBrowserLaunchMode().

QSimCommand::CallClass QSimCommand::callClass () const

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

Applies to: SetupCall.

See also setCallClass().

bool QSimCommand::clearAfterDelay () const

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

uint QSimCommand::defaultItem () const

Returns 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

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

Applies to: SetupCall.

See also setDisposition().

bool QSimCommand::echo () const

Returns true if input should be echoed; otherwise returns false.

Applies to: GetInput.

See also setEcho().

QSimCommand::Event QSimCommand::events () const

Returns the events to be reported.

Applies to: SetupEventList.

See also setEvents().

bool QSimCommand::hasHelp () const

Returns true if there is help available for this command; otherwise returns false.

Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.

See also setHasHelp().

bool QSimCommand::highPriority () const

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

uint QSimCommand::iconId () const

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

bool QSimCommand::iconSelfExplanatory () const

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

uint QSimCommand::maximumLength () const

Returns the maximum text length for input.

Applies to: GetInput.

See also setMaximumLength().

QList<QSimMenuItem> QSimCommand::menuItems () const

Returns the list of menu items in the menu.

Applies to: SetupMainMenu, SetupSubMenu.

See also setMenuItems().

uint QSimCommand::minimumLength () const

Returns the minimum text length for input.

Applies to: GetInput.

See also setMinimumLength().

QString QSimCommand::number () const

Returns the phone number for SetupCall or the supplementary service string for SendSS.

Applies to: SetupCall, SendSS.

See also setNumber().

QSimCommand::RefreshType QSimCommand::refreshType () const

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

Applies to: Refresh.

See also setRefreshType().

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

Sets the browser launch mode to value.

Applies to: LaunchBrowser.

See also browserLaunchMode().

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

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

Applies to: SetupCall.

See also callClass().

void QSimCommand::setClearAfterDelay ( bool value )

Sets the clear after delay flag for text display to value.

Applies to: DisplayText.

See also clearAfterDelay().

void QSimCommand::setDefaultItem ( uint value )

Sets 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 )

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

Applies to: SetupCall.

See also disposition().

void QSimCommand::setEcho ( bool value )

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

Applies to: GetInput.

See also echo().

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

Sets the events to be reported to value.

Applies to: SetupEventList.

See also events().

void QSimCommand::setHasHelp ( bool value )

Sets 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 )

Sets the high priority text display flag to value.

Applies to: DisplayText.

See also highPriority().

void QSimCommand::setIconId ( uint value )

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

void QSimCommand::setIconSelfExplanatory ( bool value )

Sets the self-explanatory flag to value.

Applies to: DisplayText, GetInkey, GetInput, PlayTone, SetupSubMenu, SendSMS, SendSS, SetupCall, SetupMainMenu, LaunchBrowser, SetupIdleModeText

See also iconSelfExplanatory().

void QSimCommand::setMaximumLength ( uint value )

Sets the maximum text length for input to value.

Applies to: GetInput.

See also maximumLength().

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

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

Applies to: SetupMainMenu, SetupSubMenu.

See also menuItems().

void QSimCommand::setMinimumLength ( uint value )

Sets the minimum text length for input to value.

Applies to: GetInput.

See also minimumLength().

void QSimCommand::setNumber ( const QString & value )

Sets the phone number for SetupCall or the supplementary service string for SendSS to value.

Applies to: SetupCall, SendSS.

See also number().

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

Sets 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 )

Sets the sub-address (e.g. extension) for a call setup to value.

Applies to: SetupCall.

See also subAddress().

void QSimCommand::setText ( const QString & value )

Sets 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 )

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

Applies to: SetupMainMenu, SetupSubMenu.

See also title().

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

Sets the tone to be played by a PlayTone command to value.

Applies to: PlayTone

See also tone() and toneTime().

void QSimCommand::setToneTime ( uint value )

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

Applies to: PlayTone.

See also toneTime() and tone().

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

Sets the type of this command to value.

Applies to: all commands.

See also type().

void QSimCommand::setUrl ( const QString & value )

Sets the URL to launch in the browser to value.

Applies to: LaunchBrowser.

See also url().

void QSimCommand::setWantDigits ( bool value )

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

void QSimCommand::setWantYesNo ( bool value )

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

void QSimCommand::setWithRedial ( bool value )

Sets the with-redial modifier for call setup disposition to value.

Applies to: SetupCall.

See also withRedial().

QString QSimCommand::subAddress () const

Returns the sub-address (e.g. extension) for a call setup.

Applies to: SetupCall.

See also setSubAddress().

QString QSimCommand::text () const

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

QString QSimCommand::title () const

Returns the title to be displayed on a menu.

Applies to: SetupMainMenu, SetupSubMenu.

See also setTitle().

QSimCommand::Tone QSimCommand::tone () const

Returns the tone to be played by a PlayTone command.

Applies to: PlayTone

See also setTone() and toneTime().

uint QSimCommand::toneTime () const

Returns the number of milliseconds to play a tone.

Applies to: PlayTone.

See also setToneTime() and tone().

Type QSimCommand::type () const

Returns the type of this command.

Applies to: all commands.

See also setType().

QString QSimCommand::url () const

Returns the URL to launch in the browser.

Applies to: LaunchBrowser.

See also setUrl().

bool QSimCommand::wantDigits () const

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

bool QSimCommand::wantYesNo () const

Returns true if GetInkey wants input that consists of a Yes or No answer.

Applies to: GetInkey

See also setWantYesNo().

bool QSimCommand::withRedial () const

Returns true if with-redial modifier is set for call setup disposition; otherwise returns false.

Applies to: SetupCall.

See also setWithRedial().

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

Copy the QSimCommand object value.


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5