Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference

SimCommand Class Reference

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

#include <simtoolkit.h>

List of all member functions.

Public Members


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 SimCommand class encapsulates a single SIM toolkit command, containing all of the information about it. SimCommand objects are delivered to the host program by way of the SimToolkit::command signal.

In Qtopia, the host program is "simapp".

See also SimToolkit, SimMenuItem, and Qtopia Phone Classes.


Member Type Documentation

SimCommand::BrowserLaunchMode

SimCommand::CallClass

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

SimCommand::Disposition

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

SimCommand::Event

SimCommand::RefreshType

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

SimCommand::Tone

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

SimCommand::Type

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

Member Function Documentation

SimCommand::SimCommand ()

Construct a new SIM toolkit command object with default parameters.

SimCommand::SimCommand ( const SimCommand & value )

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

SimCommand::~SimCommand ()

Destruct a SIM toolkit command object.

BrowserLaunchMode SimCommand::browserLaunchMode () const

Get the browser launch mode.

Applies to: LaunchBrowser.

CallClass SimCommand::callClass () const

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

Applies to: SetupCall.

bool SimCommand::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 SimToolkit::clearText() to move on to the next SIM application state.

Applies to: DisplayText.

uint SimCommand::defaultItem () const

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

Applies to: SetupSubMenu.

Disposition SimCommand::disposition () const

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

Applies to: SetupCall.

bool SimCommand::echo () const

Determine if input should be echoed.

Applies to: GetInput.

Event SimCommand::events () const

Get the events to be reported.

Applies to: SetupEventList.

bool SimCommand::hasHelp () const

Determine if there is help available for this command.

Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.

bool SimCommand::highPriority () const

Determine if a DisplayText command should attempt to display the text as "high priority" (true) or "normal priority" (false).

Applies to: DisplayText.

uint SimCommand::maximumLength () const

Get the maximum text length for input.

Applies to: GetInput.

QValueList<SimMenuItem> SimCommand::menuItems () const

Get the list of menu items in the menu.

Applies to: SetupMainMenu, SetupSubMenu.

uint SimCommand::minimumLength () const

Get the minimum text length for input.

Applies to: GetInput.

QString SimCommand::number () const

Get the phone number for a call setup.

Applies to: SetupCall.

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

Copy a SimCommand object.

RefreshType SimCommand::refreshType () const

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

Applies to: Refresh.

void SimCommand::setClearAfterDelay ( bool value )

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

Applies to: DisplayText.

void SimCommand::setDefaultItem ( uint value )

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

Applies to: SetupSubMenu.

void SimCommand::setEcho ( bool value )

Set the flag that determines if input should be echoed.

Applies to: GetInput.

void SimCommand::setHasHelp ( bool value )

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

Applies to: SetupMainMenu, GetInkey, GetInput, SetupSubMenu.

void SimCommand::setHighPriority ( bool value )

Set the high priority text display flag.

Applies to: DisplayText.

void SimCommand::setMaximumLength ( uint value )

Set the maximum text length for input.

Applies to: GetInput.

void SimCommand::setMenuItems ( const QValueList<SimMenuItem> & value )

Set the list of menu items in the menu.

Applies to: SetupMainMenu, SetupSubMenu.

void SimCommand::setMinimumLength ( uint value )

Set the minimum text length for input.

Applies to: GetInput.

void SimCommand::setNumber ( const QString & value )

Set the phone number for a call setup.

Applies to: SetupCall.

void SimCommand::setSubAddress ( const QString & value )

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

Applies to: SetupCall.

void SimCommand::setText ( const QString & value )

Set the text to be displayed by this command.

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

void SimCommand::setTitle ( const QString & value )

Set the title to be displayed on a menu.

Applies to: SetupMainMenu, SetupSubMenu.

void SimCommand::setToneTime ( uint value )

Set the number of milliseconds to play a tone.

Applies to: PlayTone.

void SimCommand::setUrl ( const QString & value )

Set the URL to launch in the browser.

Applies to: LaunchBrowser.

void SimCommand::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).

Applies to: GetInkey, GetInput.

void SimCommand::setWantYesNo ( bool value )

Set the flag that determines if "GetInkey" wants input that consists of a "Yes" or "No" answer.

Applies to: GetInkey

void SimCommand::setWithRedial ( bool value )

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

Applies to: SetupCall.

QString SimCommand::subAddress () const

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

Applies to: SetupCall.

QString SimCommand::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.

QString SimCommand::title () const

Get the title to be displayed on a menu.

Applies to: SetupMainMenu, SetupSubMenu.

Tone SimCommand::tone () const

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

Applies to: PlayTone

uint SimCommand::toneTime () const

Get the number of milliseconds to play a tone.

Applies to: PlayTone.

Type SimCommand::type () const

Get the type of this command.

Applies to: all commands.

QString SimCommand::url () const

Get the URL to launch in the browser.

Applies to: LaunchBrowser.

bool SimCommand::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.

bool SimCommand::wantYesNo () const

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

Applies to: GetInkey

bool SimCommand::withRedial () const

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

Applies to: SetupCall.


This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.2.0