Skip to content

Commit

Permalink
XMPPIDTracker numberOfIDs API
Browse files Browse the repository at this point in the history
  • Loading branch information
ObjColumnist committed May 18, 2013
1 parent 6b3cca6 commit 783f625
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Utilities/XMPPIDTracker.h
Expand Up @@ -110,6 +110,8 @@ extern const NSTimeInterval XMPPIDTrackerTimeoutNone;

- (BOOL)invokeForID:(NSString *)elementID withObject:(id)obj;

- (NSUInteger)numberOfIDs;

- (void)removeID:(NSString *)elementID;
- (void)removeAllIDs;

Expand Down
7 changes: 7 additions & 0 deletions Utilities/XMPPIDTracker.m
Expand Up @@ -149,6 +149,13 @@ - (BOOL)invokeForID:(NSString *)elementID withObject:(id)obj
return NO;
}

- (NSUInteger)numberOfIDs
{
AssertProperQueue();

return [[dict allKeys] count];
}

- (void)removeID:(NSString *)elementID
{
AssertProperQueue();
Expand Down

0 comments on commit 783f625

Please sign in to comment.