-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of the plugin framework
Plugin RFC #2529 Signed-off-by: Ouyang Chunhui <[email protected]>
- Loading branch information
1 parent
a3bc7a3
commit 2ffee62
Showing
26 changed files
with
757 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef COREPLUGININTERFACE_H | ||
#define COREPLUGININTERFACE_H | ||
|
||
#include <QtPlugin> | ||
|
||
class CorePluginInterface { | ||
public: | ||
virtual ~CorePluginInterface() = 0; | ||
virtual bool load(std::map<std::string, std::string> &PluginConfig) = 0; | ||
virtual void unload() = 0; | ||
virtual bool ImagePost(QPixmap &pixmap) = 0; | ||
virtual bool ImageToPDFPost(QPixmap &pixmap) = 0; | ||
virtual bool PrintPre(QPixmap &pixmap) = 0; | ||
}; | ||
|
||
#define FlameshotPlugin_iid "FlameshotPlugin.CorePluginInterface" | ||
|
||
Q_DECLARE_INTERFACE(CorePluginInterface, FlameshotPlugin_iid) | ||
|
||
#endif // COREPLUGININTERFACE_H |
Oops, something went wrong.