CPluginLink
#include "PluginLink.h"
Description
Class supports connection between plugin and AQQ. It's a base to keep other SDK classes working.
Class is an singleton.
Private variables
| Type | Name | Description |
|---|---|---|
| TPluginLink | PluginLink | Connection between plugin and AQQ |
Private static variables
| Type | Name | Description |
|---|---|---|
| static CPluginLink* | Instance | Object instance |
Private methods
| Type | Name | Description |
|---|---|---|
| CPluginLink() | Constructor |
Public methods
| Type | Name | Description |
|---|---|---|
| TPluginLink | GetLink() | Function returns connection to AQQ. It's allows to hook notifications and create service functions |
| void | SetLink(TPluginLink Link) | Function sets connection with AQQ. It's first thing we have to do in Load() function |
Public static methods
| Type | Name | Description |
|---|---|---|
| static CPluginLink* | instance | Function returns object instance |
Example
How to setup connection with AQQ
extern "C" INT_PTR __declspec(dllexport) __stdcall Load(PPluginLink Link)
{
CPluginLink::instance()->SetLink(*Link);
...
return 0;
}
How to call AQQ function
CPluginLink::instance()->GetLink().CallService(AQQ_SYSTEM_APPVER, 0, 0); //get AQQ version number