Skip to content

Commit

Permalink
Update to version 1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
gonecoding committed Oct 1, 2012
1 parent edb18d9 commit 1fb1c8f
Show file tree
Hide file tree
Showing 87 changed files with 5,524 additions and 320 deletions.
142 changes: 0 additions & 142 deletions Parse.framework/Versions/1.0.58/Headers/PF_FBRequest.h

This file was deleted.

Binary file removed Parse.framework/Versions/1.0.58/Parse
Binary file not shown.
47 changes: 47 additions & 0 deletions Parse.framework/Versions/1.1.10/Headers/PFCloud.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// PFCloud.h
// Parse
//
// Created by Shyam Jayaraman on 8/20/12.
// Copyright (c) 2012 Parse Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PFConstants.h"

@interface PFCloud : NSObject

/*!
Calls the given cloud function with the parameters passed in.
@param function The function name to call.
@param parameters The parameters to send to the function.
@result The response from the cloud function.
*/
+ (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters;

/*!
Calls the given cloud function with the parameters passed in and sets the error if there is one.
@param function The function name to call.
@param parameters The parameters to send to the function.
@param error Pointer to an NSError that will be set if necessary.
@result The response from the cloud function. This result could be a NSDictionary, an NSArray, NSInteger or NSString.
*/
+ (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters error:(NSError **)error;

/*!
Calls the given cloud function with the parameters provided asynchronously and calls the given block when it is done.
@param function The function name to call.
@param parameters The parameters to send to the function.
@param block The block to execute. The block should have the following argument signature:(id result, NSError *error).
*/
+ (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters block:(PFIdResultBlock)block;

/*!
Calls the given cloud function with the parameters provided asynchronously and runs the callback when it is done.
@param function The function name to call.
@param parameters The parameters to send to the function.
@param target The object to call the selector on.
@param selector The selector to call. It should have the following signature: (void)callbackWithResult:(id) result error:(NSError *)error. result will be nil if error is set and vice versa.
*/
+ (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters target:(id)target selector:(SEL)selector;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@class PFUser;

// Version
#define PARSE_VERSION @"1.0.58"
#define PARSE_VERSION @"1.1.10"

extern NSInteger const PARSE_API_VERSION;

Expand Down Expand Up @@ -76,6 +76,24 @@ extern NSInteger const kPFErrorDuplicateValue;
extern NSInteger const kPFErrorInvalidRoleName;
/*! @abstract 140: Exceeded an application quota. Upgrade to resolve. */
extern NSInteger const kPFErrorExceededQuota;
/*! @abstract 141: Cloud Code script had an error. */
extern NSInteger const kPFScriptError;
/*! @abstract 142: Cloud Code validation failed. */
extern NSInteger const kPFValidationError;
/*! @abstract 143: Product purchase receipt is missing */
extern NSInteger const kPFErrorReceiptMissing;
/*! @abstract 144: Product purchase receipt is invalid */
extern NSInteger const kPFErrorInvalidPurchaseReceipt;
/*! @abstract 145: Payment is disabled on this device */
extern NSInteger const kPFErrorPaymentDisabled;
/*! @abstract 146: The product identifier is invalid */
extern NSInteger const kPFErrorInvalidProductIdentifier;
/*! @abstract 147: The product is not found in the App Store */
extern NSInteger const kPFErrorProductNotFoundInAppStore;
/*! @abstract 148: The Apple server response is not valid */
extern NSInteger const kPFErrorInvalidServerResponse;
/*! @abstract 149: Product fails to download due to file system error */
extern NSInteger const kPFErrorProductDownloadFileSystemFailure;
/*! @abstract 150: Fail to convert data to image. */
extern NSInteger const kPFErrorInvalidImageData;
/*! @abstract 151: Unsaved file. */
Expand Down Expand Up @@ -120,5 +138,6 @@ typedef void (^PFSetResultBlock)(NSSet *channels, NSError *error);
typedef void (^PFUserResultBlock)(PFUser *user, NSError *error);
typedef void (^PFDataResultBlock)(NSData *data, NSError *error);
typedef void (^PFDataStreamResultBlock)(NSInputStream *stream, NSError *error);
typedef void (^PFStringResultBlock)(NSString *string, NSError *error);
typedef void (^PFIdResultBlock)(id object, NSError *error);
typedef void (^PFProgressBlock)(int percentDone);
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
/** @name Interacting With Facebook */

/*!
Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
@result The Facebook instance.
Gets the Facebook session for the current user.
*/
+ (PF_Facebook *)facebook;
+ (PF_FBSession *)session;

/*!
Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
@param delegate Specify your own delegate for the Facebook object.
@result The Facebook instance
Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse.
@param appId The Facebook application id that you are using with your Parse application.
*/
+ (PF_Facebook *)facebookWithDelegate:(NSObject<PF_FBSessionDelegate> *)delegate;
+ (void)initializeWithApplicationId:(NSString *)appId;

/*!
Initializes the Facebook singleton. You must invoke this in order to use the Facebook functionality in Parse.
@param appId The Facebook application id that you are using with your Parse application.
@param urlSchemeSuffix The URL suffix for this application - used when multiple applications with the same
Facebook application ID may be on the same device.
*/
+ (void)initializeWithApplicationId:(NSString *)appId;
+ (void)initializeWithApplicationId:(NSString *)appId urlSchemeSuffix:(NSString *)urlSchemeSuffix;

/*!
Whether the user has their account linked to Facebook.
Expand Down Expand Up @@ -201,14 +201,69 @@
*/
+ (void)unlinkUserInBackground:(PFUser *)user target:(id)target selector:(SEL)selector;

/** @name Extending Facebook Access Tokens */
/** @name Obtaining new permissions */

/*!
Requests new Facebook publish permissions for the given user. This may prompt the user to
reauthorize the application. The user will be saved as part of this operation.
@param user User to request new permissions for. The user must be linked to Facebook.
@param permissions The new publishing permissions to request.
@param audience The default audience for publishing permissions to request.
@param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error)
*/
+ (void)reauthorizeUser:(PFUser *)user
withPublishPermissions:(NSArray *)permissions
audience:(PF_FBSessionDefaultAudience)audience
block:(PFBooleanResultBlock)block;

/*!
Requests new Facebook publish permissions for the given user. This may prompt the user to
reauthorize the application. The user will be saved as part of this operation.
@param user User to request new permissions for. The user must be linked to Facebook.
@param permissions The new publishing permissions to request.
@param audience The default audience for publishing permissions to request.
@param target Target object for the selector
@param selector The selector that will be called when the asynchronous request is complete.
*/
+ (void)reauthorizeUser:(PFUser *)user
withPublishPermissions:(NSArray *)permissions
audience:(PF_FBSessionDefaultAudience)audience
target:(id)target
selector:(SEL)selector;

/** @name Delegating URL Actions */

/*!
Handles URLs being opened by your AppDelegate. Invoke and return this from application:handleOpenURL:
or application:openURL:sourceApplication:annotation in your AppDelegate.
@param url URL being opened by your application.
@result True if Facebook will handle this URL.
*/
+ (BOOL)handleOpenURL:(NSURL *)url;

/** @name Interacting With Facebook (Deprecated) */

/*!
Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
@result The Facebook instance.
*/
+ (PF_Facebook *)facebook __attribute__ ((deprecated));

/*!
Gets the instance of the Facebook object (from the Facebook SDK) that Parse uses.
@param delegate Specify your own delegate for the Facebook object.
@result The Facebook instance
*/
+ (PF_Facebook *)facebookWithDelegate:(NSObject<PF_FBSessionDelegate> *)delegate __attribute__ ((deprecated));

/** @name Extending Facebook Access Tokens (Deprecated) */

/*!
Whether the user has a Facebook access token that needs to be extended.
@param user User that is linked to Facebook and should be checked for access token extension.
@result True if the access token needs to be extended.
*/
+ (BOOL)shouldExtendAccessTokenForUser:(PFUser *)user;
+ (BOOL)shouldExtendAccessTokenForUser:(PFUser *)user __attribute__ ((deprecated));

/*!
Extends the access token for a user using Facebook, and saves the refreshed access token back to the PFUser.
Expand All @@ -217,15 +272,15 @@
@param target Target object for the selector
@param selector The selector that will be called when the asynchronous request is complete.
*/
+ (void)extendAccessTokenForUser:(PFUser *)user target:(id)target selector:(SEL)selector;
+ (void)extendAccessTokenForUser:(PFUser *)user target:(id)target selector:(SEL)selector __attribute__ ((deprecated));

/*!
Extends the access token for a user using Facebook, and saves the refreshed access token back to the PFUser.
@param user User whose access token should be extended
@param block The block to execute. The block should have the following argument signature:
(BOOL success, NSError *error)
*/
+ (void)extendAccessTokenForUser:(PFUser *)user block:(PFBooleanResultBlock)block;
+ (void)extendAccessTokenForUser:(PFUser *)user block:(PFBooleanResultBlock)block __attribute__ ((deprecated));

/*!
If necessary, extends the access token for a user using Facebook, and saves the refreshed
Expand All @@ -236,7 +291,7 @@
@param selector The selector that will be called when the asynchronous request is complete.
@result True if the access token needed to be extended.
*/
+ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user target:(id)target selector:(SEL)selector;
+ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user target:(id)target selector:(SEL)selector __attribute__ ((deprecated));

/*!
If necessary, extends the access token for a user using Facebook, and saves the refreshed
Expand All @@ -246,16 +301,6 @@
(BOOL success, NSError *error)
@result True if the access token needed to be extended.
*/
+ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user block:(PFBooleanResultBlock)block;

/** @name Delegating URL Actions */

/*!
Handles URLs being opened by your AppDelegate. Invoke and return this from application:handleOpenURL:
or application:openURL:sourceApplication:annotation in your AppDelegate.
@param url URL being opened by your application.
@result True if Facebook will handle this URL.
*/
+ (BOOL)handleOpenURL:(NSURL *)url;
+ (BOOL)extendAccessTokenIfNeededForUser:(PFUser *)user block:(PFBooleanResultBlock)block __attribute__ ((deprecated));

@end
Loading

0 comments on commit 1fb1c8f

Please sign in to comment.