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

OpieObex::Obex Class Reference

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

Collaboration diagram for OpieObex::Obex:

Collaboration graph
[legend]
List of all members.

Signals

void receivedFile (const QString &path)
void error (int)
void currentTry (unsigned int)
void sent (bool)
void done (bool)

Public Member Functions

 Obex (QObject *parent, const char *name)
 ~Obex ()
void receive ()
void send (const QString &)
void setReceiveEnabled (bool=false)

Private Slots

void slotExited (Opie::Core::OProcess *proc)
void slotStdOut (Opie::Core::OProcess *, char *, int)
void slotError ()

Private Member Functions

void shutDownReceive ()
void sendNow ()
QString parseOut ()
void received ()
void sendEnd ()

Private Attributes

uint m_count
QString m_file
QString m_outp
Opie::Core::OProcessm_send
Opie::Core::OProcessm_rec
bool m_receive: 1

Constructor & Destructor Documentation

Obex::Obex QObject *  parent,
const char *  name
 

Obex c'tor look

Definition at line 18 of file obex.cpp.

References error(), m_count, m_rec, m_receive, m_send, sent(), and slotError().

Obex::~Obex  ) 
 

d'tor

Definition at line 30 of file obex.cpp.

References m_rec, and m_send.


Member Function Documentation

void OpieObex::Obex::currentTry unsigned  int  )  [signal]
 

The current try to receive data

Referenced by sendNow().

void OpieObex::Obex::done bool   )  [signal]
 

Referenced by receive(), and received().

void OpieObex::Obex::error int   )  [signal]
 

error signal if the program couldn't be started or the the connection timed out

Referenced by Obex(), send(), sendEnd(), sendNow(), and shutDownReceive().

QString Obex::parseOut  )  [private]
 

Definition at line 147 of file obex.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), list, m_outp, QString::mid(), pos, QString::remove(), QStringList::split(), and QString::stripWhiteSpace().

Referenced by received().

void Obex::receive  ) 
 

Starting listening to irda after enabled by the applet a signal gets emitted when received a file

Definition at line 34 of file obex.cpp.

References OProcess::AllOutput, done(), m_outp, m_rec, m_receive, OProcess::NotifyOnExit, QString::null, OProcess, slotExited(), slotStdOut(), and Opie::Core::OProcess::start().

Referenced by received(), OpieObex::Receiver::Receiver(), and slotError().

void Obex::received  )  [private]
 

Definition at line 115 of file obex.cpp.

References done(), Opie::Core::OProcess::exitStatus(), m_rec, Opie::Core::OProcess::normalExit(), parseOut(), receive(), and receivedFile().

Referenced by slotExited().

void OpieObex::Obex::receivedFile const QString path  )  [signal]
 

a signal

Parameters:
path The path to the received file

Referenced by received().

void Obex::send const QString  ) 
 

Definition at line 53 of file obex.cpp.

References error(), Opie::Core::OProcess::isRunning(), m_count, m_file, m_rec, and sendNow().

Referenced by OpieObex::SendWidget::slotStartIrda().

void Obex::sendEnd  )  [private]
 

Definition at line 129 of file obex.cpp.

References error(), Opie::Core::OProcess::exitStatus(), m_send, Opie::Core::OProcess::normalExit(), sendNow(), and sent().

Referenced by slotExited().

void Obex::sendNow  )  [private]
 

Definition at line 69 of file obex.cpp.

References currentTry(), QFile::encodeName(), error(), m_count, m_file, m_send, OProcess, sent(), Opie::Core::OProcess::setWorkingDirectory(), slotExited(), slotStdOut(), and Opie::Core::OProcess::start().

Referenced by send(), and sendEnd().

void OpieObex::Obex::sent bool   )  [signal]
 

signal sent The file got beamed to the remote location

Referenced by Obex(), sendEnd(), and sendNow().

void Obex::setReceiveEnabled bool  = false  ) 
 

Definition at line 171 of file obex.cpp.

References m_receive, and shutDownReceive().

Referenced by OpieObex::Receiver::~Receiver().

void Obex::shutDownReceive  )  [private]
 

Definition at line 178 of file obex.cpp.

References error(), Opie::Core::OProcess::isRunning(), and m_rec.

Referenced by setReceiveEnabled().

void Obex::slotError  )  [private, slot]
 

when sent is done slotError is called we will start receive again

Definition at line 167 of file obex.cpp.

References m_receive, and receive().

Referenced by Obex().

void Obex::slotExited Opie::Core::OProcess proc  )  [private, slot]
 

send over palm obex

Definition at line 100 of file obex.cpp.

References m_rec, m_send, received(), and sendEnd().

Referenced by receive(), and sendNow().

void Obex::slotStdOut Opie::Core::OProcess ,
char *  ,
int 
[private, slot]
 

Definition at line 107 of file obex.cpp.

References QString::append(), m_outp, and m_rec.

Referenced by receive(), and sendNow().


Member Data Documentation

uint OpieObex::Obex::m_count [private]
 

Definition at line 53 of file obex.h.

Referenced by Obex(), send(), and sendNow().

QString OpieObex::Obex::m_file [private]
 

Definition at line 54 of file obex.h.

Referenced by send(), and sendNow().

QString OpieObex::Obex::m_outp [private]
 

Definition at line 55 of file obex.h.

Referenced by parseOut(), receive(), and slotStdOut().

Opie::Core::OProcess* OpieObex::Obex::m_rec [private]
 

Definition at line 57 of file obex.h.

Referenced by Obex(), receive(), received(), send(), shutDownReceive(), slotExited(), slotStdOut(), and ~Obex().

bool OpieObex::Obex::m_receive [private]
 

Definition at line 58 of file obex.h.

Referenced by Obex(), receive(), setReceiveEnabled(), and slotError().

Opie::Core::OProcess* OpieObex::Obex::m_send [private]
 

Definition at line 56 of file obex.h.

Referenced by Obex(), sendEnd(), sendNow(), slotExited(), and ~Obex().


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