Qt 5.10 Book Examples
MyPlugin.h
Go to the documentation of this file.
1 // ======================================================================
2 // MyPlugin.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QObject>
14 #include "../Application/interfaces.h"
15 
16 // ======================================================================
17 class MyPlugin : public QObject, public StringInterface {
18 Q_OBJECT
19 Q_INTERFACES(StringInterface)
20 Q_PLUGIN_METADATA(IID "com.mysoft.Application.StringInterface" FILE "stringinterface.json")
21 
22 private:
23  QString oddUpper(const QString& str);
24 
25 public:
26  virtual ~MyPlugin();
27 
28  virtual QStringList operations( ) const;
29  virtual QString operation (const QString&, const QString&);
30 };
31 
virtual ~MyPlugin()
Definition: MyPlugin.cpp:27
virtual QString operation(const QString &, const QString &)
Definition: MyPlugin.cpp:38
virtual QStringList operations() const
Definition: MyPlugin.cpp:32