kmobiletools
AT_Engine Class Reference
#include <at_engine.h>

Detailed Description
Definition at line 50 of file at_engine.h.
Public Types | |
| enum | ATJobTypes { TestPhoneDevice = KMobileTools::Job::UserJob+1, FindDeviceData = KMobileTools::Job::UserJob+2 } |
Public Slots | |
| void | closeDevice () |
| static void | closeDevice (KMobileTools::SerialManager *dev) |
| void | processSlot (KMobileTools::Job *) |
| void | slotAddAddressee (const KABC::Addressee::List &) |
| void | slotDelAddressee (const KABC::Addressee::List &) |
| void | slotDelSMS (KMobileTools::SMS *sms) |
| void | slotDial (DialActions, const QString &=QString()) |
| void | slotEditAddressee (const KABC::Addressee &p_oldAddressee, const KABC::Addressee &p_newAddressee) |
| void | slotFetchInfos () |
| void | slotFetchPhonebook () |
| void | slotFetchSMS () |
| void | slotInitPhone () |
| void | slotPollStatus () |
| void | slotResumeDevice () |
| void | slotSearchPhone () |
| void | slotSendSMS (KMobileTools::SMS *) |
| void | slotSendSMS (const QString &number, const QString &text) |
| void | slotSendStoredSMS (KMobileTools::SMS *) |
| void | slotStopDevice () |
| void | slotStoreSMS (KMobileTools::SMS *) |
| void | slotStoreSMS (const QString &number, const QString &text) |
| void | slotWeaverSuspended () |
Signals | |
| void | foundDeviceData (FindDeviceDataJob *) |
Public Member Functions | |
| AT_Engine (QObject *parent=0, const QString &name=QString()) | |
| int | availPbSlots () |
| ATDevicesConfig * | config (bool forceNew=false, const QString &groupName=QString()) |
| QList< QWidget * > | configWidgets (QWidget *parentWidget) |
| QString | currentDeviceName () const |
| QStringList | encodings () |
| QString | engineLibName () const |
| ATAbilities | getATAbilities () const |
| QString | parseWizardSummary (const QString &strtemplate, const QString &deviceName) const |
| bool | pdu () |
| void | queryClose () |
| void | setATAbilities (ATAbilities atAbilities) |
| void | setDevice (const QString &deviceName) |
| QList< QWizardPage * > | wizardPages (QWidget *parentWidget) |
| ~AT_Engine () | |
Static Public Member Functions | |
| static QString | getPBMemSlotString (int memslot) |
Protected Slots | |
| void | slotFetchCalendar () |
| void | slotSwitchToFSMode () |
Member Enumeration Documentation
Constructor & Destructor Documentation
Definition at line 55 of file at_engine.cpp.
| AT_Engine::~AT_Engine | ( | ) |
Definition at line 67 of file at_engine.cpp.
Member Function Documentation
| int AT_Engine::availPbSlots | ( | ) | [virtual] |
remove
Retrieves the numbers of phonebook memory slots.
- Returns:
- the numbers of phonebook memory slots
Implements KMobileTools::Engine.
Definition at line 351 of file at_engine.cpp.
| void AT_Engine::closeDevice | ( | ) | [inline, slot] |
Definition at line 113 of file at_engine.h.
| static void AT_Engine::closeDevice | ( | KMobileTools::SerialManager * | dev | ) | [inline, static, slot] |
Definition at line 108 of file at_engine.h.
| ATDevicesConfig * AT_Engine::config | ( | bool | forceNew = false, |
|
| const QString & | groupName = QString() | |||
| ) | [virtual] |
Convenience method returning a specific KMobileTools::DevicesConfig object with the engine specific configuration items.
Calling without parameters return settings for current engine.
- Parameters:
-
forceNew if true, force creating a new KConfigSkeleton::DevicesConfig object instead of searching for an existing one. groupName specify the group of settings to be loaded. If null, engine->objectName() will be used.
- Returns:
- A KConfigSkeleton::DevicesConfig with this engine settings, or NULL in case of errors.
Implements KMobileTools::Engine.
Definition at line 690 of file at_engine.cpp.
Setup list of QWidget to be added in a KConfigDialog, handling engine specific configuration options.
Be careful to reimplement this setting these properties:
- QString itemName
- QString pixmapName
- QString header as they will be used as parameters for KConfigDialog::addPage().
- Parameters:
-
parentWidget the parent widget to be used when creating widgets.
- Returns:
- a QList<QWidget*> object containing configuration pages.
Implements KMobileTools::Engine.
Definition at line 652 of file at_engine.cpp.
| QString AT_Engine::currentDeviceName | ( | ) | const [virtual] |
The engine name provided in the .desktop file.
Reimplemented from KMobileTools::Engine.
Definition at line 613 of file at_engine.cpp.
| AT_Engine::encodings | ( | ) | [inline, virtual] |
| QString AT_Engine::engineLibName | ( | ) | const [virtual] |
| void AT_Engine::foundDeviceData | ( | FindDeviceDataJob * | ) | [signal] |
| ATAbilities AT_Engine::getATAbilities | ( | ) | const |
Definition at line 302 of file at_engine.cpp.
| QString AT_Engine::getPBMemSlotString | ( | int | memslot | ) | [static] |
Definition at line 364 of file at_engine.cpp.
| QString AT_Engine::parseWizardSummary | ( | const QString & | strtemplate, | |
| const QString & | deviceName | |||
| ) | const [virtual] |
remove?!
Format a string to be displayed in the final page of the wizard, to show device parameters.
- Parameters:
-
strtemplate The string to be used as template deviceName the internal name of the device, for grabbing settings
- Returns:
- A string with the device information, or a null string if an error occurred
Implements KMobileTools::Engine.
Definition at line 665 of file at_engine.cpp.
| bool AT_Engine::pdu | ( | ) | [virtual] |
remove
Shows if mobile phone can encode text in PDU mode.
- Returns:
- true if mobile phone is PDU able.
Implements KMobileTools::Engine.
Definition at line 276 of file at_engine.cpp.
| void AT_Engine::processSlot | ( | KMobileTools::Job * | job | ) | [virtual, slot] |
This slot is called whenever an enqueued job has been finished.
Reimplement this method to further process the data that the job has dealt with.
- Parameters:
-
job the job that has finished
look for namespace
Reimplemented from KMobileTools::Engine.
Definition at line 127 of file at_engine.cpp.
| void AT_Engine::queryClose | ( | ) | [virtual] |
remove
Ask engine to close before calling the destructor.
Reimplemented from KMobileTools::Engine.
Definition at line 75 of file at_engine.cpp.
| void AT_Engine::setATAbilities | ( | ATAbilities | atAbilities | ) |
Definition at line 297 of file at_engine.cpp.
| void AT_Engine::setDevice | ( | const QString & | deviceName | ) |
Definition at line 429 of file at_engine.cpp.
| void AT_Engine::slotAddAddressee | ( | const KABC::Addressee::List & | abclist | ) | [virtual, slot] |
| void AT_Engine::slotDelAddressee | ( | const KABC::Addressee::List & | ) | [virtual, slot] |
| void AT_Engine::slotDelSMS | ( | KMobileTools::SMS * | ) | [virtual, slot] |
| void AT_Engine::slotDial | ( | DialActions | , | |
| const QString & | = QString() | |||
| ) | [virtual, slot] |
| void AT_Engine::slotEditAddressee | ( | const KABC::Addressee & | , | |
| const KABC::Addressee & | ||||
| ) | [virtual, slot] |
| void AT_Engine::slotFetchCalendar | ( | ) | [protected, virtual, slot] |
| void AT_Engine::slotFetchInfos | ( | ) | [virtual, slot] |
| void AT_Engine::slotFetchPhonebook | ( | ) | [virtual, slot] |
| void AT_Engine::slotFetchSMS | ( | ) | [virtual, slot] |
implement this virtual bool changePhoneBookSlot (PhoneBookMemorySlot slot) = 0; virtual bool changeSMSMemSlot (SMS::MemorySlot slot ) = 0; virtual int parseSMSList() = 0; virtual int parseAddressBook() = 0;
Implements KMobileTools::Engine.
Definition at line 308 of file at_engine.cpp.
| void AT_Engine::slotInitPhone | ( | ) | [virtual, slot] |
remove
This slot is called when slotSearchPhone has finished probing devices. It will establish a link to the found device, and properly initialize engine communication. Reimplement to correctly initialize engines.
Implements KMobileTools::Engine.
Definition at line 98 of file at_engine.cpp.
| void AT_Engine::slotPollStatus | ( | ) | [virtual, slot] |
| void AT_Engine::slotResumeDevice | ( | ) | [virtual, slot] |
remove?! method is not actively used anyway
Reimplemented from KMobileTools::Engine.
Definition at line 398 of file at_engine.cpp.
| void AT_Engine::slotSearchPhone | ( | ) | [virtual, slot] |
Start searching for our mobile phone.
It's the first method to be called when initializing the engine. The slot will look the phone configuraton, searching for the correct device to be initialized. This has to be reimplemented in each engine.
Implements KMobileTools::Engine.
| void AT_Engine::slotSendSMS | ( | KMobileTools::SMS * | ) | [virtual, slot] |
| void AT_Engine::slotSendStoredSMS | ( | KMobileTools::SMS * | ) | [virtual, slot] |
| void AT_Engine::slotStopDevice | ( | ) | [virtual, slot] |
| void AT_Engine::slotStoreSMS | ( | KMobileTools::SMS * | ) | [virtual, slot] |
| void AT_Engine::slotSwitchToFSMode | ( | ) | [protected, virtual, slot] |
- Todo:
- this config entry has been removed, port or remove...
Reimplemented from KMobileTools::Engine.
Definition at line 627 of file at_engine.cpp.
| void AT_Engine::slotWeaverSuspended | ( | ) | [virtual, slot] |
remove?! method is not actively used anyway
Reimplemented from KMobileTools::Engine.
Definition at line 387 of file at_engine.cpp.
| QList< QWizardPage * > AT_Engine::wizardPages | ( | QWidget * | parentWidget | ) | [virtual] |
Returns a list of QWizardPage objects to be used in the New Phone Wizard.
Each engine should reimplement this to provide different wizard pages depending on the engine settings.
- Returns:
- a QList<QWizardPage*> with the engine wizard pages, or NULL if the engine does not provide wizard pages.
Implements KMobileTools::Engine.
Definition at line 643 of file at_engine.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference