Logo Search packages:      
Sourcecode: l2tp-ipsec-vpn-daemon version File versions  Download package

Public Types | Public Member Functions | Private Slots | Private Member Functions | Private Attributes

VpnClientConnection Class Reference

List of all members.

Public Types

enum  Command {
  CMD_START_PCSCD, CMD_STOP_PCSCD, CMD_START_IPSECD, CMD_STOP_IPSECD,
  CMD_START_L2TPD, CMD_STOP_L2TPD, CMD_START_RSYSLOGD, CMD_STOP_RSYSLOGD,
  CMD_IPSEC_READY, CMD_IPSEC_UP, CMD_IPSEC_DOWN, CMD_IPSEC_REREAD,
  CMD_L2TP_CONNECT, CMD_L2TP_DISCONNECT, CMD_CREATE_VPN_LOGPIPE, CMD_QUIT,
  CMD_UNKNOWN
}
enum  ResponseInformation { CLOSED }
enum  ResponseResult {
  OK = 0, ERR_UNKNOWN_CMD = 90, ERR_INALID_NO_OF_ARGUMENTS = 91, ERR_COMMAND_FAILED_TO_START = 92,
  ERR_COMMAND_CRASHED_AFTER_START = 93, ERR_COMMAND_TIMEDOUT = 94, ERR_COMMAND_FAILED_TO_READ_FROM_PROCESS = 95, ERR_COMMAND_FAILED_TO_WRITE_TO_PROCESS = 96,
  ERR_COMMAND_FAILED_WITH_UNKNOW_ERROR = 97, ERR_WRITE_PIPE = 200, ERR_OPEN_PIPE = 210, ERR_CREATE_VPN_LOG_PIPE = 220,
  ERR_CHMOD_VPN_LOG_PIPE = 221, ERR_CHOWN_VPN_LOG_PIPE = 222, ERR_START_SYSLOG_DAEMON = 223
}
enum  ResponseType { RESULT, OUTPUT, INFORMATION, UNKNOWN }

Public Member Functions

 VpnClientConnection (QLocalSocket *pSocket, QObject *pParent=NULL)

Private Slots

void onCommandError (QProcess::ProcessError iError)
void onCommandFinished (int iExitCode)
void readyRead ()
void readyReadStandardOutput ()

Private Member Functions

VpnClientConnectionoperator= (const VpnClientConnection &orig)
bool send (ResponseType responseType, const QString &strOutputline)
bool send (ResponseType responseType, ResponseInformation responseInformation)
bool send (ResponseType responseType, ResponseResult resultCode, const QString &strCommand)
 VpnClientConnection (const VpnClientConnection &orig)

Private Attributes

QProcess *const m_pProcess
QLocalSocket *const m_pSocket
QTextStream *const m_pStream
QString m_strActiveCommand

Detailed Description

Definition at line 34 of file VpnClientConnection.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index