CContact
#include "Contact.h"
Description
Contact class. To store contacts you must use CContactManager class.
Private variables
| Type | Name | Description |
|---|---|---|
| PPluginContact | PluginContact | Variable used to communicate with AQQ |
Public variables
| Type | Name | Description |
|---|---|---|
| CAvatar* | Avatar | Avatar |
| CContactInfo* | ContactInfo | Extra info about contact |
| UnicodeString | JID | Contact text ID |
| UnicodeString | Nick | Contact nick |
| UnicodeString | Resource | Active contact resource |
| UnicodeString | Groups | Groups which includes this contact |
| CStatus | Status | Active state and description |
| bool | Temporary | Is temporary? |
| bool | FromPlugin | From plugin? |
| int | UserIDx | ID of contact parent account |
| byte | Subscription | Subscription type |
| bool | Chat | Contact is groupchat |
Public methods
| Type | Name | Description |
|---|---|---|
| CContact() | Constructor | |
| CContact(UnicodeString JID) | Constructor used to create contacts in contact manager. | |
| virtual | ~CContact() | Destructor |
| PPluginContact | AQQFormat() | Function converts this object to AQQ structure |
| void | SDKFormat(PPluginContact PluginContact) | Function converts AQQ structure to this object |
| void | Create() | Function creates contact |
| void | Delete() | Function removes contact |
| void | Update() | Function updates contact |
| void | Ban() | Function give ban for a contact |
| bool | HaveBan() | Function returns true if contact have ban |
| void | RemoveBan() | Function removes ban |
| CStatus | GetStatus() | Function returns active state and description |
| void | SetStatus(int State, UnicodeString Description) | Function sets active state and description |
Example
Example plugin that creating contact you may find here.