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

#include </tmp/quassel/src/common/networkconfig.h>

Inheritance diagram for NetworkConfig:
Collaboration diagram for NetworkConfig:

Public Slots

bool pingTimeoutEnabled () const
void setPingTimeoutEnabled (bool)
virtual void requestSetPingTimeoutEnabled (bool b)
int pingInterval () const
void setPingInterval (int)
virtual void requestSetPingInterval (int i)
int maxPingCount () const
void setMaxPingCount (int)
virtual void requestSetMaxPingCount (int i)
bool autoWhoEnabled () const
void setAutoWhoEnabled (bool)
virtual void requestSetAutoWhoEnabled (bool b)
int autoWhoInterval () const
void setAutoWhoInterval (int)
virtual void requestSetAutoWhoInterval (int i)
int autoWhoNickLimit () const
void setAutoWhoNickLimit (int)
virtual void requestSetAutoWhoNickLimit (int i)
int autoWhoDelay () const
void setAutoWhoDelay (int)
virtual void requestSetAutoWhoDelay (int i)
bool standardCtcp () const
void setStandardCtcp (bool)
virtual void requestSetStandardCtcp (bool b)
virtual void setInitialized ()
void requestUpdate (const QVariantMap &properties)
virtual void update (const QVariantMap &properties)

Signals

void pingTimeoutEnabledSet (bool)
void pingIntervalSet (int)
void autoWhoEnabledSet (bool)
void autoWhoIntervalSet (int)
void autoWhoDelaySet (int)
void standardCtcpSet (bool)
void initDone ()
void updatedRemotely ()
void updated ()

Public Member Functions

 NetworkConfig (const QString &objectName="GlobalNetworkConfig", QObject *parent=0)
virtual const QMetaObject * syncMetaObject () const
virtual QVariantMap toVariantMap ()
 Stores the object's state into a QVariantMap.
virtual void fromVariantMap (const QVariantMap &properties)
 Initialize the object's state from a given QVariantMap.
virtual bool isInitialized () const
void setAllowClientUpdates (bool allow)
bool allowClientUpdates () const

Protected Member Functions

void sync_call__ (SignalProxy::ProxyMode modeType, const char *funcname,...) const
void renameObject (const QString &newName)

Properties

bool pingTimeoutEnabled
int pingInterval
int maxPingCount
bool autoWhoEnabled
int autoWhoInterval
int autoWhoNickLimit
int autoWhoDelay
bool standardCtcp

Private Attributes

bool _pingTimeoutEnabled
int _pingInterval
int _maxPingCount
bool _autoWhoEnabled
int _autoWhoInterval
int _autoWhoNickLimit
int _autoWhoDelay
bool _standardCtcp

Static Private Attributes

static const int _classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2

Detailed Description

Definition at line 26 of file networkconfig.h.

Constructor & Destructor Documentation

NetworkConfig ( const QString &  objectName = "GlobalNetworkConfig",
QObject *  parent = 0 
)

Definition at line 24 of file networkconfig.cpp.

Member Function Documentation

virtual const QMetaObject* syncMetaObject ( ) const
inlinevirtual

Reimplemented from SyncableObject.

Reimplemented in CoreNetworkConfig.

Definition at line 43 of file networkconfig.h.

bool pingTimeoutEnabled ( ) const
inlineslot

Definition at line 46 of file networkconfig.h.

References _pingTimeoutEnabled.

void setPingTimeoutEnabled ( bool  enabled)
slot
virtual void requestSetPingTimeoutEnabled ( bool  b)
inlinevirtualslot

Definition at line 48 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

int pingInterval ( ) const
inlineslot

Definition at line 50 of file networkconfig.h.

References _pingInterval.

void setPingInterval ( int  interval)
slot

Definition at line 49 of file networkconfig.cpp.

References _pingInterval, ARG, pingIntervalSet(), and SYNC.

Referenced by CoreNetworkConfig::requestSetPingInterval().

virtual void requestSetPingInterval ( int  i)
inlinevirtualslot

Definition at line 52 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

int maxPingCount ( ) const
inlineslot

Definition at line 54 of file networkconfig.h.

References _maxPingCount.

void setMaxPingCount ( int  count)
slot

Definition at line 60 of file networkconfig.cpp.

References _maxPingCount, ARG, and SYNC.

Referenced by CoreNetworkConfig::requestSetMaxPingCount().

virtual void requestSetMaxPingCount ( int  i)
inlinevirtualslot

Definition at line 56 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

bool autoWhoEnabled ( ) const
inlineslot

Definition at line 58 of file networkconfig.h.

References _autoWhoEnabled.

void setAutoWhoEnabled ( bool  enabled)
slot

Definition at line 70 of file networkconfig.cpp.

References _autoWhoEnabled, ARG, autoWhoEnabledSet(), and SYNC.

Referenced by CoreNetworkConfig::requestSetAutoWhoEnabled().

virtual void requestSetAutoWhoEnabled ( bool  b)
inlinevirtualslot

Definition at line 60 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

int autoWhoInterval ( ) const
inlineslot

Definition at line 62 of file networkconfig.h.

References _autoWhoInterval.

void setAutoWhoInterval ( int  interval)
slot
virtual void requestSetAutoWhoInterval ( int  i)
inlinevirtualslot

Definition at line 64 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

int autoWhoNickLimit ( ) const
inlineslot

Definition at line 66 of file networkconfig.h.

References _autoWhoNickLimit.

void setAutoWhoNickLimit ( int  nickLimit)
slot

Definition at line 92 of file networkconfig.cpp.

References _autoWhoNickLimit, ARG, and SYNC.

Referenced by CoreNetworkConfig::requestSetAutoWhoNickLimit().

virtual void requestSetAutoWhoNickLimit ( int  i)
inlinevirtualslot

Definition at line 68 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

int autoWhoDelay ( ) const
inlineslot

Definition at line 70 of file networkconfig.h.

References _autoWhoDelay.

void setAutoWhoDelay ( int  delay)
slot

Definition at line 102 of file networkconfig.cpp.

References _autoWhoDelay, ARG, autoWhoDelaySet(), and SYNC.

Referenced by CoreNetworkConfig::requestSetAutoWhoDelay().

virtual void requestSetAutoWhoDelay ( int  i)
inlinevirtualslot

Definition at line 72 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

bool standardCtcp ( ) const
inlineslot

Definition at line 74 of file networkconfig.h.

References _standardCtcp.

void setStandardCtcp ( bool  enabled)
slot

Definition at line 113 of file networkconfig.cpp.

References _standardCtcp, ARG, standardCtcpSet(), and SYNC.

Referenced by CoreNetworkConfig::requestSetStandardCtcp().

virtual void requestSetStandardCtcp ( bool  b)
inlinevirtualslot

Definition at line 76 of file networkconfig.h.

References ARG, and REQUEST.

Referenced by ConnectionSettingsPage::saveAutoWidgetValue().

void pingTimeoutEnabledSet ( bool  )
signal

Referenced by setPingTimeoutEnabled().

void pingIntervalSet ( int  )
signal

Referenced by setPingInterval().

void autoWhoEnabledSet ( bool  )
signal

Referenced by setAutoWhoEnabled().

void autoWhoIntervalSet ( int  )
signal

Referenced by setAutoWhoInterval().

void autoWhoDelaySet ( int  )
signal

Referenced by setAutoWhoDelay().

void standardCtcpSet ( bool  )
signal

Referenced by setStandardCtcp().

QVariantMap toVariantMap ( )
virtualinherited

Stores the object's state into a QVariantMap.

The default implementation takes dynamic properties as well as getters that have names starting with "init" and stores them in a QVariantMap. Override this method in derived classes in order to store the object state in a custom form.

Note
This is used by SignalProxy to transmit the state of the object to clients that request the initial object state. Later updates use a different mechanism and assume that the state is completely covered by properties and init* getters. DO NOT OVERRIDE THIS unless you know exactly what you do!
Returns
The object's state in a QVariantMap

Definition at line 91 of file syncableobject.cpp.

References SignalProxy::ExtendedMetaObject::methodBaseName(), and SignalProxy::ExtendedMetaObject::methodName().

Referenced by BufferViewSettingsPage::cloneConfig(), AliasesModel::commit(), IgnoreListModel::commit(), ClientBufferViewConfig::ensureDecoration(), IrcConnectionWizard::finishClicked(), SignalProxy::initData(), CoreNetworkConfig::save(), BufferViewSettingsPage::save(), and ClientBufferViewManager::setInitialized().

void fromVariantMap ( const QVariantMap &  properties)
virtualinherited

Initialize the object's state from a given QVariantMap.

See Also
toVariantMap() for important information concerning this method.

Definition at line 135 of file syncableobject.cpp.

References SyncableObject::setInitValue().

Referenced by BufferViewConfig::BufferViewConfig(), BufferViewSettingsPage::cloneConfig(), Network::newIrcChannel(), Network::newIrcUser(), SignalProxy::setInitData(), and SyncableObject::update().

void setAllowClientUpdates ( bool  allow)
inlineinherited
bool allowClientUpdates ( ) const
inlineinherited

Definition at line 82 of file syncableobject.h.

References SyncableObject::_allowClientUpdates.

Referenced by SyncableObject::requestUpdate().

void update ( const QVariantMap &  properties)
virtualslotinherited
void sync_call__ ( SignalProxy::ProxyMode  modeType,
const char *  funcname,
  ... 
) const
protectedinherited
void renameObject ( const QString &  newName)
protectedinherited
void initDone ( )
signalinherited
void updatedRemotely ( )
signalinherited
void updated ( )
signalinherited

Member Data Documentation

const int _classNameOffset__ = QByteArray(staticMetaObject.className()).length() + 2
staticprivate

Definition at line 28 of file networkconfig.h.

bool _pingTimeoutEnabled
private

Definition at line 97 of file networkconfig.h.

Referenced by pingTimeoutEnabled(), and setPingTimeoutEnabled().

int _pingInterval
private

Definition at line 98 of file networkconfig.h.

Referenced by pingInterval(), and setPingInterval().

int _maxPingCount
private

Definition at line 99 of file networkconfig.h.

Referenced by maxPingCount(), and setMaxPingCount().

bool _autoWhoEnabled
private

Definition at line 101 of file networkconfig.h.

Referenced by autoWhoEnabled(), and setAutoWhoEnabled().

int _autoWhoInterval
private

Definition at line 102 of file networkconfig.h.

Referenced by autoWhoInterval(), and setAutoWhoInterval().

int _autoWhoNickLimit
private

Definition at line 103 of file networkconfig.h.

Referenced by autoWhoNickLimit(), and setAutoWhoNickLimit().

int _autoWhoDelay
private

Definition at line 104 of file networkconfig.h.

Referenced by autoWhoDelay(), and setAutoWhoDelay().

bool _standardCtcp
private

Definition at line 106 of file networkconfig.h.

Referenced by setStandardCtcp(), and standardCtcp().

Property Documentation

bool pingTimeoutEnabled
readwrite

Definition at line 31 of file networkconfig.h.

Referenced by ConnectionSettingsPage::loadAutoWidgetValue().

int pingInterval
readwrite

Definition at line 32 of file networkconfig.h.

Referenced by ConnectionSettingsPage::loadAutoWidgetValue().

int maxPingCount
readwrite

Definition at line 33 of file networkconfig.h.

Referenced by ConnectionSettingsPage::loadAutoWidgetValue().

bool autoWhoEnabled
readwrite
int autoWhoInterval
readwrite

Definition at line 35 of file networkconfig.h.

Referenced by ConnectionSettingsPage::loadAutoWidgetValue().

int autoWhoNickLimit
readwrite
int autoWhoDelay
readwrite

Definition at line 37 of file networkconfig.h.

Referenced by ConnectionSettingsPage::loadAutoWidgetValue().

bool standardCtcp
readwrite

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