CBESubscribeManager

Superclass:
NSObject
Declared In:

Introduction

Class for managing Publish, represented as a list.



Methods

-getSubscriptions:
-subscribe:sharingUserName:publishId:publishName:password:subscribeName:delegate:

getSubscriptions:


-(void) getSubscriptions: (id<GetSubscriptionsDelegatePtr>) delegate; 
Parameters
subscribeDelegate

Pointer to a delegate::GetSubscriptionsDelegate instance that is implemented by the user.

Discussion

Lists of publish that you are sharing with others. Listing is done independently of where in the actual directory tree the files are located.


subscribe:sharingUserName:publishId:publishName:password:subscribeName:delegate:


-(void) subscribe: (CBEUserId) userId sharingUserName: (NSString*) sharingUserName 
        publishId: (CBEPublishId) publishId publishName: (NSString*) publishName 
        password: (NSString*) password subscribeName: (NSString*) subscribeName 
        delegate: (id<SubscribeDelegatePtr>) delegate; 
Parameters
sharingUserId

User id of the owner of the publish or 0 if sharingUserName should be used instead

sharingUserName

User name of the owner of the publish or empty if sharingUserId should be used instead

publishId

Publish id or 0 if publishName should be used instead

publishName

Publish name or empty if publishId should be used instead

password

Required password or an empty string if no password

subscribeName

Name of created favorite (usually same as the publish)

subscribeDelegate

Gets notified of the result

Discussion

Subscribes to a publish shared by some other user (or yourself).