include/OFCurrentUser.h

Go to the documentation of this file.
00001 //  Copyright 2009-2010 Aurora Feint, Inc.
00002 // 
00003 //  Licensed under the Apache License, Version 2.0 (the "License");
00004 //  you may not use this file except in compliance with the License.
00005 //  You may obtain a copy of the License at
00006 //  
00007 //      http://www.apache.org/licenses/LICENSE-2.0
00008 //      
00009 //  Unless required by applicable law or agreed to in writing, software
00010 //  distributed under the License is distributed on an "AS IS" BASIS,
00011 //  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012 //  See the License for the specific language governing permissions and
00013 //  limitations under the License.
00014 
00015 @class OFUser;
00016 @class OFRequestHandle;
00017 @protocol OFCurrentUserDelegate;
00018 
00023 @interface OFCurrentUser : NSObject<OFCallbackable>
00024 
00031 + (void)setDelegate:(id<OFCurrentUserDelegate>)delegate;
00032 
00038 + (OFUser*)currentUser;
00039 
00051 + (OFRequestHandle*)favoriteCurrentGame:(NSString*)reviewText;
00052 
00064 + (OFRequestHandle*)sendFriendRequest:(OFUser*)user;
00065 
00076 + (OFRequestHandle*)unfriend:(OFUser*)user;
00077 
00085 + (OFRequestHandle*)checkConnectedToSocialNetwork;
00086 
00092 + (BOOL)hasFriends;
00093 
00099 + (NSInteger)unviewedChallengesCount;
00100 
00106 + (BOOL)allowsAutoSocialNotifications;
00107 
00113 + (NSInteger)OpenFeintBadgeCount;
00114 
00115 @end
00116 
00121 @protocol OFCurrentUserDelegate
00122 @optional
00123 
00127 - (void)didFavoriteCurrentGame;
00128 
00132 - (void)didFailFavoriteCurrentGame;
00133 
00137 - (void)didSendFriendRequest;
00138 
00142 - (void)didFailSendFriendRequest;
00143 
00147 - (void)didUnfriend;
00148 
00152 - (void)didFailUnfriend;
00153 
00159 - (void)didCheckConnectedToSocialNetwork:(BOOL)connected;
00160 
00164 - (void)didFailCheckConnectedToSocialNetwork;
00165 
00166 @end
00167 
00168 
00169 
00170 
 All Classes Files Functions Variables Enumerations Enumerator Properties