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

OpieObex::SendWidget Class Reference

#include </home/clem/local/src/opie/core/obex/obexsend.h>

Collaboration diagram for OpieObex::SendWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void send (const QString &file, const QString &desc)

Signals

void done ()

Public Member Functions

 SendWidget (QWidget *parent=0, const char *name=0)
 ~SendWidget ()
QString file () const

Protected Slots

virtual void userDone ()
virtual void send_to_receivers ()
virtual void scan_for_receivers ()
virtual void toggle_receiver (QListViewItem *item)

Protected Member Functions

void closeEvent (QCloseEvent *)

Private Slots

void slotIrDaDevices (const QStringList &)
void slotBTDevices (const QMap< QString, QString > &)
void slotSelectedDevice (int id, int dev)
void dispatchIrda (const QCString &str, const QByteArray &ar)
void slotIrError (int)
void slotIrSent (bool)
void slotIrTry (unsigned int)
void slotStartIrda ()
void dispatchBt (const QCString &str, const QByteArray &ar)
void slotBtError (int)
void slotBtSent (bool)
void slotBtTry (unsigned int)
void slotStartBt ()

Private Member Functions

void initUI ()
int addReceiver (const char *r, const char *icon)
void setReceiverStatus (int id, const QString &status)
bool receiverSelected (int id)

Private Attributes

int m_start
QMap< int, QStringm_irDa
QMap< int, QString >::Iterator m_irDaIt
QMap< int, Pairm_bt
QMap< int, Pair >::Iterator m_btIt
QMap< int, QListViewItem * > receivers
QString m_file
Obexm_obex
BtObexm_btobex

Constructor & Destructor Documentation

SendWidget::SendWidget QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 27 of file obexsend.cpp.

References initUI().

SendWidget::~SendWidget  ) 
 

Definition at line 31 of file obexsend.cpp.


Member Function Documentation

int SendWidget::addReceiver const char *  r,
const char *  icon
[private]
 

Definition at line 73 of file obexsend.cpp.

References QMap< Key, T >::count(), Resource::loadPixmap(), and receivers.

Referenced by slotBTDevices(), and slotIrDaDevices().

void SendWidget::closeEvent QCloseEvent *   )  [protected]
 

Definition at line 228 of file obexsend.cpp.

References userDone().

void SendWidget::dispatchBt const QCString str,
const QByteArray ar
[private, slot]
 

Definition at line 151 of file obexsend.cpp.

References IO_ReadOnly, slotBTDevices(), and stream.

Referenced by initUI().

void SendWidget::dispatchIrda const QCString str,
const QByteArray ar
[private, slot]
 

Definition at line 121 of file obexsend.cpp.

References IO_ReadOnly, list, slotIrDaDevices(), and stream.

Referenced by initUI().

void OpieObex::SendWidget::done  )  [signal]
 

Referenced by userDone().

QString SendWidget::file  )  const
 

Definition at line 237 of file obexsend.cpp.

References m_file.

Referenced by OpieObex::ObexHandler::slotSent().

void SendWidget::initUI  )  [private]
 

Definition at line 33 of file obexsend.cpp.

References dispatchBt(), dispatchIrda(), error(), m_btobex, m_obex, slotBtError(), slotBtSent(), slotBtTry(), slotIrError(), slotIrSent(), and slotIrTry().

Referenced by SendWidget().

bool SendWidget::receiverSelected int  id  )  [private]
 

Definition at line 84 of file obexsend.cpp.

References receivers.

Referenced by slotStartBt().

void SendWidget::scan_for_receivers  )  [protected, virtual, slot]
 

Definition at line 188 of file obexsend.cpp.

References QCopChannel::isRegistered(), and tr.

Referenced by send().

void SendWidget::send const QString file,
const QString desc
[slot]
 

Definition at line 64 of file obexsend.cpp.

References QMap< Key, T >::clear(), QString::isEmpty(), m_file, m_irDa, m_start, and scan_for_receivers().

Referenced by OpieObex::ObexHandler::doSend().

void SendWidget::send_to_receivers  )  [protected, virtual, slot]
 

Definition at line 183 of file obexsend.cpp.

References slotStartBt(), and slotStartIrda().

void SendWidget::setReceiverStatus int  id,
const QString status
[private]
 

Definition at line 89 of file obexsend.cpp.

References QMap< Key, T >::contains(), and receivers.

Referenced by slotBtSent(), slotBtTry(), slotIrSent(), slotIrTry(), slotStartBt(), and slotStartIrda().

void SendWidget::slotBTDevices const QMap< QString, QString > &   )  [private, slot]
 

Definition at line 104 of file obexsend.cpp.

References addReceiver(), QMap< Key, T >::begin(), QMap< Key, T >::end(), QMap< Key, T >::insert(), m_bt, m_btIt, and tr.

Referenced by dispatchBt().

void SendWidget::slotBtError int   )  [private, slot]
 

Definition at line 159 of file obexsend.cpp.

References tr.

Referenced by initUI().

void SendWidget::slotBtSent bool   )  [private, slot]
 

Definition at line 162 of file obexsend.cpp.

References m_btIt, setReceiverStatus(), slotStartBt(), text, and tr.

Referenced by initUI().

void SendWidget::slotBtTry unsigned  int  )  [private, slot]
 

Definition at line 168 of file obexsend.cpp.

References m_btIt, QString::number(), setReceiverStatus(), and tr.

Referenced by initUI().

void SendWidget::slotIrDaDevices const QStringList  )  [private, slot]
 

Definition at line 94 of file obexsend.cpp.

References addReceiver(), QMap< Key, T >::begin(), QMap< Key, T >::insert(), m_irDa, m_irDaIt, and tr.

Referenced by dispatchIrda().

void SendWidget::slotIrError int   )  [private, slot]
 

Definition at line 129 of file obexsend.cpp.

References tr.

Referenced by initUI().

void SendWidget::slotIrSent bool   )  [private, slot]
 

Definition at line 132 of file obexsend.cpp.

References m_irDaIt, setReceiverStatus(), slotStartIrda(), text, and tr.

Referenced by initUI().

void SendWidget::slotIrTry unsigned  int  )  [private, slot]
 

Definition at line 138 of file obexsend.cpp.

References m_irDaIt, QString::number(), setReceiverStatus(), and tr.

Referenced by initUI().

void SendWidget::slotSelectedDevice int  id,
int  dev
[private, slot]
 

Definition at line 113 of file obexsend.cpp.

void SendWidget::slotStartBt  )  [private, slot]
 

Definition at line 171 of file obexsend.cpp.

References QMap< Key, T >::end(), m_bt, m_btIt, m_btobex, m_file, receiverSelected(), OpieObex::BtObex::send(), setReceiverStatus(), and tr.

Referenced by send_to_receivers(), and slotBtSent().

void SendWidget::slotStartIrda  )  [private, slot]
 

Definition at line 141 of file obexsend.cpp.

References QMap< Key, T >::count(), QMap< Key, T >::end(), m_file, m_irDa, m_irDaIt, m_obex, OpieObex::Obex::send(), setReceiverStatus(), and tr.

Referenced by send_to_receivers(), and slotIrSent().

void SendWidget::toggle_receiver QListViewItem *  item  )  [protected, virtual, slot]
 

Definition at line 218 of file obexsend.cpp.

References Resource::loadPixmap().

void SendWidget::userDone  )  [protected, virtual, slot]
 

Definition at line 232 of file obexsend.cpp.

References done().

Referenced by closeEvent().


Member Data Documentation

QMap<int, Pair > OpieObex::SendWidget::m_bt [private]
 

Definition at line 89 of file obexsend.h.

Referenced by slotBTDevices(), and slotStartBt().

QMap<int, Pair>::Iterator OpieObex::SendWidget::m_btIt [private]
 

Definition at line 90 of file obexsend.h.

Referenced by slotBTDevices(), slotBtSent(), slotBtTry(), and slotStartBt().

BtObex* OpieObex::SendWidget::m_btobex [private]
 

Definition at line 94 of file obexsend.h.

Referenced by initUI(), and slotStartBt().

QString OpieObex::SendWidget::m_file [private]
 

Definition at line 92 of file obexsend.h.

Referenced by file(), send(), slotStartBt(), and slotStartIrda().

QMap<int, QString> OpieObex::SendWidget::m_irDa [private]
 

Definition at line 87 of file obexsend.h.

Referenced by send(), slotIrDaDevices(), and slotStartIrda().

QMap<int, QString>::Iterator OpieObex::SendWidget::m_irDaIt [private]
 

Definition at line 88 of file obexsend.h.

Referenced by slotIrDaDevices(), slotIrSent(), slotIrTry(), and slotStartIrda().

Obex* OpieObex::SendWidget::m_obex [private]
 

Definition at line 93 of file obexsend.h.

Referenced by initUI(), and slotStartIrda().

int OpieObex::SendWidget::m_start [private]
 

Definition at line 86 of file obexsend.h.

Referenced by send().

QMap<int, QListViewItem *> OpieObex::SendWidget::receivers [private]
 

Definition at line 91 of file obexsend.h.

Referenced by addReceiver(), receiverSelected(), and setReceiverStatus().


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