Editing Mbarcode Plugin Tutorial
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 19: | Line 19: | ||
* Qt Creator | * Qt Creator | ||
- | Using [[MADDE]] for development is currently a bit of a pain since it lacks an option for third party libraries. | + | Using [[MADDE]] for development is currently a bit of a pain since it lacks an option for third party libraries. This might be unnecessary for plugins, but MADDE is in any case not covered by this tutorial as of yet. |
== Writing the plugin == | == Writing the plugin == | ||
Line 144: | Line 144: | ||
<source lang="cpp"> | <source lang="cpp"> | ||
- | |||
- | |||
#ifndef PLUGIN_H | #ifndef PLUGIN_H | ||
#define PLUGIN_H | #define PLUGIN_H | ||
Line 216: | Line 214: | ||
qmake && make | qmake && make | ||
- | Go to your directory and pick up the new file named <code>libmbarcode_myplugin.so</code>. Copy this to your device and place it in <code>/home/user/.config/mbarcode/plugins</code> | + | Go to your directory and pick up the new file named <code>libmbarcode_myplugin.so</code>. Copy this to your device and place it in <code>/home/user/.config/mbarcode/plugins</code>. |
Start mBarcode and scan a barcode as usual. Your plugin should now show up. | Start mBarcode and scan a barcode as usual. Your plugin should now show up. |
Learn more about Contributing to the wiki.