kmobiletools
kmobiletoolsATJob Class Reference
#include <at_jobs.h>

Detailed Description
Wrapper providing some functions to parse the response to AT commands.Definition at line 50 of file at_jobs.h.
Public Member Functions | |
| QString | decodeString (const QString &text) |
| QString | encodeString (const QString &text) |
| kmobiletoolsATJob (KMobileTools::Job *pjob, KMobileTools::SerialManager *device, AT_Engine *parent=0) | |
| kmobiletoolsATJob (KMobileTools::SerialManager *device, AT_Engine *parent=0) | |
Static Public Member Functions | |
| static QStringList | formatBuffer (QString buffer) |
| static QString | parseInfo (const QString &buffer) |
| static QStringList | parseList (QString list, char begins='C') |
| static QStringList | parseMultiList (QString list) |
Protected Attributes | |
| AT_Engine * | engine |
| int | i_retry |
| KMobileTools::SerialManager * | p_device |
Constructor & Destructor Documentation
| kmobiletoolsATJob::kmobiletoolsATJob | ( | KMobileTools::SerialManager * | device, | |
| AT_Engine * | parent = 0 | |||
| ) | [explicit] |
Definition at line 34 of file at_jobs.cpp.
| kmobiletoolsATJob::kmobiletoolsATJob | ( | KMobileTools::Job * | pjob, | |
| KMobileTools::SerialManager * | device, | |||
| AT_Engine * | parent = 0 | |||
| ) |
Definition at line 40 of file at_jobs.cpp.
Member Function Documentation
Decoes a string using the character encoding given in the configuration.
Definition at line 153 of file at_jobs.cpp.
Decoes a string using the character encoding given in the configuration.
Definition at line 164 of file at_jobs.cpp.
| QStringList kmobiletoolsATJob::formatBuffer | ( | QString | buffer | ) | [static] |
Returns a QStringList containing each relevant line in the string buffer.
The buffer is split by newlines. Then empty lines and the line containing the closing OK are removed.
Definition at line 59 of file at_jobs.cpp.
Definition at line 141 of file at_jobs.cpp.
| QStringList kmobiletoolsATJob::parseList | ( | QString | list, | |
| char | begins = 'C' | |||
| ) | [static] |
Returns a QStringList containing each entry in the passed comma separated list.
If buffer begins with "+CXXX:" this is ignored. All clinched quotation marks are removed.
Definition at line 81 of file at_jobs.cpp.
| QStringList kmobiletoolsATJob::parseMultiList | ( | QString | list | ) | [static] |
Returns a QStringList containing each entry/list in the nested list.
The passed argument is treated as a nested list so each entry in the return argument can be another comma separated list.
Definition at line 120 of file at_jobs.cpp.
Member Data Documentation
AT_Engine* kmobiletoolsATJob::engine [protected] |
int kmobiletoolsATJob::i_retry [protected] |
KMobileTools::SerialManager* kmobiletoolsATJob::p_device [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference