Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OpieTooth::ConnectionState Class Reference

#include </home/clem/local/src/opie/noncore/net/opietooth/lib/connection.h>

Collaboration diagram for OpieTooth::ConnectionState:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< ConnectionStateValueList

Public Member Functions

 ConnectionState (const ConnectionState &)
 ConnectionState (bool in, const QString &conType, const QString &mac, int handle, int state, int linkMode)
 ConnectionState ()
void setDirection (bool incoming=Incoming)
bool direction () const
void setConnectionMode (const QString &comMode)
QString connectionMode () const
void setMac (const QString &mac)
QString mac () const
void setHandle (int handle)
int handle () const
void setState (int state)
int state () const
void setLinkMode (int linkMode=Master)
int linkMode () const
ConnectionStateoperator= (const ConnectionState &)

Private Attributes

ConnectionStatePrivate * d
bool m_direction: 1
QString m_contype
QString m_mac
int m_handle
int m_state
int m_linkMode

Detailed Description

The Connection class stores the output of hcitool con in a OO way

Definition at line 51 of file connection.h.


Member Typedef Documentation

typedef QValueList<ConnectionState> OpieTooth::ConnectionState::ValueList
 

typedef for a list of Connections

Definition at line 57 of file connection.h.


Constructor & Destructor Documentation

ConnectionState::ConnectionState const ConnectionState  ) 
 

Copy c'tor.

Definition at line 17 of file connection.cpp.

ConnectionState::ConnectionState bool  in,
const QString conType,
const QString mac,
int  handle,
int  state,
int  linkMode
 

Main c'tor Basicly it holds all values a blueZ connections can have

Parameters:
in If the connection is either incoming or outgoing
conType Either ACL or SCO for connection type
mac The BD Address( mac ) of the peer
handle the blueZ handle
state the State of the connection
linkMode the linkmode of the connection MASTER or not
< ACL 00:02:C7:09:2B:53 handle 1 state 1 lm MASTER

Definition at line 22 of file connection.cpp.

References m_contype, m_direction, m_handle, m_linkMode, m_mac, and m_state.

ConnectionState::ConnectionState  ) 
 

C'tor for compability with QValueList QValueList needs this c'tor.

Definition at line 10 of file connection.cpp.

References OpieTooth::Incoming, m_direction, m_handle, m_linkMode, and m_state.


Member Function Documentation

QString ConnectionState::connectionMode  )  const
 

linkMode returns the linkMode MASTER for example

Definition at line 49 of file connection.cpp.

References m_contype.

Referenced by OpieTooth::BTConnectionItem::BTConnectionItem().

bool ConnectionState::direction  )  const
 

direction() will return Incoming( true ) if the direction is incomoning or Outgoing( false) if outgoing

Definition at line 41 of file connection.cpp.

References m_direction.

int ConnectionState::handle  )  const
 

Returns:
the handle of the connection

Definition at line 65 of file connection.cpp.

References m_handle.

int ConnectionState::linkMode  )  const
 

returns the linkMode

Definition at line 81 of file connection.cpp.

References m_linkMode.

QString ConnectionState::mac  )  const
 

returns the mac

Definition at line 57 of file connection.cpp.

References m_mac.

Referenced by OpieTooth::BTConnectionItem::BTConnectionItem().

ConnectionState & ConnectionState::operator= const ConnectionState  ) 
 

copy c'tor

Definition at line 85 of file connection.cpp.

References m_contype, m_direction, m_handle, m_linkMode, m_mac, and m_state.

void ConnectionState::setConnectionMode const QString comMode  ) 
 

sets the ConnectionMode

Parameters:
comMode I know that SCO and ACL exists so far

Definition at line 45 of file connection.cpp.

References m_contype.

Referenced by OpieTooth::Manager::parseConnections().

void ConnectionState::setDirection bool  incoming = Incoming  ) 
 

Set if the connection is incoming or outgoing

Parameters:
in Whether or not the connection is ingoing or not. for param use either Incoming or Outgoing

Definition at line 37 of file connection.cpp.

References m_direction.

Referenced by OpieTooth::Manager::parseConnections().

void ConnectionState::setHandle int  handle  ) 
 

Set the handle of the bt connection

Definition at line 61 of file connection.cpp.

References m_handle.

Referenced by OpieTooth::Manager::parseConnections().

void ConnectionState::setLinkMode int  linkMode = Master  ) 
 

Sets the link mode of the Connection

Definition at line 77 of file connection.cpp.

References m_linkMode.

Referenced by OpieTooth::Manager::parseConnections().

void ConnectionState::setMac const QString mac  ) 
 

The Bluetooth Address or mac is set by this function

Parameters:
mac the BluetoothAddress( mac)

Definition at line 53 of file connection.cpp.

References m_mac.

Referenced by OpieTooth::BlueBase::addConnectedDevices(), and OpieTooth::Manager::parseConnections().

void ConnectionState::setState int  state  ) 
 

sets the state

Definition at line 69 of file connection.cpp.

References m_state.

Referenced by OpieTooth::Manager::parseConnections().

int ConnectionState::state  )  const
 

return the state

Definition at line 73 of file connection.cpp.

References m_state.


Member Data Documentation

ConnectionStatePrivate* OpieTooth::ConnectionState::d [private]
 

Definition at line 168 of file connection.h.

QString OpieTooth::ConnectionState::m_contype [private]
 

Definition at line 171 of file connection.h.

Referenced by connectionMode(), ConnectionState(), operator=(), and setConnectionMode().

bool OpieTooth::ConnectionState::m_direction [private]
 

Definition at line 170 of file connection.h.

Referenced by ConnectionState(), direction(), operator=(), and setDirection().

int OpieTooth::ConnectionState::m_handle [private]
 

Definition at line 173 of file connection.h.

Referenced by ConnectionState(), handle(), operator=(), and setHandle().

int OpieTooth::ConnectionState::m_linkMode [private]
 

Definition at line 175 of file connection.h.

Referenced by ConnectionState(), linkMode(), operator=(), and setLinkMode().

QString OpieTooth::ConnectionState::m_mac [private]
 

Definition at line 172 of file connection.h.

Referenced by ConnectionState(), mac(), operator=(), and setMac().

int OpieTooth::ConnectionState::m_state [private]
 

Definition at line 174 of file connection.h.

Referenced by ConnectionState(), operator=(), setState(), and state().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:02:31 2005 for OPIE by  doxygen 1.4.2