diff options
| author | Andre Heinecke <[email protected]> | 2016-08-10 10:04:16 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2016-08-10 10:07:56 +0000 | 
| commit | 21d5e71d486da8e37cf53f2b968646b39a6daa72 (patch) | |
| tree | 188974ed00eedfe13747a7592f3aa94df12f4944 /lang/cpp | |
| parent | tests: Fix memory leak. (diff) | |
| download | gpgme-21d5e71d486da8e37cf53f2b968646b39a6daa72.tar.gz gpgme-21d5e71d486da8e37cf53f2b968646b39a6daa72.zip | |
Cpp: Clarify ownership of provider classes
* lang/cpp/src/context.h: Note that the context does not take
ownership of providers.
Diffstat (limited to '')
| -rw-r--r-- | lang/cpp/src/context.h | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index c7c0ecb9..70ab079f 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -102,9 +102,23 @@ public:      void addKeyListMode(unsigned int keyListMode);      unsigned int keyListMode() const; +    /** Set the passphrase provider +     * +     * To avoid problems where a class using a context registers +     * itself as the provider the Context does not take ownership +     * of the provider and the caller must ensure that the provider +     * is deleted if it is no longer needed. +     */      void setPassphraseProvider(PassphraseProvider *provider);      PassphraseProvider *passphraseProvider() const; +    /** Set the progress provider +     * +     * To avoid problems where a class using a context registers +     * itself as the provider the Context does not take ownership +     * of the provider and the caller must ensure that the provider +     * is deleted if it is no longer needed. +     */      void setProgressProvider(ProgressProvider *provider);      ProgressProvider *progressProvider() const; | 
