Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

BlueLink Class Reference

Stellt die Verbindung zum Telephon bereit. More...

#include <bluelink.h>

Collaboration diagram for BlueLink:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BlueLink ()
 ~BlueLink ()
int connectRfcomm (const QString &, const QString &)
int disconnectRfcomm (const QString &)
void connecttoPhone (const QString &)
v24_port_t * getPort ()
bool getState ()
void disconnectPhone ()
QStringList talktoPhone (v24_port_t *, const QString &)

Private Attributes

bool m_communicate
bool m_connected
v24_port_t * m_port
QStringList m_phoneAnswer
QString m_phoneMode
QString m_rfcommCommand

Detailed Description

Stellt die Verbindung zum Telephon bereit.

Diese Klasse stellt die serielle Verbindung zum Telephon bereit. Als Traeger werden Bluetooth, IrDA und serielle Kabel unterstuetzt.

Definition at line 34 of file bluelink.h.


Constructor & Destructor Documentation

BlueLink::BlueLink  ) 
 

Erstellt ein BlueLink Objekt.

Definition at line 25 of file bluelink.cpp.

References m_communicate, m_connected, and m_port.

BlueLink::~BlueLink  ) 
 

BlueLink Destruktor

Definition at line 37 of file bluelink.cpp.


Member Function Documentation

int BlueLink::connectRfcomm const QString &  ,
const QString & 
 

Diese Methode verbindet das rfcomm Device mit dem entfernten Bluetooth Device (dem Telephon). Parameter: const QString& comDevice, btAddr

Definition at line 66 of file bluelink.cpp.

References connectRfcomm(), and m_rfcommCommand.

Referenced by connectRfcomm(), and BluePhone::phoneConnect().

Here is the call graph for this function:

void BlueLink::connecttoPhone const QString &   ) 
 

Diese Methode erstellt die Verbindung zum Telephon. Parameter: QString mit dem zu verwendenden Device, diese sind unter Linux normalerweise: /dev/rfcomm0 fuer Bluetooth, /dev/ircomm0 fuer IrDA oder /dev/ttyS0 fuer ein serielles Kabel

Definition at line 144 of file bluelink.cpp.

References connecttoPhone(), m_communicate, m_connected, m_phoneAnswer, m_phoneMode, m_port, and talktoPhone().

Referenced by connecttoPhone(), and BluePhone::phoneConnect().

Here is the call graph for this function:

void BlueLink::disconnectPhone  ) 
 

Diese Methode trennt die Verbindung zum Telephon.

Definition at line 189 of file bluelink.cpp.

References m_communicate, m_connected, and m_port.

Referenced by BluePhone::phoneDisconnect().

int BlueLink::disconnectRfcomm const QString &   ) 
 

Diese Methode trennt die rfcomm Verbindung mit dem Telephon. Parameter: const QString& comDevice

Definition at line 106 of file bluelink.cpp.

References disconnectRfcomm(), and m_rfcommCommand.

Referenced by disconnectRfcomm(), and BluePhone::phoneDisconnect().

Here is the call graph for this function:

v24_port_t * BlueLink::getPort  ) 
 

Diese Methode liefet einen Pointer auf einen v24_port_t zurueck. Siehe http://ezv24.sourceforge.net/api-html fuer weitere Informationen.

Definition at line 46 of file bluelink.cpp.

References m_port.

Referenced by BluePhone::phoneConnect().

bool BlueLink::getState  ) 
 

Diese Methode liefert den Status des Links zum Telephon zurueck. Rueckgabewert: bool Status

Definition at line 56 of file bluelink.cpp.

References m_connected.

Referenced by BluePhone::contactsBackup(), BluePhone::contactsCall(), BluePhone::contactsDelete(), BluePhone::contactsEdit(), BluePhone::contactsNew(), BluePhone::contactsRead(), BluePhone::contactsRestore(), BluePhone::contactsSms(), BluePhone::fileExit(), BluePhone::fileSend(), BluePhone::phoneConnect(), BluePhone::phoneDisconnect(), BluePhone::phoneGetInfo(), BluePhone::setLedGreen(), BluePhone::setLedOrange(), BluePhone::settingsSave(), BluePhone::smsDelete(), BluePhone::smsDeleteAll(), BluePhone::smsNew(), BluePhone::smsRead(), BluePhone::smsReply(), BluePhone::smsSave(), BluePhone::smsSaveAll(), and BluePhone::smsShow().

QStringList BlueLink::talktoPhone v24_port_t *  ,
const QString & 
 

Diese Methode tauscht Informationen mit dem Telephon aus. Parameter: v24_port_t* v24_port, QString Befehl . Rueckgabewert: QStringList mit allen Antworten des Telephons.

Definition at line 205 of file bluelink.cpp.

References m_communicate, and talktoPhone().

Referenced by connecttoPhone(), BluePhone::contactsCall(), BluePhone::contactsDelete(), BluePhone::contactsRead(), BluePhone::contactsRestore(), BluePhone::phoneGetInfo(), BluePhone::sendContactToPhone(), BluePhone::smsDelete(), BluePhone::smsDeleteAll(), BluePhone::smsRead(), and talktoPhone().

Here is the call graph for this function:


Member Data Documentation

bool BlueLink::m_communicate [private]
 

Status Variable, sind wir am kommunizieren oder nicht?

Definition at line 97 of file bluelink.h.

Referenced by BlueLink(), connecttoPhone(), disconnectPhone(), and talktoPhone().

bool BlueLink::m_connected [private]
 

Status Variable, sind wir mit dem Telephon verbunden oder nicht?

Definition at line 102 of file bluelink.h.

Referenced by BlueLink(), connecttoPhone(), disconnectPhone(), and getState().

QStringList BlueLink::m_phoneAnswer [private]
 

Beinhaltet die Antwort des Telephons.

Definition at line 113 of file bluelink.h.

Referenced by connecttoPhone().

QString BlueLink::m_phoneMode [private]
 

Beinhaltet den "New SMS Benachrichtigungs Modus" des Telephons.

Definition at line 118 of file bluelink.h.

Referenced by connecttoPhone().

v24_port_t* BlueLink::m_port [private]
 

Zeiger auf ezv24 Objekt "Port". Siehe http://ezv24.sourceforge.net/api-html fuer weitere Informationen.

Definition at line 108 of file bluelink.h.

Referenced by BlueLink(), connecttoPhone(), disconnectPhone(), and getPort().

QString BlueLink::m_rfcommCommand [private]
 

Beinhaltet die rfcomm Verbindungsparameter.

Definition at line 123 of file bluelink.h.

Referenced by connectRfcomm(), and disconnectRfcomm().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 14:42:34 2004 for BluePhone by doxygen 1.3.7