-
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
ccb5a27
commit 650f7c0
Showing
27 changed files
with
2,022 additions
and
23 deletions.
There are no files selected for viewing
1,195 changes: 1,195 additions & 0 deletions
1,195
0001-Initial-implementation-of-the-plugin-framework.patch
Large diffs are not rendered by default.
Oops, something went wrong.
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,21 @@ | ||
#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.