kopete/libkopete
kopeteprotocol.cpp
Go to the documentation of this file.
60 d->accountNotConnectedStatus = Kopete::OnlineStatus( Kopete::OnlineStatus::Unknown, 0, this, Kopete::OnlineStatus::AccountOffline, QStringList(QString::fromLatin1( "account_offline_overlay" )), i18n( "Account Offline" ) );
70 kWarning( 14010 ) << "Deleting protocol with existing accounts! Did the account unloading go wrong? account: "
103 // some protocols change status several times during shutdown. We should only call deleteLater() once
215 //kDebug( 14010 ) << "Protocol::metaContactAboutToSave: addressBookData: key: " << it.key() << ", data: " << it.data();
226 // kDebug(14010) << "metaContact->setAddressBookField( " << this << ", " << it.key() << ", \"All\", " << it.data() << " );";
229 metaContact->setAddressBookField( this, QString::fromLatin1( "kopete" ), it.key(), it.value() );
234 void Protocol::deserializeContactList( MetaContact *metaContact, const QList< QMap<QString, QString> > &dataList )
241 kDebug( 14010 ) << "Myself contact was on the contactlist.xml for account " << accountId << ". Ignore it";
257 for( QStringList::Iterator fieldIt = kabcFields.begin(); fieldIt != kabcFields.end(); ++fieldIt )
266 ad[ *fieldIt ] = metaContact->addressBookField( this, QString::fromLatin1( "kopete" ), *fieldIt );
Definition: kopeteonlinestatus.h:68
virtual Contact * deserializeContact(MetaContact *metaContact, const QMap< QString, QString > &serializedData, const QMap< QString, QString > &addressBookData)
Deserialize a single contact.
Definition: kopeteprotocol.cpp:302
void setCapabilities(Capabilities)
Sets the capabilities of this protcol.
Definition: kopeteprotocol.cpp:84
Refers to protocols where state cannot be determined.
Definition: kopeteonlinestatus.h:90
The account this contact belongs to is offline.
Definition: kopeteonlinestatus.h:147
Account * account() const
Get the account that this contact belongs to.
Definition: kopetecontact.cpp:538
bool canAddMyself() const
true if account can add own contact into a contact list
Definition: kopeteprotocol.cpp:89
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
static AccountManager * self()
Retrieve the instance of AccountManager.
Definition: kopeteaccountmanager.cpp:77
QStringList addressBookFields() const
Return the list of all keys from the address book in which the plugin is interested.
Definition: kopeteplugin.cpp:100
virtual KJob * createProtocolTask(const QString &taskType)
Factory method to create a protocol Task.
Definition: kopeteprotocol.cpp:314
QString addressBookField(Plugin *p, const QString &app, const QString &key) const
Get or set a field for the KDE address book backend.
Definition: kopetemetacontact.cpp:1079
bool isNull() const
QString addressBookIndexField() const
Return the index field as set by addAddressBookField()
Definition: kopeteplugin.cpp:105
const PropertyTmpl & fullName() const
Definition: kopeteglobal.cpp:128
Protocol * protocol() const
Get the protocol that the contact belongs to.
Definition: kopetecontact.cpp:533
void append(const T &value)
Protocol(const KComponentData &instance, QObject *parent, bool canAddMyself=false)
Constructor for Protocol.
Definition: kopeteprotocol.cpp:53
bool isEmpty() const
virtual void deserialize(MetaContact *metaContact, const QMap< QString, QString > &serializedData)
Deserialize the plugin data for a meta contact.
Definition: kopeteprotocol.cpp:296
QList< Contact * > contacts() const
Retrieve the list of contacts that are part of the meta contact.
Definition: kopetemetacontact.cpp:1279
typedef Iterator
Capabilities capabilities() const
a bitmask of the capabilities of this protocol
Definition: kopeteprotocol.cpp:79
void deleteLater()
void deserializeProperties(const QMap< QString, QString > &serializedData)
Deserialize the contacts persistent properties.
Definition: kopetepropertycontainer.cpp:63
Definition: kopetecontact.h:58
void setPluginContactData(Plugin *plugin, const ContactDataList &dataList)
Set plugin specific data for each contact.
Definition: kopetecontactlistelement.cpp:130
void serializeProperties(QMap< QString, QString > &serializedData) const
Serialize the persistent properties for storage in the contact list.
Definition: kopetepropertycontainer.cpp:46
iterator end()
const PropertyTmpl & lastSeen() const
Definition: kopeteglobal.cpp:146
virtual uint count() const
virtual void deserializeContactList(MetaContact *metaContact, const QList< QMap< QString, QString > > &dataList)
Deserialize the plugin data for a meta contact's contacts.
Definition: kopeteprotocol.cpp:234
void serialize(Kopete::MetaContact *metaContact)
Serialize meta contact into the metacontact's plugin data Call serialize() for all contained contacts...
Definition: kopeteprotocol.cpp:175
NameType preferredNameType() const
Returns prefered name type, used by displayName function Default is CustomName.
Definition: kopetecontact.cpp:908
static const QString nameTypeToString(NameType nameType)
Definition: kopetecontact.cpp:106
const QList< Account * > & accounts() const
Retrieve the list of accounts.
Definition: kopeteaccountmanager.cpp:313
Definition: kopetemetacontact.h:54
QString fromLatin1(const char *str, int size)
Kopete::OnlineStatus accountOfflineStatus() const
Returns the status used for contacts when accounts of this protocol are offline.
Definition: kopeteprotocol.cpp:94
void setAddressBookField(Plugin *p, const QString &app, const QString &key, const QString &value)
set an address book field
Definition: kopetemetacontact.cpp:1084
virtual bool validatePassword(const QString &password) const
Check whether a password is valid for this protocol.
Definition: kopeteprotocol.cpp:321
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void serialize(QMap< QString, QString > &serializedData, QMap< QString, QString > &addressBookData)
Serialize the contact for storage in the contact list.
Definition: kopetecontact.cpp:459
iterator begin()
void destroyed(QObject *obj)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.