kopete/libkopete
kabcpersistence.cpp
  
Go to the documentation of this file.
  136             const QString currentCustomForProtocol = theAddressee.custom( it.key(), QLatin1String( "All" ) );
  138             const QString toWrite = unionContents( currentCustomForProtocol, it.value().join( QString( QChar( 0xE000 ) ) ) );
  139             // Note if nothing ends up in the KABC data, this is because insertCustom does nothing if any param is empty.
  151     // This causes each Kopete::Protocol subclass to serialise its contacts' data into the metacontact's plugin data and address book data
  167             // Note if nothing ends up in the KABC data, this is because insertCustom does nothing if any param is empty.
  221     // This causes each Kopete::Protocol subclass to serialise its contacts' data into the metacontact's plugin data and address book data
  293                     Protocol * proto = dynamic_cast<Protocol*>( PluginManager::self()->loadPlugin( QLatin1String( "kopete_" ) + protocolName ) );
  309                         // First discard anything after an 0xE120, this is used by IRC to separate nick and server group name, but
  310                         // IRC doesn't support this properly yet, so the user will have to select an appropriate account manually
  343                             kDebug( 14010 ) << proto->pluginId() << "://" << *it << " was not found in the contact list.  Prompting to add...";
  345                                      i18n( "<qt>An address was added to this contact by another application.<br />Would you like to use it in Kopete?<br /><b>Protocol:</b> %1<br /><b>Address:</b> %2</qt>", proto->displayName(), *it ), i18n( "Import Address From Address Book" ), KGuiItem( i18n("Use") ), KGuiItem( i18n("Do Not Use") ), QLatin1String( "ImportFromKABC" ) ) )
  370                                             i18n( "<qt>One or more of your accounts using %1 are offline.  Most systems have to be connected to add contacts.  Please connect these accounts and try again.</qt>", protocolName ),
  395                                             i18n( "<qt>You do not have an account configured for <b>%1</b> yet.  Please create an account, connect it, and try again.</qt>", protocolName ),
  416                     kDebug( 14010 ) << " all " << addresses.count() << " contacts in " << proto->pluginId() << " checked ";
  431 void KABCPersistence::splitField( const QString &str, QString &app, QString &name, QString &value )
Contact * findContact(const QString &protocolId, const QString &accountId, const QString &contactId)
Find the Contact to a given contact. 
Definition: kopetemetacontact.cpp:250
void write(MetaContact *mc)
Change the KABC data associated with this metacontact. 
Definition: kabcpersistence.cpp:102
static QString unionContents(const QString &arg1, const QString &arg2)
utility function to merge two QStrings containing individual elements separated by 0xE000 ...
Definition: kabcpersistence.cpp:48
QString displayName() const 
Returns the display name of this plugin. 
Definition: kopeteplugin.cpp:52
Plugin * loadPlugin(const QString &pluginId, PluginLoadMode mode=LoadSync)
Load a single plugin by plugin name. 
Definition: kopetepluginmanager.cpp:340
KABCPersistence(QObject *parent=0, const char *name=0)
Definition: kabcpersistence.cpp:75
static AccountManager * self()
Retrieve the instance of AccountManager. 
Definition: kopeteaccountmanager.cpp:76
QString addressBookIndexField() const 
Return the index field as set by addAddressBookField() 
Definition: kopeteplugin.cpp:105
Protocol * protocol() const 
Get the protocol that the contact belongs to. 
Definition: kopetecontact.cpp:493
Definition: kabcpersistence.h:42
QList< Contact * > contacts() const 
Retrieve the list of contacts that are part of the meta contact. 
Definition: kopetemetacontact.cpp:1270
Definition: kopetecontact.h:58
KOPETE_EXPORT QWidget * mainWidget()
Returns the main widget - this is the widget that message boxes and KNotify stuff should use as a par...
Definition: kopeteuiglobal.cpp:37
static PluginManager * self()
Retrieve the plugin loader instance. 
Definition: kopetepluginmanager.cpp:104
void removeKABC(MetaContact *mc)
Remove any KABC data for this meta contact. 
Definition: kabcpersistence.cpp:213
MetaContact * metaContact() const 
Get the metacontact for this contact. 
Definition: kopetecontact.cpp:483
bool syncWithKABC(MetaContact *mc)
Check for any new addresses added to this contact's KABC entry and prompt if they should be added in ...
Definition: kabcpersistence.cpp:260
void slotWriteAddressBook()
Perform a delayed address book write. 
Definition: kabcpersistence.cpp:188
static KABC::AddressBook * addressBook()
Access Kopete's KDE address book instance. 
Definition: kabcpersistence.cpp:92
const QList< Account * > & accounts() const 
Retrieve the list of accounts. 
Definition: kopeteaccountmanager.cpp:312
Definition: kopetemetacontact.h:54
void writeAddressBook(KABC::Resource *res)
Request an address book write, will be delayed to bundle any others happening around the same time...
Definition: kabcpersistence.cpp:177
static KABCPersistence * self()
Retrieve the instance of AccountManager. 
Definition: kabcpersistence.cpp:86
static void splitField(const QString &str, QString &app, QString &name, QString &value)
Definition: kabcpersistence.cpp:431
const QHash< QString, Contact * > & contacts()
Retrieve the list of contacts for this account (except myself contact) 
Definition: kopeteaccount.cpp:331
MetaContact * addContact(const QString &contactId, const QString &displayName=QString(), Group *group=0, AddMode mode=DontChangeKABC)
Create a contact (creating a new metacontact if necessary) 
Definition: kopeteaccount.cpp:337
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:50 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:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference