• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmobiletools

KMobileTools::SMS

KMobileTools::SMS Class Reference

#include <sms.h>

Inheritance diagram for KMobileTools::SMS:

Inheritance graph
[legend]

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

enum KMobileTools::SMS::MemorySlot

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.

enum KMobileTools::SMS::SMSType

Enumerator:
Unread 
Read 
Unsent 
Sent 
All 

Definition at line 85 of file sms.h.


Constructor & Destructor Documentation

SMS::SMS (  ) 

Definition at line 174 of file sms.cpp.

SMS::SMS ( const QStringList &  numbers,
const QString &  text 
)

Definition at line 192 of file sms.cpp.

SMS::SMS ( const QStringList &  numbers,
const QString &  text,
const KDateTime &  datetime 
)

Definition at line 179 of file sms.cpp.

SMS::~SMS (  )  [virtual]

Definition at line 199 of file sms.cpp.


Member Function Documentation

void SMS::addDestination ( const QString &  number,
const QString &  displayname = QString() 
)

Definition at line 481 of file sms.cpp.

QByteArray SMS::assembleHeaders (  )  [protected, virtual]

Definition at line 451 of file sms.cpp.

KMime::Headers::Date * SMS::date (  )  const

Definition at line 469 of file sms.cpp.

Destination * SMS::destination (  )  const

Definition at line 495 of file sms.cpp.

bool SMS::exportCSV ( const QString &  filename  ) 

Definition at line 350 of file sms.cpp.

bool SMS::exportMD ( const QString &  dir  ) 

Definition at line 287 of file sms.cpp.

int SMS::folder (  )  const

Definition at line 529 of file sms.cpp.

QString SMS::getDate (  )  const [virtual]

Definition at line 402 of file sms.cpp.

KDateTime SMS::getDateTime (  )  const [virtual]

Definition at line 404 of file sms.cpp.

QString SMS::getFrom (  )  const [virtual]

Definition at line 500 of file sms.cpp.

QStringList SMS::getMultiText ( const QString &  text  )  [static]

Definition at line 235 of file sms.cpp.

QStringList SMS::getMultiText (  )  const [virtual]

move this to the single setters?

Definition at line 277 of file sms.cpp.

int SMS::getMultiTextCount ( int  length  )  [static]

Definition at line 224 of file sms.cpp.

int SMS::getMultiTextCount ( const QString &  text  )  [static]

Definition at line 219 of file sms.cpp.

QString SMS::getText (  )  const [virtual]

Reimplemented in ATSMS.

Definition at line 401 of file sms.cpp.

QStringList SMS::getTo (  )  const [virtual]

Definition at line 203 of file sms.cpp.

QList< int > * SMS::idList (  ) 

Definition at line 530 of file sms.cpp.

bool SMS::isIncoming (  )  const

Definition at line 233 of file sms.cpp.

bool SMS::operator== ( SMS *  compSMS  ) 

Definition at line 214 of file sms.cpp.

QString SMS::rawSlot (  )  const [virtual]

Definition at line 526 of file sms.cpp.

Sender * SMS::sender (  )  const

Definition at line 490 of file sms.cpp.

void SMS::setDateTime ( const KDateTime &  datetime  ) 

Definition at line 408 of file sms.cpp.

void SMS::setFolder ( int  newFolder  ) 

Definition at line 528 of file sms.cpp.

void SMS::setNumbers ( const QStringList &  numbers  ) 

Definition at line 527 of file sms.cpp.

void SMS::setRawSlot ( const QString &  rawSlot  )  [virtual]

port-or-delete the following ones

Definition at line 525 of file sms.cpp.

void SMS::setSender ( const QString &  number,
const QString &  displayname = QString() 
)

Definition at line 473 of file sms.cpp.

void SMS::setSlot ( int  newSlot  ) 

Definition at line 531 of file sms.cpp.

void SMS::setText ( const QString &  text  ) 

Definition at line 400 of file sms.cpp.

void SMS::setType ( SMSType  newType  ) 

Definition at line 516 of file sms.cpp.

void SMS::setUnread ( bool  unread  ) 

Definition at line 418 of file sms.cpp.

int SMS::slot (  )  const

Definition at line 533 of file sms.cpp.

SMS::SMSType SMS::SMSIntType ( const QString &  type  )  [static]

Definition at line 442 of file sms.cpp.

QString SMS::SMSTypeString ( SMSType  smstype  )  [static]

Definition at line 426 of file sms.cpp.

SMS::SMSType SMS::type (  )  const

error handling here

Definition at line 510 of file sms.cpp.

QString SMS::uid (  )  const

Definition at line 188 of file sms.cpp.

bool SMS::unread (  )  const

Definition at line 414 of file sms.cpp.

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:
  • sms.h
  • sms.cpp

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal