Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix known contacts plugin, missing plugin api adjustments
  • Loading branch information
pvuorela committed Apr 22, 2021
1 parent c28cd6a commit 8f1f76e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
9 changes: 9 additions & 0 deletions src/knowncontacts/knowncontactsplugin.cpp
Expand Up @@ -171,3 +171,12 @@ void KnownContactsPlugin::connectivityStateChanged(Sync::ConnectivityType type,
FUNCTION_CALL_TRACE;
// Stub
}

Buteo::ClientPlugin* KnownContactsPluginLoader::createClientPlugin(
const QString& pluginName,
const Buteo::SyncProfile& profile,
Buteo::PluginCbInterface* cbInterface)
{
return new KnownContactsPlugin(pluginName, profile, cbInterface);
}

22 changes: 11 additions & 11 deletions src/knowncontacts/knowncontactsplugin.h
Expand Up @@ -25,6 +25,7 @@

#include <ClientPlugin.h>
#include <SyncResults.h>
#include <buteosyncfw5/SyncPluginLoader.h>

class KnownContactsSyncer;

Expand Down Expand Up @@ -85,17 +86,16 @@ protected slots:
KnownContactsSyncer *m_syncer;
};

/*! \brief Creates KnownContactsPlugin client plugin
*
* @param pluginName Name of this client plugin
* @param profile Profile to use
* @param cbInterface Pointer to the callback interface
* @return Client plugin on success, otherwise NULL
*/

/*! \brief Destroys KnownContactsPlugin client plugin
*
* @param client KnownContactsPlugin client plugin instance to destroy
*/
class KnownContactsPluginLoader : public Buteo::SyncPluginLoader
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.sailfishos.plugins.sync.KnownContactsPluginLoader")
Q_INTERFACES(Buteo::SyncPluginLoader)

public:
Buteo::ClientPlugin* createClientPlugin(const QString& pluginName,
const Buteo::SyncProfile& profile,
Buteo::PluginCbInterface* cbInterface) override;
};
#endif // KNOWNCONTACTSPLUGIN_H

0 comments on commit 8f1f76e

Please sign in to comment.