KontactInterface::Core Class

class KontactInterface::Core

The abstract interface that represents the Kontact core. More...

Header: #include <KontactInterface/Core>
CMake: find_package(KPim6KontactInterface REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::KontactInterface)

Public Functions

virtual ~Core() override
virtual QList<KontactInterface::Plugin *> pluginList() const = 0
virtual void selectPlugin(KontactInterface::Plugin *plugin) = 0
virtual void selectPlugin(const QString &plugin) = 0

Signals

void dayChanged(const QDate &)
void minuteChanged(const QDateTime &)

Protected Functions

Core(QWidget *parent = nullptr, Qt::WindowFlags flags = {})
QString lastErrorMessage() const

Detailed Description

This class provides the interface to the Kontact core for the plugins.

Member Function Documentation

[explicit protected] Core::Core(QWidget *parent = nullptr, Qt::WindowFlags flags = {})

Creates a new core object.

parent The parent widget. flags The window flags.

[override virtual noexcept] Core::~Core()

Destroys the core object.

[signal] void Core::dayChanged(const QDate &)

This signal is emitted whenever a new day starts.

arg1 The date of the new day

[protected] QString Core::lastErrorMessage() const

Returns the last error message for problems during KParts loading.

[signal] void Core::minuteChanged(const QDateTime &)

This signal is emitted whenever the next minute starts.

arg1 is the datetime of the next minute.

[pure virtual] QList<KontactInterface::Plugin *> Core::pluginList() const

Returns the pointer list of available plugins.

[pure virtual] void Core::selectPlugin(KontactInterface::Plugin *plugin)

Selects the given plugin and raises the associated part.

plugin is a pointer to the Kontact Plugin to select.

See also selectPlugin(const QString &).

[pure virtual] void Core::selectPlugin(const QString &plugin)

This is an overloaded member function

plugin is the name of the Kontact Plugin select.

See also selectPlugin(KontactInterface::Plugin *).