# class CollectionPathResolver

###

Module | akonadi
Namespace | Akonadi
Class | CollectionPathResolver
Inherits | Akonadi::Job

Internal

Converts between collection id and collection path.

While it is generally recommended to use collection ids, it can be necessary in some cases (eg. a command line client) to use the collection path instead. Use this class to get a collection id from a collection path.

Author Volker Krause <vkrause@kde.org>

### methods

- CollectionPathResolver (path, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  path | QString |
  parent | QObject | 0

  Creates a new collection path resolver to convert a path into a id.

  path - The collection path.

  parent - The parent object.

- CollectionPathResolver (collection, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  collection | Akonadi.Collection |
  parent | QObject | 0

  Creates a new collection path resolver to determine the path of the given collection.

  collection - The collection

  parent - The parent object.

- collection ( )

  returns Collection.Id

  Returns the collection id. Only valid after the job succeeded.

- doStart ( )

  returns Nothing

- path ( )

  returns QString

  Returns the collection path. Only valid after the job succeeded.

- pathDelimiter ( )

  returns QString
  static

  Returns the path delimiter for collections.