Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumblekit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/MumbleKit/MKUser.h')
-rw-r--r--src/MumbleKit/MKUser.h126
1 files changed, 43 insertions, 83 deletions
diff --git a/src/MumbleKit/MKUser.h b/src/MumbleKit/MKUser.h
index a40d89f..041414e 100644
--- a/src/MumbleKit/MKUser.h
+++ b/src/MumbleKit/MKUser.h
@@ -11,129 +11,89 @@ typedef enum {
@class MKChannel;
-/**
- * MKUser represents a user on a Mumble server. A user always resides in a channel, which is
- * represented by the MKChannel object. MKChannel objects are owned by their respective MKServerModel
- * instances.
- *
- * The object's MKServerModel may change properties of the user at any time, but
- * all changes are serialized to the main thread.
- *
- * Generally, as a consumer of this API, most accesses to MKUser 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.
- */
+/// @class MKUser MKUser.h MumbleKit/MKUser.h
+///
+/// MKUser represents a user on a Mumble server. A user always resides in a channel, which is
+///represented by the MKChannel object. MKChannel objects are owned by their respective MKServerModel
+/// instances.
+///
+/// The object's MKServerModel may change properties of the user at any time, but
+/// all changes are serialized to the main thread.
+///
+/// Generally, as a consumer of this API, most accesses to MKUser 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.
@interface MKUser : NSObject
-/**
- * Returns a user's user ID. Only registered users have user IDs.
- * For non-registered users, this ID will be negative.
- * A user ID of 0 signals that the user is the SuperUser.
- */
+/// Returns a user's user ID. Only registered users have user IDs.
+/// For non-registered users, this ID will be negative.
+/// A user ID of 0 signals that the user is the SuperUser.
- (NSInteger) userId;
-/**
- * Returns the user's session ID.
- * The session ID is mostly an implementation detail -- it is an identifier that
- * uniquely identifies a user on a server, regardless of whether or not that user
- * is registered with the server.
- */
+/// Returns the user's session ID.
+/// The session ID is mostly an implementation detail -- it is an identifier that
+/// uniquely identifies a user on a server, regardless of whether or not that user
+/// is registered with the server.
- (NSUInteger) session;
-/**
- * Returns the user's username.
- */
+/// Returns the user's username.
- (NSString *) userName;
-/**
- * Returns the user's hash. Typically, the the hash is the SHA1 digest of the user's X.509
- * certificate, but could be any unique hash that identifies the user.
- */
+/// Returns the user's hash. Typically, the the hash is the SHA1 digest of the user's X.509
+/// certificate, but could be any unique hash that identifies the user.
- (NSString *) userHash;
-/**
- * Returns the user's current talk state. See MKTalkState for more information.
- */
+/// Returns the user's current talk state. See MKTalkState for more information.
- (MKTalkState) talkState;
-/**
- * Returns whether or not the user is authenticated.
- */
+/// Returns whether or not the user is authenticated.
- (BOOL) isAuthenticated;
-/**
- * Returns whether or not the receiving user is a friend.
- */
+/// Returns whether or not the receiving user is a friend.
- (BOOL) isFriend;
-/**
- * Returns whether or not the receiving user is muted.
- */
+/// Returns whether or not the receiving user is muted.
- (BOOL) isMuted;
-/**
- * Returns whether or not the receiving user is deafened.
- */
+/// Returns whether or not the receiving user is deafened.
- (BOOL) isDeafened;
-/**
- * Returns whether or not the receiving user is suppressed by the server.
- */
+/// Returns whether or not the receiving user is suppressed by the server.
- (BOOL) isSuppressed;
-/**
- * Returns whether or not the receiving user is muted by the local client.
- */
+/// Returns whether or not the receiving user is muted by the local client.
- (BOOL) isLocalMuted;
-/**
- * Returns whether or not the receiving user is self-muted.
- */
+/// Returns whether or not the receiving user is self-muted.
- (BOOL) isSelfMuted;
-/**
- * Returns whether or not the receiving user is self-deafened.
- */
+/// Returns whether or not the receiving user is self-deafened.
- (BOOL) isSelfDeafened;
-/**
- * Returns whether or not the receiving user has the priority speaker flag.
- */
+/// Returns whether or not the receiving user has the priority speaker flag.
- (BOOL) isPrioritySpeaker;
-/**
- * Returns whether or not the receiving user has the recording flag.
- */
+/// Returns whether or not the receiving user has the recording flag.
- (BOOL) isRecording;
-/**
- * Returns the channel that the receiving user is currently residing in.
- */
+/// Returns the channel that the receiving user is currently residing in.
- (MKChannel *) channel;
-/**
- * Returns the server's hash of the contents of the user's current comment.
- */
+/// Returns the server's hash of the contents of the user's current comment.
- (NSData *) commentHash;
-/**
- * Return the user's current comment as an NSString.
- */
+/// Return the user's current comment as an NSString.
- (NSString *) comment;
-/**
- * Returns the server's hash of the user's current texture.
- */
+/// Returns the server's hash of the user's current texture.
- (NSData *) textureHash;
-/**
- * Returns the user's texture as an NSData object. The NSData object
- * contains the binary representation of the user's texture as an image
- * in either JPEG, PNG or ARGB32 format.
- */
+/// Returns the user's texture as an NSData object. The NSData object
+/// contains the binary representation of the user's texture as an image
+/// in either JPEG, PNG or ARGB32 format.
- (NSData *) texture;
@end