CBSMessage Class Reference
The CBSMessage class specifies the contents of a cell broadcast message.
More...
#include <smsmessage.h>
List of all member functions.
Public Members
- CBSMessage ()
- CBSMessage ( const CBSMessage & msg )
- ~CBSMessage ()
- enum GeographicalScope { CellWide = 0, PLMNWide = 1, LocationAreaWide = 2, CellWide2 = 3 }
- enum Language { German = 0, English = 1, Italian = 2, French = 3, Spanish = 4, Dutch = 5, Swedish = 6, Danish = 7, Portuguese = 8, Finnish = 9, Norwegian = 10, Greek = 11, Turkish = 12 }
- CBSMessage & operator= ( const CBSMessage & msg )
- uint messageCode () const
- void setMessageCode ( uint num )
- GeographicalScope scope () const
- void setScope ( GeographicalScope scope )
- uint updateNumber () const
- void setUpdateNumber ( uint num )
- uint channel () const
- void setChannel ( uint chan )
- Language language () const
- void setLanguage ( Language lang )
- uint page () const
- void setPage ( uint page )
- uint numPages () const
- void setNumPages ( uint npages )
- void setText ( const QString & str )
- QString text () const
- bool operator== ( const CBSMessage & other ) const
- bool operator!= ( const CBSMessage & other ) const
Detailed Description
The CBSMessage class specifies the contents of a cell broadcast message.
Cell broadcast messages arrive asynchonously from the network
and are delivered to applications via the SMSRequest::cellBroadcast
signal. The most common use of cell broadcast messages is to
display cell location information.
See also Qtopia Phone Classes.
Member Type Documentation
CBSMessage::GeographicalScope
Describes the geographical scope of a cell broadcast message.
The geographical scope may be one of CellWide, PLMNWide,
LocationAreaWide, or CellWide2.
CBSMessage::Language
Describes the language that a cell broadcast message is written in.
The language may be one of German, English, Italian, French,
Spanish, Dutch, Swedish, Danish, Portuguese, Finnish,
Norwegian, Greek, or Turkish.
Member Function Documentation
CBSMessage::CBSMessage ()
Constructs an empty CBSMessage.
CBSMessage::CBSMessage ( const CBSMessage & msg )
Constructs a copy of msg.
CBSMessage::~CBSMessage ()
Destructs the CBSMessage.
uint CBSMessage::channel () const
Get the channel number for this cell broadcast message.
The most common channel number is 50, indicating cell
location information.
Language CBSMessage::language () const
Get the language that this cell broadcast message is expressed in.
This can allow applications to distinguish between multiple copies
of the same information in different languages.
uint CBSMessage::messageCode () const
Get the cell broadcast message code.
uint CBSMessage::numPages () const
Get the number of pages that make up this cell broadcast message.
bool CBSMessage::operator!= ( const CBSMessage & other ) const
Determine if two cell broadcast message objects are not equal.
CBSMessage & CBSMessage::operator= ( const CBSMessage & msg )
Assigns a copy of msg to this object.
bool CBSMessage::operator== ( const CBSMessage & other ) const
Determine if two cell broadcast message objects are equal.
uint CBSMessage::page () const
Get the page number for this cell broadcast message if the
information that it contains is split over multiple pages.
Get the geographical scope of the message.
void CBSMessage::setChannel ( uint chan )
Set the channel number for this cell broadcast message to chan.
void CBSMessage::setMessageCode ( uint num )
Set the cell broadcast message code to num.
void CBSMessage::setNumPages ( uint npages )
Set the number of pages in this cell broadcast message to npages.
void CBSMessage::setPage ( uint page )
Set the page number for this cell broadcast message to page.
void CBSMessage::setText ( const QString & str )
Set the text that is contained in this cell broadcast message to str.
void CBSMessage::setUpdateNumber ( uint num )
Set the update number for this cell broadcast message to num.
QString CBSMessage::text () const
Get the text that is contained in this cell broadcast message.
uint CBSMessage::updateNumber () const
Get the update number for this cell broadcast message.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.2.0
|