Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T TrafficMonitor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 813
    • Issues 813
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • zhongyang219
  • TrafficMonitor
  • Wiki
  • 插件开发指南

插件开发指南 · Changes

Page history
插件开发指南更新 authored Nov 12, 2021 by zhongyang219's avatar zhongyang219
Hide whitespace changes
Inline Side-by-side
插件开发指南.md
View page @ b3d90185
......@@ -34,6 +34,8 @@
#endif
__declspec(dllexport) ITMPlugin* TMPluginGetInstance();
#ifdef __cplusplus
}
#endif
```
* 编写一个类,实现`ITMPlugin`接口。此类的对象在内存中仅存在一个,由TMPluginGetInstance函数返回。
......@@ -114,6 +116,12 @@ OR_OPTION_NOT_PROVIDED: 未提供选项设置对话框
如果在派生类中重写了此函数,则必须返回OR_OPTION_CHANGED或OR_OPTION_UNCHANGED,不能返回OR_OPTION_NOT_PROVIDED。
当用户在主程序的“插件管理”对话框中点击“选项”按钮时会调用此函数。如下图所示:
![image-20211112195145679](images/image-20211112195145679.png)
如果函数返回OR_OPTION_NOT_PROVIDED,则点击“选项”按钮时会提示“此插件没有提供选项设置”。
### GetInfo
**函数原型**
......@@ -128,6 +136,10 @@ virtual const wchar_t* GetInfo(PluginInfoIndex index) = 0;
index的值请参见PluginInfoIndex类型的注释。
通过此函数返回的信息将显示在“插件管理”——“详细信息”中,如下图所示:
![image-20211112194635969](images/image-20211112194635969.png)
### OnMonitorInfo
**函数原型**
......
Clone repository

TrafficMonitor Wiki 导航

首页

  • 主窗口
  • 任务栏窗口
  • 右键菜单
  • 选项设置
    • 主窗口设置
    • 任务栏窗口设置
    • 常规设置
  • 硬件监控功能
  • 选择监控的网络连接
  • 更换皮肤功能
  • 通知区图标
  • 历史流量统计
  • 配置和数据文件
  • 插件开发指南

更新日志 - Update Log

常见问题 - Frequently Asked Questions

已知问题