kmobiletools
KMobileTools::EngineData Class Reference
#include <enginedata.h>

Detailed Description
- Deprecated:
- use EngineXP instead of this class
Definition at line 43 of file enginedata.h.
Public Types | |
| enum | ChargeType { Unknown = -1, Battery = 0, ACAdaptor = 1 } |
Signals | |
| void | calendarChanged () |
| void | chargeChanged (int charge) |
| void | chargeTypeChanged (ChargeType chargeType) |
| void | connected () |
| void | disconnected () |
| void | networkNameChanged (const QString &name) |
| void | phoneBookChanged () |
| void | ringing (bool ringing) |
| void | signalStrengthChanged (int signalStrength) |
| void | smsAdded (const QString &sms) |
| void | smsDeleted (const QString &sms) |
| void | smsModified (const QString &sms) |
Public Member Functions | |
| const KCal::Event::List * | calendar () |
| int | charge () const |
| int | chargeType () const |
| ContactsList * | contactsList () const |
| EngineData (Engine *parentEngine) | |
| QString | imei () const |
| QString | manufacturer () const |
| int | manufacturerID () const |
| QString | model () const |
| QString | networkName () const |
| bool | phoneConnected () const |
| bool | phoneRinging () const |
| QString | revision () const |
| void | setCalendar (KCal::Event::List *calendar) |
| void | setCharge (int charge) |
| void | setChargeType (ChargeType chargeType) |
| void | setContactsList (ContactsList *contactsList) |
| void | setIMEI (const QString &imei) |
| void | setManufacturer (const QString &manufacturer) |
| void | setManufacturerID (int manufacturerID) |
| void | setModel (const QString &model) |
| void | setNetworkName (const QString &networkName) |
| void | setPhoneConnected (bool) |
| void | setPhoneRinging (bool ringing) |
| void | setRevision (const QString &revision) |
| void | setSignalStrength (int signalStrength) |
| void | setSMSCenter (const QString &smsc) |
| void | setSMSList (SMSList *smsList) |
| int | signalStrength () const |
| QString | smsCenter () const |
| const SMSList * | smsList () const |
| ~EngineData () | |
Member Enumeration Documentation
Constructor & Destructor Documentation
| EngineData::EngineData | ( | KMobileTools::Engine * | parentEngine | ) |
remove
Creates a new EngineData object. This class can store data from engines, emit signals when it changes, and act as an interface for the GUI.
- Parameters:
-
parentEngine the engine providing data to store.
Definition at line 53 of file enginedata.cpp.
| EngineData::~EngineData | ( | ) |
Definition at line 68 of file enginedata.cpp.
Member Function Documentation
| const KCal::Event::List * EngineData::calendar | ( | ) |
Returns the phone's calendar.
- Returns:
- the phone calendar
Definition at line 133 of file enginedata.cpp.
| void KMobileTools::EngineData::calendarChanged | ( | ) | [signal] |
remove
This signal is emitted when calendar is modified.
| int EngineData::charge | ( | ) | const |
remove
Returns the phone's charge in percent
- Returns:
- the phone's charge in percent
Definition at line 178 of file enginedata.cpp.
| void KMobileTools::EngineData::chargeChanged | ( | int | charge | ) | [signal] |
remove
This signal is whenever the phone charge changes
- Parameters:
-
charge the charge level in percent
| int EngineData::chargeType | ( | ) | const |
remove
Returns the phone's charge type
- Returns:
- the phone's charge type
Definition at line 189 of file enginedata.cpp.
| void KMobileTools::EngineData::chargeTypeChanged | ( | ChargeType | chargeType | ) | [signal] |
remove
This signal is emitted whenever the phone's charge type changed
- Parameters:
-
chargeType the charge type
| void KMobileTools::EngineData::connected | ( | ) | [signal] |
This signal is emitted when the phone is connected.
| ContactsList * EngineData::contactsList | ( | ) | const |
remove
Retrieves the phone contact list.
- Returns:
- phone contact list
Definition at line 145 of file enginedata.cpp.
| void KMobileTools::EngineData::disconnected | ( | ) | [signal] |
This signal is emitted when the phone is disconnected.
| QString EngineData::imei | ( | ) | const |
remove
Retrieves the phone raw IMEI. The IMEI is a number unique to every GSM and UMTS mobile phone.
- Returns:
- the phone raw IMEI
Definition at line 108 of file enginedata.cpp.
| QString EngineData::manufacturer | ( | ) | const |
remove
Retrieves the phone manufacturer as returned by the mobile phone.
- Returns:
- a QString containing the phone manufacturer.
Definition at line 80 of file enginedata.cpp.
| int EngineData::manufacturerID | ( | ) | const |
remove
Retrieves the manufacturer ID.
- Returns:
- the manufacturer ID
Definition at line 92 of file enginedata.cpp.
| QString EngineData::model | ( | ) | const |
remove
Retrieves the phone model.
- Returns:
- the phone model
Definition at line 100 of file enginedata.cpp.
| QString EngineData::networkName | ( | ) | const |
remove
Returns the network the phone is currently logged in
- Returns:
- the network name
Definition at line 211 of file enginedata.cpp.
| void KMobileTools::EngineData::networkNameChanged | ( | const QString & | name | ) | [signal] |
remove
This signal is emitted whenever the current network changes
- Parameters:
-
name the name of the network.
| void KMobileTools::EngineData::phoneBookChanged | ( | ) | [signal] |
remove
This signal is emitted when the mobile's phone book has been changed.
| bool EngineData::phoneConnected | ( | ) | const |
Retrieves if phone is connected.
- Returns:
- true if phone is connected.
Definition at line 163 of file enginedata.cpp.
| bool EngineData::phoneRinging | ( | ) | const |
remove
Returns whether the phone is ringing
- Returns:
- true if the phone is ringing
Definition at line 200 of file enginedata.cpp.
| QString EngineData::revision | ( | ) | const |
remove
Retrieves the phone firmware revision.
- Returns:
- the phone firmware revision
Definition at line 124 of file enginedata.cpp.
| void KMobileTools::EngineData::ringing | ( | bool | ringing | ) | [signal] |
remove
This signal whenever the phone is ringing
- Parameters:
-
ringing true if phone is ringing
| void EngineData::setCalendar | ( | KCal::Event::List * | calendar | ) |
remove
Sets the phone calendar
- Parameters:
-
calendar the phone calendar
Definition at line 128 of file enginedata.cpp.
| void EngineData::setCharge | ( | int | charge | ) |
remove
Sets the phone's charge in percent
charge the phone's charge in percent
Definition at line 182 of file enginedata.cpp.
| void EngineData::setChargeType | ( | ChargeType | chargeType | ) |
remove
Sets the phone's charge type
chargeType the phone's charge type
Definition at line 193 of file enginedata.cpp.
| void EngineData::setContactsList | ( | ContactsList * | contactsList | ) |
remove
Sets the phone contact list.
- Returns:
- phone contact list
Definition at line 147 of file enginedata.cpp.
| void EngineData::setIMEI | ( | const QString & | imei | ) |
remove
Sets the phone raw IMEI. The IMEI is a number unique to every GSM and UMTS mobile phone.
- Parameters:
-
imei the phone's imei
Definition at line 104 of file enginedata.cpp.
| void EngineData::setManufacturer | ( | const QString & | manufacturer | ) |
remove
Sets phone manufacturer as returned by the mobile phone.
- Parameters:
-
manufacturer the manufacturer string.
Definition at line 84 of file enginedata.cpp.
| void EngineData::setManufacturerID | ( | int | manufacturerID | ) |
remove
Sets the manufacturer ID.
- Parameters:
-
manufacturerID the manufacturer id
Definition at line 88 of file enginedata.cpp.
| void EngineData::setModel | ( | const QString & | model | ) |
remove
Sets the phone model
- Parameters:
-
model the phone model
Definition at line 96 of file enginedata.cpp.
| void EngineData::setNetworkName | ( | const QString & | networkName | ) |
remove
Sets the network name the phone is currently logged in
- Parameters:
-
networkName the network name
Definition at line 215 of file enginedata.cpp.
| void EngineData::setPhoneConnected | ( | bool | b | ) |
Sets if phone is connected.
- Returns:
- true if phone is connected.
Definition at line 152 of file enginedata.cpp.
| void EngineData::setPhoneRinging | ( | bool | ringing | ) |
remove
Sets whether the phone is ringing
chargeType true if the phone is ringing
Definition at line 204 of file enginedata.cpp.
| void EngineData::setRevision | ( | const QString & | revision | ) |
remove
Sets the phone firmware revision.
- Parameters:
-
revision the phone's firmware revision
Definition at line 120 of file enginedata.cpp.
| void EngineData::setSignalStrength | ( | int | signalStrength | ) |
remove
Sets the phone's signal strength
signalStrength the signal strength in percent
Definition at line 171 of file enginedata.cpp.
| void EngineData::setSMSCenter | ( | const QString & | smsc | ) |
remove
Sets the SMS center number.
- Parameters:
-
smsc the SMS center number
Definition at line 112 of file enginedata.cpp.
| void EngineData::setSMSList | ( | SMSList * | smsList | ) |
remove
Sets the current list of sms
- Parameters:
-
smsList the current list of sms
Definition at line 141 of file enginedata.cpp.
| int EngineData::signalStrength | ( | ) | const |
Returns the phone's signal strength.
- Returns:
- the signal strength in percent
Definition at line 167 of file enginedata.cpp.
| void KMobileTools::EngineData::signalStrengthChanged | ( | int | signalStrength | ) | [signal] |
This signal is emitted whenever the signal strength has changed.
- Parameters:
-
signalStrength the signal level in percent
| void KMobileTools::EngineData::smsAdded | ( | const QString & | sms | ) | [signal] |
| QString EngineData::smsCenter | ( | ) | const |
remove
Retrieves the SMS center number.
- Returns:
- the SMS center number
Definition at line 116 of file enginedata.cpp.
| void KMobileTools::EngineData::smsDeleted | ( | const QString & | sms | ) | [signal] |
| const SMSList * EngineData::smsList | ( | ) | const |
| void KMobileTools::EngineData::smsModified | ( | const QString & | sms | ) | [signal] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference