MumbleKit
 All Classes Functions
Instance Methods | List of all members
MKChannel Class Reference

#import <MumbleKit/MKChannel.h>

Inheritance diagram for MKChannel:

Instance Methods

(NSUInteger) - channelId
 Returns the channel's channel ID.
 
(NSString *) - channelName
 Returns the channel's name.
 
(BOOL) - isTemporary
 
(NSInteger) - position
 Returns the position of the channel.
 
(MKChannel *) - parent
 
(NSArray *) - channels
 Returns an NSArray of the channel's subchannels represented as MKChannels.
 
(NSArray *) - users
 Returns an NSArray of all users in the channel. The users are represented as MKUsers.
 
(NSArray *) - linkedChannels
 Returns an NSArray of all channels linked to this channel.
 
(BOOL) - isLinkedToChannel:
 
(NSData *) - channelDescriptionHash
 
(NSString *) - channelDescription
 Returns the channel's description.
 

Detailed Description

MKChannel represents a channel on a Mumble server. MKChannel objects are owned by their respective MKServerModel instances.

The object's MKServerModel may change properties of the channel at any time, but all changes are serialized to the main thread.

Generally, as a consumer of this API, most accesses to MKChannel happen in response to MKServerModelDelegate callbacks, and all calls to delegate methods of MKServerModel are ensured to happen on the same thread that modifies MKChannle objects.

Thus, if all inspection of the MKChannel's properties happen in response to MKServerModelDelegate callbacks, everything should be OK.

Method Documentation

- (NSData *) channelDescriptionHash

Returns a channel's description hash. (On most server implementations, this is a SHA1 digest).

- (BOOL) isLinkedToChannel: (MKChannel *)  channel

Checks whether a given channel is linked to the receiving channel.

Parameters
channelThe channel whose link status should be checked.
Returns
Returns YES if the receiving channel is linked to channel. Otherwise, returns NO.
- (BOOL) isTemporary

Returns whether or not the channel is temporary.

Returns
Returns YES if the channel is temporary. Returns NO if the channel is permanent.
- (MKChannel *) parent

Returns the channel's parent.

Returns
The MKChannel object representing the channel's parent. Returns nil if the current channel is the root channel.

The documentation for this class was generated from the following file: