Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
OidentdConfigGenerator Class Reference

Produces oidentd configuration files. More...

#include </tmp/quassel/src/core/oidentdconfiggenerator.h>

Public Slots

bool addSocket (const CoreIdentity *identity, const QHostAddress &localAddress, quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort)
bool removeSocket (const CoreIdentity *identity, const QHostAddress &localAddress, quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort)
 not yet implemented

Public Member Functions

 OidentdConfigGenerator (QObject *parent=0)
 ~OidentdConfigGenerator ()

Private Member Functions

bool init ()
bool writeConfig ()
bool parseConfig (bool readQuasselStanzas=false)
bool lineByUs (const QByteArray &line)

Private Attributes

bool _initialized
QDateTime _lastSync
QFile * _configFile
QByteArray _parsedConfig
QByteArray _quasselConfig
QMutex _mutex
QDir _configDir
QString _configFileName
QString _configPath
QString _configTag
QRegExp _quasselStanzaRx
QString _quasselStanzaTemplate

Detailed Description

Produces oidentd configuration files.

Upon IRC connect this class puts the clients' ident data into an oidentd configuration file.

The default path is <~/.oidentd.conf>.

For oidentd to incorporate this file, the global oidentd.conf has to state something like this:

user "quassel" { default { allow spoof allow spoof_all } }

Definition at line 57 of file oidentdconfiggenerator.h.

Constructor & Destructor Documentation

OidentdConfigGenerator ( QObject *  parent = 0)
explicit

Definition at line 23 of file oidentdconfiggenerator.cpp.

References _initialized, and init().

Member Function Documentation

bool addSocket ( const CoreIdentity identity,
const QHostAddress &  localAddress,
quint16  localPort,
const QHostAddress &  peerAddress,
quint16  peerPort 
)
slot
bool removeSocket ( const CoreIdentity identity,
const QHostAddress &  localAddress,
quint16  localPort,
const QHostAddress &  peerAddress,
quint16  peerPort 
)
slot

not yet implemented

Definition at line 83 of file oidentdconfiggenerator.cpp.

bool writeConfig ( )
private

Definition at line 116 of file oidentdconfiggenerator.cpp.

References _configFile, _mutex, _parsedConfig, and _quasselConfig.

Referenced by addSocket(), init(), and ~OidentdConfigGenerator().

bool parseConfig ( bool  readQuasselStanzas = false)
private

Definition at line 90 of file oidentdconfiggenerator.cpp.

References _configFile, _mutex, _parsedConfig, _quasselConfig, and lineByUs().

Referenced by init().

bool lineByUs ( const QByteArray &  line)
private

Definition at line 142 of file oidentdconfiggenerator.cpp.

References _quasselStanzaRx.

Referenced by parseConfig().

Member Data Documentation

bool _initialized
private

Definition at line 74 of file oidentdconfiggenerator.h.

Referenced by init(), and OidentdConfigGenerator().

QDateTime _lastSync
private

Definition at line 75 of file oidentdconfiggenerator.h.

QFile* _configFile
private

Definition at line 76 of file oidentdconfiggenerator.h.

Referenced by init(), parseConfig(), writeConfig(), and ~OidentdConfigGenerator().

QByteArray _parsedConfig
private

Definition at line 77 of file oidentdconfiggenerator.h.

Referenced by parseConfig(), and writeConfig().

QByteArray _quasselConfig
private
QMutex _mutex
private

Definition at line 80 of file oidentdconfiggenerator.h.

Referenced by parseConfig(), and writeConfig().

QDir _configDir
private

Definition at line 82 of file oidentdconfiggenerator.h.

Referenced by init().

QString _configFileName
private

Definition at line 83 of file oidentdconfiggenerator.h.

Referenced by init().

QString _configPath
private

Definition at line 84 of file oidentdconfiggenerator.h.

Referenced by init().

QString _configTag
private

Definition at line 85 of file oidentdconfiggenerator.h.

Referenced by addSocket(), and init().

QRegExp _quasselStanzaRx
private

Definition at line 86 of file oidentdconfiggenerator.h.

Referenced by init(), and lineByUs().

QString _quasselStanzaTemplate
private

Definition at line 87 of file oidentdconfiggenerator.h.

Referenced by addSocket(), and init().


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