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
212 //kDebug( 14010 ) << "Protocol::metaContactAboutToSave: addressBookData: key: " << it.key() << ", data: " << it.data();
223 // kDebug(14010) << "metaContact->setAddressBookField( " << this << ", " << it.key() << ", \"All\", " << it.data() << " );";
226 metaContact->setAddressBookField( this, QString::fromLatin1( "kopete" ), it.key(), it.value() );
231 void Protocol::deserializeContactList( MetaContact *metaContact, const QList< QMap<QString, QString> > &dataList )
238 kDebug( 14010 ) << "Myself contact was on the contactlist.xml for account " << accountId << ". Ignore it";
254 for( QStringList::Iterator fieldIt = kabcFields.begin(); fieldIt != kabcFields.end(); ++fieldIt )
263 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:299
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:498
bool canAddMyself() const
true if account can add own contact into a contact list
Definition: kopeteprotocol.cpp:89
static AccountManager * self()
Retrieve the instance of AccountManager.
Definition: kopeteaccountmanager.cpp:76
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:311
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:1071
QString addressBookIndexField() const
Return the index field as set by addAddressBookField()
Definition: kopeteplugin.cpp:105
const PropertyTmpl & fullName() const
Definition: kopeteglobal.cpp:127
Protocol * protocol() const
Get the protocol that the contact belongs to.
Definition: kopetecontact.cpp:493
Protocol(const KComponentData &instance, QObject *parent, bool canAddMyself=false)
Constructor for Protocol.
Definition: kopeteprotocol.cpp:53
virtual void deserialize(MetaContact *metaContact, const QMap< QString, QString > &serializedData)
Deserialize the plugin data for a meta contact.
Definition: kopeteprotocol.cpp:293
QList< Contact * > contacts() const
Retrieve the list of contacts that are part of the meta contact.
Definition: kopetemetacontact.cpp:1270
Capabilities capabilities() const
a bitmask of the capabilities of this protocol
Definition: kopeteprotocol.cpp:79
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
const PropertyTmpl & lastSeen() const
Definition: kopeteglobal.cpp:145
QMap< QString, QString > ContactData
Definition: kopetecontactlistelement.h:115
virtual void deserializeContactList(MetaContact *metaContact, const QList< QMap< QString, QString > > &dataList)
Deserialize the plugin data for a meta contact's contacts.
Definition: kopeteprotocol.cpp:231
void serialize(Kopete::MetaContact *metaContact)
Serialize meta contact into the metacontact's plugin data Call serialize() for all contained contacts...
Definition: kopeteprotocol.cpp:175
const QList< Account * > & accounts() const
Retrieve the list of accounts.
Definition: kopeteaccountmanager.cpp:312
Definition: kopetemetacontact.h:54
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:1076
virtual bool validatePassword(const QString &password) const
Check whether a password is valid for this protocol.
Definition: kopeteprotocol.cpp:318
virtual void serialize(QMap< QString, QString > &serializedData, QMap< QString, QString > &addressBookData)
Serialize the contact for storage in the contact list.
Definition: kopetecontact.cpp:419
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.