CAccount
#include "Account.h"
Description
Base class for user account. To store contacts you must use account manager.
It's a base class! Use inheritance.
Private variables
| Type | Name | Description |
|---|---|---|
| PPluginAccountEvents | PluginAccountEvents | Variable used to communicate with AQQ |
| CAccountDetails* | Details | Additional info about account |
| int | AccountID | Account ID given by AQQ |
Public variables
| Type | Name | Description |
|---|---|---|
| UnicodeString | Name | Name used on account list in AQQ Settings |
| int | IconID | Icon used on account list in AQQ Settings |
| bool | CanCreate | User can create new account? |
| bool | CanEdit | User can edit account? |
| bool | CanDelete | User can delete account? |
| bool | CanChangePass | User can change password for account? |
| bool | DefaultEvent | Default account event? |
Public methods
| Type | Name | Description |
|---|---|---|
| CAccount() | Constructor | |
| CAccount(const CAccount &Account) | Copy constructor | |
| virtual | ~CAccount() | Destructor |
| PPluginAccountEvents | AQQFormat() | Function converts this object to AQQ structure |
| void | SDKFormat(PPluginAccountEvents PluginAccountEvents) | Function converts AQQ structure to this object |
| void | Create() | Function creates new account in AQQ |
| void | Edit() | Function edits account in AQQ |
| void | Delete() | Function deletes account from AQQ |
| virtual void | OnDefaultEvent() = 0 | Virtual function that handles default account event |
| virtual void | OnNewEvent() = 0 | Virtual function that handles new account event |
| virtual void | OnEditEvent() = 0 | Virtual function that handles account edit event |
| virtual void | OnDeleteEvent() = 0 | Virtual function that handles account delete event |
| virtual void | OnChangePassEvent() = 0 | Virtual function that handles change password for account event |
| int | GetAccountID() | Function returns AccountID |
| CAccountDetails* | GetDetails() | Function returns pointer to additional info about account |