Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
IPluginUtility.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: IPluginUtility.h
3//-----------------------------------------------------------------------------
4// Project: Kactus 2
5// Author: Joni-Matti Maatta
6// Date: 28.6.2012
7//
8// Description:
9// Interface which offers core utilities for plugins, namely access to the console, the parent widget, and most
10// importantly the library interface. It is provided for a plugin via the implemented plugin interface.
11//-----------------------------------------------------------------------------
12
13#ifndef IPLUGINUTILITY_H
14#define IPLUGINUTILITY_H
15
16#include <QWidget>
17#include <QString>
18
20
22{
23public:
24
28 virtual ~IPluginUtility() {}
29
34
38 virtual QWidget* getParentWidget() = 0;
39
41 virtual QString getKactusVersion() const = 0;
42
48 virtual void printError(QString const& message) = 0;
49
55 virtual void printInfo(QString const& message) = 0;
56};
57
58//-----------------------------------------------------------------------------
59
60#endif // IPLUGINUTILITY_H
virtual LibraryInterface * getLibraryInterface()=0
virtual void printError(QString const &message)=0
virtual void printInfo(QString const &message)=0
virtual ~IPluginUtility()
virtual QString getKactusVersion() const =0
Returns the current version of the Kactus2 build.
virtual QWidget * getParentWidget()=0
LibraryInterface defines an interface to operate the IP-XACT-library.