BuddySubscription Property

This is a list of the subscription status for the buddy.

Syntax

ANSI (Cross Platform)
int GetBuddySubscription(int iBuddyIndex);

Unicode (Windows)
INT GetBuddySubscription(INT iBuddyIndex);

Possible Values

ST_NONE(0), 
ST_TO(1),
ST_FROM(2),
ST_BOTH(3),
ST_REMOVE(4)
- (int)buddySubscription:(int)buddyIndex;

Possible Values

ST_NONE(0), 
ST_TO(1),
ST_FROM(2),
ST_BOTH(3),
ST_REMOVE(4)
#define PID_XMPP_BUDDYSUBSCRIPTION 8

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_XMPP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_XMPP_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

0

Remarks

This is a list of the subscription status for the buddy.

After a Sync event is fired, this property will contain all of the types of subscriptions for the buddy. They are defined as follows:

stNone (0) no subscription
stTo (1) the buddy has a subscription to this entity.
stFrom (2) this entity has a subscription to the buddy
stBoth (3) subscription is both to and from
stRemove (4) the item is to be removed from the list

The BuddyIndex parameter specifies the index of the item in the array. The size of the array is controlled by the BuddyCount property.

This property is read-only and not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]