D6410: Pimcommon: fix manage serverside subscription for Akonadi instances

Daniel Vrátil noreply at phabricator.kde.org
Thu Jun 29 09:49:31 BST 2017


dvratil added a comment.


  In https://phabricator.kde.org/D6410#120363, @mlaurent wrote:
  
  > QString DBus::agentServiceName(const QString &agentIdentifier, DBus::AgentType agentType) This one ?
  >  it's private header no ?
  >  otherwise I don't know which method do you want that we use.
  
  
  Yes, DBus::* is a private API. You should use
  
    QString Akonadi::ServerManager::agentServiceName(ServiceAgentType agentType, const QString &identifier)
  
  from `core/servermanager.h`. The `agentType` will be `Akonadi::ServerManager::Resource` (or `Akonadi::ServerManager::Agent` if talking to an agent, e.g. the Indexing Agent), `identifier` is the identifier of the resource type instance (not to confuse with Akonadi instances), i.e. what `d->mCurrentCollection.resource()` in this case.

REPOSITORY
  R95 PIM: Common Support

REVISION DETAIL
  https://phabricator.kde.org/D6410

To: winterz, dvratil, dfaure, mlaurent
Cc: mlaurent, #kde_pim, dvasin, winterz, vkrause, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170629/601c264b/attachment.html>


More information about the kde-pim mailing list