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

QCopBridgePI Class Reference

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

Collaboration diagram for QCopBridgePI:

Collaboration graph
[legend]
List of all members.

Signals

void connectionClosed (QCopBridgePI *)
void connectionClosed (QCopBridgePI *)

Public Member Functions

 QCopBridgePI (int socket, QObject *parent=0, const char *name=0)
virtual ~QCopBridgePI ()
void sendDesktopMessage (const QString &msg)
void sendDesktopMessage (const QCString &msg, const QByteArray &)
void startSync ()
bool verifyAuthorised ()
 QCopBridgePI (int socket, QObject *parent=0, const char *name=0)
virtual ~QCopBridgePI ()
void sendDesktopMessage (const QString &msg)
void startSync ()

Protected Slots

void read ()
void send (const QString &msg)
void process (const QString &command)
void myConnectionClosed ()
void read ()
void send (const QString &msg)
void process (const QString &command)
void connectionClosed ()

Protected Member Functions

void timerEvent (QTimerEvent *e)

Private Types

enum  State {
  Connected, Wait_USER, Wait_PASS, Ready,
  Forbidden
}
enum  State {
  Connected, Wait_USER, Wait_PASS, Ready,
  Forbidden
}

Private Attributes

State state
Q_UINT16 peerport
QHostAddress peeraddress
bool sendSync
QTimer * timer
bool connected

Member Enumeration Documentation

enum QCopBridgePI::State [private]
 

Enumeration values:
Connected 
Wait_USER 
Wait_PASS 
Ready 
Forbidden 

Definition at line 63 of file qcopbridge.h.

enum QCopBridgePI::State [private]
 

Enumeration values:
Connected 
Wait_USER 
Wait_PASS 
Ready 
Forbidden 

Definition at line 73 of file qcopbridge.h.


Constructor & Destructor Documentation

QCopBridgePI::QCopBridgePI int  socket,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 255 of file qcopbridge.cpp.

References Connected, connectionClosed(), FALSE, Forbidden, SyncAuthentication::isAuthorized(), SyncAuthentication::loginName(), myConnectionClosed(), SyncAuthentication::ownerName(), peeraddress, peerport, QPE_VERSION, read(), send(), sendSync, SyncAuthentication::serverId(), state, timer, TRUE, and Wait_USER.

QCopBridgePI::~QCopBridgePI  )  [virtual]
 

Definition at line 290 of file qcopbridge.cpp.

QCopBridgePI::QCopBridgePI int  socket,
QObject *  parent = 0,
const char *  name = 0
 

virtual QCopBridgePI::~QCopBridgePI  )  [virtual]
 


Member Function Documentation

void QCopBridgePI::connectionClosed  )  [protected, slot]
 

Definition at line 239 of file qcopbridge.cpp.

Referenced by myConnectionClosed(), QCopBridgePI(), and timerEvent().

void QCopBridgePI::connectionClosed QCopBridgePI  )  [signal]
 

void QCopBridgePI::connectionClosed QCopBridgePI  )  [signal]
 

void QCopBridgePI::myConnectionClosed  )  [protected, slot]
 

Definition at line 303 of file qcopbridge.cpp.

References connectionClosed().

Referenced by QCopBridgePI().

void QCopBridgePI::process const QString command  )  [protected, slot]
 

void QCopBridgePI::process const QString command  )  [protected, slot]
 

Definition at line 347 of file qcopbridge.cpp.

References QValueList< T >::begin(), channel, SyncAuthentication::checkPassword(), SyncAuthentication::checkUser(), Connected, QValueList< T >::count(), QValueList< T >::end(), FALSE, QString::find(), IO_WriteOnly, QValueList< T >::isEmpty(), QCopChannel::isRegistered(), QString::latin1(), QString::length(), QString::mid(), Ready, QString::replace(), QCopChannel::send(), send(), sendDesktopMessage(), sendSync, QStringList::split(), state, QString::stripWhiteSpace(), QString::truncate(), Wait_PASS, and Wait_USER.

Referenced by read().

void QCopBridgePI::read  )  [protected, slot]
 

void QCopBridgePI::read  )  [protected, slot]
 

Definition at line 339 of file qcopbridge.cpp.

References process(), timer, and TRUE.

Referenced by QCopBridgePI().

void QCopBridgePI::send const QString msg  )  [protected, slot]
 

void QCopBridgePI::send const QString msg  )  [protected, slot]
 

Definition at line 330 of file qcopbridge.cpp.

References Opie::Core::endl().

Referenced by process(), QCopBridgePI(), and sendDesktopMessage().

void QCopBridgePI::sendDesktopMessage const QString msg  ) 
 

void QCopBridgePI::sendDesktopMessage const QCString msg,
const QByteArray
 

Definition at line 314 of file qcopbridge.cpp.

References Opie::Core::OGlobal::encodeBase64(), and QCString::length().

void QCopBridgePI::sendDesktopMessage const QString msg  ) 
 

Definition at line 308 of file qcopbridge.cpp.

References send(), and str.

Referenced by QCopBridge::desktopMessage(), process(), and QCopBridge::sendDesktopMessageOld().

void QCopBridgePI::startSync  )  [inline]
 

Definition at line 70 of file qcopbridge.h.

References sendSync, and TRUE.

void QCopBridgePI::startSync  )  [inline]
 

Definition at line 81 of file qcopbridge.h.

References sendSync, and TRUE.

void QCopBridgePI::timerEvent QTimerEvent *  e  )  [protected]
 

Definition at line 414 of file qcopbridge.cpp.

References connected, connectionClosed(), and FALSE.

bool QCopBridgePI::verifyAuthorised  ) 
 

Definition at line 294 of file qcopbridge.cpp.

References FALSE, Forbidden, SyncAuthentication::isAuthorized(), state, and TRUE.


Member Data Documentation

bool QCopBridgePI::connected [private]
 

Definition at line 88 of file qcopbridge.h.

Referenced by timerEvent().

QHostAddress QCopBridgePI::peeraddress [private]
 

Definition at line 87 of file qcopbridge.h.

Referenced by QCopBridgePI().

Q_UINT16 QCopBridgePI::peerport [private]
 

Definition at line 86 of file qcopbridge.h.

Referenced by QCopBridgePI().

bool QCopBridgePI::sendSync [private]
 

Definition at line 89 of file qcopbridge.h.

Referenced by process(), QCopBridgePI(), and startSync().

State QCopBridgePI::state [private]
 

Definition at line 85 of file qcopbridge.h.

Referenced by process(), QCopBridgePI(), and verifyAuthorised().

QTimer* QCopBridgePI::timer [private]
 

Definition at line 98 of file qcopbridge.h.

Referenced by QCopBridgePI(), and read().


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