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

#include </tmp/quassel/src/client/coreaccount.h>

Collaboration diagram for CoreAccount:

Private Member Functions

virtual Q_DECLARE_TR_FUNCTIONS(CoreAccount)
public 
~CoreAccount ()
bool isValid () const
AccountId accountId () const
QString accountName () const
QUuid uuid () const
bool isInternal () const
QString user () const
bool storePassword () const
QString hostName () const
uint port () const
bool useSsl () const
bool useProxy () const
QNetworkProxy::ProxyType proxyType () const
QString proxyUser () const
QString proxyHostName () const
uint proxyPort () const
void setAccountId (AccountId id)
void setAccountName (const QString &accountName)
void setUuid (const QUuid &uuid)
void setInternal (bool)
void setUser (const QString &user)
void setStorePassword (bool)
void setHostName (const QString &hostname)
void setPort (uint port)
void setUseSsl (bool)
void setUseProxy (bool)
void setProxyType (QNetworkProxy::ProxyType)
void setProxyUser (const QString &)
void setProxyHostName (const QString &)
void setProxyPort (uint)
virtual QString password () const
virtual void setPassword (const QString &password)
virtual QString proxyPassword () const
virtual void setProxyPassword (const QString &)
virtual QVariantMap toVariantMap (bool forcePassword=false) const
virtual void fromVariantMap (const QVariantMap &)
bool operator== (const CoreAccount &other) const

Private Attributes

AccountId _accountId
QString _accountName
QUuid _uuid
bool _internal
QString _user
QString _password
QString _hostName
uint _port
bool _storePassword
bool _useSsl
bool _useProxy
QNetworkProxy::ProxyType _proxyType
QString _proxyUser
QString _proxyPassword
QString _proxyHostName
uint _proxyPort

Detailed Description

Definition at line 30 of file coreaccount.h.

Constructor & Destructor Documentation

virtual Q_DECLARE_TR_FUNCTIONS (CoreAccount) public ~CoreAccount ( )
inlineprivatevirtual

Definition at line 36 of file coreaccount.h.

Member Function Documentation

bool isValid ( ) const
inlineprivate

Definition at line 38 of file coreaccount.h.

References accountId(), and SignedId::isValid().

Referenced by CoreConnection::connectToCore().

QUuid uuid ( ) const
inlineprivate
bool storePassword ( ) const
inlineprivate
uint port ( ) const
inlineprivate
bool useProxy ( ) const
inlineprivate
QNetworkProxy::ProxyType proxyType ( ) const
inlineprivate
QString proxyUser ( ) const
inlineprivate
QString proxyHostName ( ) const
inlineprivate
uint proxyPort ( ) const
inlineprivate
void setAccountId ( AccountId  id)
private

Definition at line 36 of file coreaccount.cpp.

References _accountId.

Referenced by CoreAccountModel::createOrUpdateAccount(), and fromVariantMap().

void setAccountName ( const QString &  accountName)
private

Definition at line 42 of file coreaccount.cpp.

References _accountName.

Referenced by CoreAccountEditDlg::account(), fromVariantMap(), and CoreAccountModel::load().

void setUuid ( const QUuid &  uuid)
private

Definition at line 48 of file coreaccount.cpp.

References _uuid, and uuid().

Referenced by CoreAccountModel::createOrUpdateAccount(), and fromVariantMap().

void setInternal ( bool  internal)
private

Definition at line 54 of file coreaccount.cpp.

References _internal.

Referenced by fromVariantMap(), and CoreAccountModel::load().

void setUser ( const QString &  user)
private
void setStorePassword ( bool  store)
private
void setHostName ( const QString &  hostname)
private

Definition at line 78 of file coreaccount.cpp.

References _hostName.

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

void setPort ( uint  port)
private

Definition at line 84 of file coreaccount.cpp.

References _port, and port().

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

void setUseSsl ( bool  useSsl)
private

Definition at line 90 of file coreaccount.cpp.

References _useSsl, and useSsl().

Referenced by fromVariantMap().

void setUseProxy ( bool  useProxy)
private

Definition at line 96 of file coreaccount.cpp.

References _useProxy, and useProxy().

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

void setProxyType ( QNetworkProxy::ProxyType  type)
private

Definition at line 102 of file coreaccount.cpp.

References _proxyType.

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

void setProxyUser ( const QString &  proxyUser)
private

Definition at line 108 of file coreaccount.cpp.

References _proxyUser, and proxyUser().

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

void setProxyHostName ( const QString &  proxyHostName)
private

Definition at line 120 of file coreaccount.cpp.

References _proxyHostName, and proxyHostName().

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

void setProxyPort ( uint  proxyPort)
private

Definition at line 126 of file coreaccount.cpp.

References _proxyPort, and proxyPort().

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

virtual QString password ( ) const
inlineprivatevirtual
void setPassword ( const QString &  password)
privatevirtual
virtual QString proxyPassword ( ) const
inlineprivatevirtual
void setProxyPassword ( const QString &  proxyPassword)
privatevirtual

Definition at line 114 of file coreaccount.cpp.

References _proxyPassword, and proxyPassword().

Referenced by CoreAccountEditDlg::account(), and fromVariantMap().

QVariantMap toVariantMap ( bool  forcePassword = false) const
privatevirtual
bool operator== ( const CoreAccount other) const
private

Definition at line 181 of file coreaccount.cpp.

References toVariantMap().

Member Data Documentation

AccountId _accountId
private

Definition at line 85 of file coreaccount.h.

Referenced by accountId(), and setAccountId().

QString _accountName
private

Definition at line 86 of file coreaccount.h.

Referenced by accountName(), and setAccountName().

QUuid _uuid
private

Definition at line 87 of file coreaccount.h.

Referenced by setUuid(), and uuid().

bool _internal
private

Definition at line 88 of file coreaccount.h.

Referenced by isInternal(), and setInternal().

QString _user
private

Definition at line 89 of file coreaccount.h.

Referenced by setUser(), and user().

QString _password
private

Definition at line 89 of file coreaccount.h.

Referenced by password(), and setPassword().

QString _hostName
private

Definition at line 89 of file coreaccount.h.

Referenced by hostName(), and setHostName().

uint _port
private

Definition at line 90 of file coreaccount.h.

Referenced by port(), and setPort().

bool _storePassword
private

Definition at line 91 of file coreaccount.h.

Referenced by fromVariantMap(), setStorePassword(), storePassword(), and toVariantMap().

bool _useSsl
private

Definition at line 91 of file coreaccount.h.

Referenced by setUseSsl(), and useSsl().

bool _useProxy
private

Definition at line 91 of file coreaccount.h.

Referenced by setUseProxy(), and useProxy().

QNetworkProxy::ProxyType _proxyType
private

Definition at line 92 of file coreaccount.h.

Referenced by proxyType(), and setProxyType().

QString _proxyUser
private

Definition at line 93 of file coreaccount.h.

Referenced by proxyUser(), and setProxyUser().

QString _proxyPassword
private

Definition at line 93 of file coreaccount.h.

Referenced by proxyPassword(), and setProxyPassword().

QString _proxyHostName
private

Definition at line 93 of file coreaccount.h.

Referenced by proxyHostName(), and setProxyHostName().

uint _proxyPort
private

Definition at line 94 of file coreaccount.h.

Referenced by proxyPort(), and setProxyPort().


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