kmobiletools
KMobileTools::SMS Class Reference
#include <sms.h>
List of all members.
Detailed Description
Definition at line 64 of file sms.h.
|
Public Types |
| enum | MemorySlot { Phone = 0x01,
Sim = 0x02,
DataCard = 0x04,
Unknown = 0x08
} |
| enum | SMSType {
Unread = 0x1,
Read = 0x2,
Unsent = 0x4,
Sent = 0x8,
All = 0xA
} |
Public Member Functions |
| void | addDestination (const QString &number, const QString &displayname=QString()) |
| KMime::Headers::Date * | date () const |
| Destination * | destination () const |
| bool | exportCSV (const QString &filename) |
| bool | exportMD (const QString &dir) |
| int KDE_DEPRECATED | folder () const |
| virtual QString | getDate () const |
| virtual KDateTime | getDateTime () const |
| virtual KDE_DEPRECATED QString | getFrom () const |
| virtual QStringList | getMultiText () const |
| virtual QString | getText () const |
| virtual QStringList | getTo () const |
| QList< int > * | idList () |
| bool | isIncoming () const |
| bool | operator== (SMS *compSMS) |
| virtual QString | rawSlot () const |
| Sender * | sender () const |
| void | setDateTime (const KDateTime &datetime) |
| void KDE_DEPRECATED | setFolder (int newFolder) |
| void KDE_DEPRECATED | setNumbers (const QStringList &numbers) |
| virtual void | setRawSlot (const QString &rawSlot) |
| void | setSender (const QString &number, const QString &displayname=QString()) |
| void KDE_DEPRECATED | setSlot (int newSlot) |
| void | setText (const QString &text) |
| void | setType (SMSType newType) |
| void | setUnread (bool unread) |
| int | slot () const |
| KDE_CONSTRUCTOR_DEPRECATED | SMS (const QStringList &numbers, const QString &text, const KDateTime &datetime) |
| KDE_CONSTRUCTOR_DEPRECATED | SMS (const QStringList &numbers, const QString &text) |
| | SMS () |
| SMSType | type () const |
| QString | uid () const |
| bool | unread () const |
| bool | writeToSlot (const QString &slotDir) |
| bool | writeToSlotCSV (const QString &filename) |
| virtual | ~SMS () |
Static Public Member Functions |
| static QStringList | getMultiText (const QString &) |
| static int | getMultiTextCount (int) |
| static int | getMultiTextCount (const QString &) |
| static SMSType | SMSIntType (const QString &type) |
| static QString | SMSTypeString (SMSType smstype) |
Protected Member Functions |
| virtual QByteArray | assembleHeaders () |
Member Enumeration Documentation
This enum type defines the type of sms memory slots.
- Sim : Sim card
- Phone : Phone
- DataCard : Data card
- Unknown: Unknown storage location
- Enumerator:
-
| Phone |
|
| Sim |
|
| DataCard |
|
| Unknown |
|
Definition at line 75 of file sms.h.
- Enumerator:
-
| Unread |
|
| Read |
|
| Unsent |
|
| Sent |
|
| All |
|
Definition at line 85 of file sms.h.
Constructor & Destructor Documentation
| SMS::SMS |
( |
const QStringList & |
numbers, |
|
|
const QString & |
text, |
|
|
const KDateTime & |
datetime | |
|
) |
| | |
Member Function Documentation
| QByteArray SMS::assembleHeaders |
( |
|
) |
[protected, virtual] |
| KMime::Headers::Date * SMS::date |
( |
|
) |
const |
| bool SMS::exportCSV |
( |
const QString & |
filename |
) |
|
| bool SMS::exportMD |
( |
const QString & |
dir |
) |
|
| int SMS::folder |
( |
|
) |
const |
| QString SMS::getDate |
( |
|
) |
const [virtual] |
| KDateTime SMS::getDateTime |
( |
|
) |
const [virtual] |
| QString SMS::getFrom |
( |
|
) |
const [virtual] |
move this to the single setters?
Definition at line 277 of file sms.cpp.
| int SMS::getMultiTextCount |
( |
int |
length |
) |
[static] |
| int SMS::getMultiTextCount |
( |
const QString & |
text |
) |
[static] |
| QString SMS::getText |
( |
|
) |
const [virtual] |
| QList< int > * SMS::idList |
( |
|
) |
|
| bool SMS::isIncoming |
( |
|
) |
const |
| bool SMS::operator== |
( |
SMS * |
compSMS |
) |
|
| QString SMS::rawSlot |
( |
|
) |
const [virtual] |
| Sender * SMS::sender |
( |
|
) |
const |
| void SMS::setDateTime |
( |
const KDateTime & |
datetime |
) |
|
| void SMS::setFolder |
( |
int |
newFolder |
) |
|
| void SMS::setRawSlot |
( |
const QString & |
rawSlot |
) |
[virtual] |
port-or-delete the following ones
Definition at line 525 of file sms.cpp.
| void SMS::setSlot |
( |
int |
newSlot |
) |
|
| void SMS::setText |
( |
const QString & |
text |
) |
|
| void SMS::setType |
( |
SMSType |
newType |
) |
|
| void SMS::setUnread |
( |
bool |
unread |
) |
|
error handling here
Definition at line 510 of file sms.cpp.
| bool SMS::unread |
( |
|
) |
const |
| bool SMS::writeToSlot |
( |
const QString & |
slotDir |
) |
|
- Todo:
- translateNumber(const QString&) is obsolete
- Todo:
- translateNumber(const QString&) is obsolete
Definition at line 297 of file sms.cpp.
| bool SMS::writeToSlotCSV |
( |
const QString & |
filename |
) |
|
- Todo:
- translateNumber(const QString&) is obsolete
- Todo:
- translateNumber(const QString&) is obsolete
Definition at line 359 of file sms.cpp.
The documentation for this class was generated from the following files: