• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • ManagedConnectionAccount
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
Kopete::ManagedConnectionAccount Class Referenceabstract

#include <managedconnectionaccount.h>

Inheritance diagram for Kopete::ManagedConnectionAccount:
Inheritance graph
[legend]

Public Slots

void connectWithPassword (const QString &password)
 
- Public Slots inherited from Kopete::PasswordedAccount
virtual void connectWithPassword (const QString &password)=0
 
- Public Slots inherited from Kopete::Account
virtual void block (const QString &contactId)
 
virtual void disconnect ()=0
 
void editAccount (QWidget *parent=0L)
 
bool resume ()
 
virtual void setOnlineStatus (const Kopete::OnlineStatus &status, const Kopete::StatusMessage &reason=Kopete::StatusMessage(), const OnlineStatusOptions &options=None)=0
 
virtual void setStatusMessage (const Kopete::StatusMessage &statusMessage)=0
 
bool suspend (const Kopete::StatusMessage &reason=Kopete::StatusMessage())
 
virtual void unblock (const QString &contactId)
 

Public Member Functions

 ManagedConnectionAccount (Protocol *parent, const QString &acctId)
 
- Public Member Functions inherited from Kopete::PasswordedAccount
 PasswordedAccount (Protocol *parent, const QString &acctId, bool allowBlankPassword=false)
 
virtual ~PasswordedAccount ()
 
void connect ()
 
void connect (const OnlineStatus &initialStatus)
 
OnlineStatus initialStatus ()
 
Password & password ()
 
virtual bool removeAccount ()
 
- Public Member Functions inherited from Kopete::Account
 Account (Protocol *parent, const QString &accountID)
 
 ~Account ()
 
QPixmap accountIcon (const int size=0) const
 
QString accountIconPath (const KIconLoader::Group size) const
 
QString accountId () const
 
QString accountLabel () const
 
MetaContact * addContact (const QString &contactId, const QString &displayName=QString(), Group *group=0, AddMode mode=DontChangeKABC)
 
bool addContact (const QString &contactId, MetaContact *parent, AddMode mode=DontChangeKABC)
 
BlackLister * blackLister ()
 
const QColor color () const
 
KConfigGroup * configGroup () const
 
const QHash< QString, Contact * > & contacts ()
 
QString customIcon () const
 
bool excludeConnect () const
 
virtual void fillActionMenu (KActionMenu *actionMenu)
 
virtual bool hasCustomStatusMenu () const
 
Identity * identity () const
 
bool isAway () const
 
virtual bool isBlocked (const QString &contactId)
 
bool isBusy () const
 
bool isConnected () const
 
Contact * myself () const
 
uint priority () const
 
Protocol * protocol () const
 
bool registerContact (Contact *c)
 
void setColor (const QColor &color)
 
void setCustomIcon (const QString &)
 
void setExcludeConnect (bool)
 
virtual bool setIdentity (Kopete::Identity *ident)
 
void setPriority (uint priority)
 
bool suppressStatusNotification () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Protected Slots

virtual void slotConnectionStatusChanged (const QString &host, NetworkStatus::EnumStatus status)
 
- Protected Slots inherited from Kopete::PasswordedAccount
virtual void disconnected (Kopete::Account::DisconnectReason reason)
 
- Protected Slots inherited from Kopete::Account
virtual void disconnected (Kopete::Account::DisconnectReason reason)
 
void networkingStatusChanged (const Solid::Networking::Status status)
 
void setAllContactsStatus (const Kopete::OnlineStatus &status)
 

Protected Member Functions

virtual void performConnectWithPassword (const QString &password)=0
 
- Protected Member Functions inherited from Kopete::PasswordedAccount
virtual QString passwordPrompt ()
 
- Protected Member Functions inherited from Kopete::Account
virtual bool createContact (const QString &contactId, MetaContact *parentContact)=0
 
void setAccountLabel (const QString &label)
 
void setMyself (Contact *myself)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Public Types inherited from Kopete::Account
enum  AddMode { ChangeKABC = 0, DontChangeKABC = 1, Temporary = 2 }
 
enum  DisconnectReason {
  OtherClient = -4, BadPassword = -3, BadUserName = -2, InvalidHost = -1,
  Manual = 0, ConnectionReset = 1, Unknown = 99
}
 
enum  OnlineStatusOption { None = 0x00, KeepSpecialFlags = 0x01 }
 
- Signals inherited from Kopete::Account
void accountDestroyed (const Kopete::Account *account)
 
void colorChanged (const QColor &)
 
void isConnectedChanged ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from Kopete::Account
QPixmap accountIcon
 
QString accountId
 
QColor color
 
bool excludeConnect
 
bool isAway
 
bool isConnected
 
uint priority
 
bool suppressStatusNotification
 
- Properties inherited from QObject
 objectName
 

Detailed Description

A ManagedConnectionAccount queries the NetworkStatus KDED Module before trying to connect using connectwithPassword, starting a network connection if needed.

If the network is not available, it delays calling performConnectWithPassword until it receives notification from the daemon that the network is up. The account receiveds notifications from the daemon of network failures and calls disconnect to set the account offline in a timely manner.

Definition at line 36 of file managedconnectionaccount.h.

Constructor & Destructor Documentation

Kopete::ManagedConnectionAccount::ManagedConnectionAccount ( Protocol *  parent,
const QString &  acctId 
)

ManagedConnectionAccount constructor.

Parameters
parentThe protocol this account connects via
acctIdThe ID of this account - should be unique within this protocol
maxPasswordLengthThe maximum length for passwords for this account, or 0 for no limit

Definition at line 27 of file managedconnectionaccount.cpp.

Member Function Documentation

void Kopete::ManagedConnectionAccount::connectWithPassword ( const QString &  password)
slot

Begin the connection process, by checking if the connection is available with the ConnectionManager.

This method is called by PasswordedAccount::connect()

Parameters
passwordthe password to connect with.

Definition at line 34 of file managedconnectionaccount.cpp.

virtual void Kopete::ManagedConnectionAccount::performConnectWithPassword ( const QString &  password)
protectedpure virtual

Connect to the server, once the network is available.

This method is called by the ManagedConnectionAccount once the network is available. In this method you should set up your network connection and connect to the server.

void Kopete::ManagedConnectionAccount::slotConnectionStatusChanged ( const QString &  host,
NetworkStatus::EnumStatus  status 
)
protectedvirtualslot

Handle a change in the network connection Called by the ConnectionManager when the network comes up or fails.

The default implementation calls performConnectWithPassword when the network goes online and connectWithPassword() was previously called, and calls disconnect() when the connection goes down.

Parameters
hostFor future expansion.
statusthe new status of the network

Definition at line 56 of file managedconnectionaccount.cpp.


The documentation for this class was generated from the following files:
  • managedconnectionaccount.h
  • managedconnectionaccount.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal