Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qv2ray/qvplugin-interface

Qv2ray 插件接口
https://github.com/qv2ray/qvplugin-interface

cpp interface qt qt5 qv2ray qv2ray-interface qv2ray-plugin qv2ray-plugin-interface

Last synced: 3 months ago
JSON representation

Qv2ray 插件接口

Awesome Lists containing this project

README

        

# Qv2ray Plugin Interface

This repo holds necessary headers for you to write your own Qv2ray plugin.

## File Descriptions

- `Qv2rayPluginObjects.hpp`
- Contains necessary files to write a Kernel Plugin
- `Qv2rayPluginProcessor.hpp`
- Processor Object which receives event messages from Qv2ray
- `QvPluginInterface.hpp`
- Interface Object contains plugin metadata.
- `QvPluginInterfaceModels.hpp`
- Common data models and Enums for Plugin Metadata and Plugin Event Processor

## How to write a plugin

1. Firstly you need to have a Qt library project: `*.so *.dll *.dylib`
2. Add this repository as a **git submodule** or as a **sub-directory**
3. Include **`QvPluginInterface.pri`** or **`QvPluginInterface.cmake`** into your project `pro` file or `CMakeLists.txt`
4. Write your own `QObject`, inherited from `Qv2rayPlugin::Qv2rayInterface`
5. ….