├── .gitignore ├── Artwork ├── Icon-72.png ├── Icon-72@2x.png ├── Icon-Small-50.png ├── Icon-Small-50@2x.png ├── Icon-Small.png ├── Icon-Small@2x.png ├── Icon.png ├── Icon@2x.png ├── iTunesArtwork.png └── iTunesArtwork@2x.png ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── LICENSE ├── Parse.framework ├── Headers ├── Parse ├── Resources └── Versions │ ├── 1.1.13 │ ├── Headers │ │ ├── PFACL.h │ │ ├── PFAnonymousUtils.h │ │ ├── PFCloud.h │ │ ├── PFConstants.h │ │ ├── PFFacebookUtils.h │ │ ├── PFFile.h │ │ ├── PFGeoPoint.h │ │ ├── PFImageView.h │ │ ├── PFInstallation.h │ │ ├── PFLogInView.h │ │ ├── PFLogInViewController.h │ │ ├── PFObject.h │ │ ├── PFProduct.h │ │ ├── PFProductTableViewController.h │ │ ├── PFPurchase.h │ │ ├── PFPurchaseTableViewCell.h │ │ ├── PFPush.h │ │ ├── PFQuery.h │ │ ├── PFQueryTableViewController.h │ │ ├── PFRelation.h │ │ ├── PFRole.h │ │ ├── PFSignUpView.h │ │ ├── PFSignUpViewController.h │ │ ├── PFTableViewCell.h │ │ ├── PFTwitterUtils.h │ │ ├── PFUser.h │ │ ├── PF_EGORefreshTableHeaderView.h │ │ ├── PF_FBCacheDescriptor.h │ │ ├── PF_FBCacheIndex.h │ │ ├── PF_FBConnect.h │ │ ├── PF_FBContentLink.h │ │ ├── PF_FBDataDiskCache.h │ │ ├── PF_FBDialog.h │ │ ├── PF_FBError.h │ │ ├── PF_FBFrictionlessRequestSettings.h │ │ ├── PF_FBFriendPickerCacheDescriptor.h │ │ ├── PF_FBFriendPickerViewController+Internal.h │ │ ├── PF_FBFriendPickerViewController.h │ │ ├── PF_FBGraphLocation.h │ │ ├── PF_FBGraphObject.h │ │ ├── PF_FBGraphObjectPagingLoader.h │ │ ├── PF_FBGraphObjectTableCell.h │ │ ├── PF_FBGraphObjectTableDataSource.h │ │ ├── PF_FBGraphObjectTableSelection.h │ │ ├── PF_FBGraphPlace.h │ │ ├── PF_FBGraphUser.h │ │ ├── PF_FBLogger.h │ │ ├── PF_FBLoginDialog.h │ │ ├── PF_FBLoginView.h │ │ ├── PF_FBNativeDialogs.h │ │ ├── PF_FBOpenGraphAction.h │ │ ├── PF_FBPlacePickerCacheDescriptor.h │ │ ├── PF_FBPlacePickerViewController+Internal.h │ │ ├── PF_FBPlacePickerViewController.h │ │ ├── PF_FBProfilePictureView.h │ │ ├── PF_FBRequest.h │ │ ├── PF_FBRequestBody.h │ │ ├── PF_FBRequestConnection+Internal.h │ │ ├── PF_FBRequestConnection.h │ │ ├── PF_FBSDKVersion.h │ │ ├── PF_FBSession+Internal.h │ │ ├── PF_FBSession+Protected.h │ │ ├── PF_FBSession.h │ │ ├── PF_FBSessionManualTokenCachingStrategy.h │ │ ├── PF_FBSessionTokenCachingStrategy.h │ │ ├── PF_FBSettings+Internal.h │ │ ├── PF_FBSettings.h │ │ ├── PF_FBTestSession+Internal.h │ │ ├── PF_FBTestSession.h │ │ ├── PF_FBURLConnection.h │ │ ├── PF_FBUserSettingsViewController.h │ │ ├── PF_FBUtility.h │ │ ├── PF_FBViewController+Internal.h │ │ ├── PF_FBViewController.h │ │ ├── PF_Facebook.h │ │ ├── PF_FacebookSDK.h │ │ ├── PF_MBProgressHUD.h │ │ ├── PF_Twitter.h │ │ └── Parse.h │ ├── Parse │ └── Resources │ │ ├── Info.plist │ │ └── Localizable.strings │ └── Current ├── ParseTwilioCloudModule.xcodeproj └── project.pbxproj ├── ParseTwilioCloudModule ├── AddFriendViewController.h ├── AddFriendViewController.m ├── AddFriendViewController.xib ├── AppDelegate.h ├── AppDelegate.m ├── FriendsTableViewController.h ├── FriendsTableViewController.m ├── ParseTwilioCloudModule-Info.plist ├── ParseTwilioCloudModule-Prefix.pch ├── en.lproj │ └── InfoPlist.strings └── main.m ├── README.md └── parse └── cloud └── main.js /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | *.mode1v3 4 | *.mode2v3 5 | *.pbxuser 6 | *.perspectivev3 7 | *.xcworkspace 8 | *.swp 9 | xcuserdata 10 | -------------------------------------------------------------------------------- /Artwork/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon-72.png -------------------------------------------------------------------------------- /Artwork/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon-72@2x.png -------------------------------------------------------------------------------- /Artwork/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon-Small-50.png -------------------------------------------------------------------------------- /Artwork/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /Artwork/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon-Small.png -------------------------------------------------------------------------------- /Artwork/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon-Small@2x.png -------------------------------------------------------------------------------- /Artwork/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon.png -------------------------------------------------------------------------------- /Artwork/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/Icon@2x.png -------------------------------------------------------------------------------- /Artwork/iTunesArtwork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/iTunesArtwork.png -------------------------------------------------------------------------------- /Artwork/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Artwork/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Default-568h@2x.png -------------------------------------------------------------------------------- /Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Default.png -------------------------------------------------------------------------------- /Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Default@2x.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons CC0 1.0 Universal 2 | 3 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 4 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 5 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION 6 | ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE 7 | USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND 8 | DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT 9 | OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. 10 | 11 | Statement of Purpose 12 | 13 | The laws of most jurisdictions throughout the world automatically confer 14 | exclusive Copyright and Related Rights (defined below) upon the creator 15 | and subsequent owner(s) (each and all, an "owner") of an original work 16 | of authorship and/or a database (each, a "Work"). 17 | 18 | Certain owners wish to permanently relinquish those rights to a Work for 19 | the purpose of contributing to a commons of creative, cultural and 20 | scientific works ("Commons") that the public can reliably and without 21 | fear of later claims of infringement build upon, modify, incorporate in 22 | other works, reuse and redistribute as freely as possible in any form 23 | whatsoever and for any purposes, including without limitation commercial 24 | purposes. These owners may contribute to the Commons to promote the 25 | ideal of a free culture and the further production of creative, cultural 26 | and scientific works, or to gain reputation or greater distribution for 27 | their Work in part through the use and efforts of others. 28 | 29 | For these and/or other purposes and motivations, and without any 30 | expectation of additional consideration or compensation, the person 31 | associating CC0 with a Work (the "Affirmer"), to the extent that he or 32 | she is an owner of Copyright and Related Rights in the Work, voluntarily 33 | elects to apply CC0 to the Work and publicly distribute the Work under 34 | its terms, with knowledge of his or her Copyright and Related Rights in 35 | the Work and the meaning and intended legal effect of CC0 on those 36 | rights. 37 | 38 | 1. Copyright and Related Rights. A Work made available under CC0 may be 39 | protected by copyright and related or neighboring rights ("Copyright and 40 | Related Rights"). Copyright and Related Rights include, but are not 41 | limited to, the following: 42 | 43 | i. the right to reproduce, adapt, distribute, perform, display, 44 | communicate, and translate a Work; 45 | 46 | ii. moral rights retained by the original author(s) and/or performer(s); 47 | 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | 51 | iv. rights protecting against unfair competition in regards to a Work, 52 | subject to the limitations in paragraph 4(a), below; 53 | 54 | v. rights protecting the extraction, dissemination, use and reuse of 55 | data in a Work; 56 | 57 | vi. database rights (such as those arising under Directive 96/9/EC of 58 | the European Parliament and of the Council of 11 March 1996 on the legal 59 | protection of databases, and under any national implementation thereof, 60 | including any amended or successor version of such directive); and 61 | 62 | vii. other similar, equivalent or corresponding rights throughout the 63 | world based on applicable law or treaty, and any national 64 | implementations thereof. 65 | 66 | 2. Waiver. To the greatest extent permitted by, but not in contravention 67 | of, applicable law, Affirmer hereby overtly, fully, permanently, 68 | irrevocably and unconditionally waives, abandons, and surrenders all of 69 | Affirmer's Copyright and Related Rights and associated claims and causes 70 | of action, whether now known or unknown (including existing as well as 71 | future claims and causes of action), in the Work (i) in all territories 72 | worldwide, (ii) for the maximum duration provided by applicable law or 73 | treaty (including future time extensions), (iii) in any current or 74 | future medium and for any number of copies, and (iv) for any purpose 75 | whatsoever, including without limitation commercial, advertising or 76 | promotional purposes (the "Waiver"). Affirmer makes the Waiver for the 77 | benefit of each member of the public at large and to the detriment of 78 | Affirmer's heirs and successors, fully intending that such Waiver shall 79 | not be subject to revocation, rescission, cancellation, termination, or 80 | any other legal or equitable action to disrupt the quiet enjoyment of 81 | the Work by the public as contemplated by Affirmer's express Statement 82 | of Purpose. 83 | 84 | 3. Public License Fallback. Should any part of the Waiver for any reason 85 | be judged legally invalid or ineffective under applicable law, then the 86 | Waiver shall be preserved to the maximum extent permitted taking into 87 | account Affirmer's express Statement of Purpose. In addition, to the 88 | extent the Waiver is so judged Affirmer hereby grants to each affected 89 | person a royalty-free, non transferable, non sublicensable, non 90 | exclusive, irrevocable and unconditional license to exercise Affirmer's 91 | Copyright and Related Rights in the Work (i) in all territories 92 | worldwide, (ii) for the maximum duration provided by applicable law or 93 | treaty (including future time extensions), (iii) in any current or 94 | future medium and for any number of copies, and (iv) for any purpose 95 | whatsoever, including without limitation commercial, advertising or 96 | promotional purposes (the "License"). The License shall be deemed 97 | effective as of the date CC0 was applied by Affirmer to the Work. Should 98 | any part of the License for any reason be judged legally invalid or 99 | ineffective under applicable law, such partial invalidity or 100 | ineffectiveness shall not invalidate the remainder of the License, and 101 | in such case Affirmer hereby affirms that he or she will not (i) 102 | exercise any of his or her remaining Copyright and Related Rights in the 103 | Work or (ii) assert any associated claims and causes of action with 104 | respect to the Work, in either case contrary to Affirmer's express 105 | Statement of Purpose. 106 | 107 | 4. Limitations and Disclaimers. 108 | 109 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 110 | surrendered, licensed or otherwise affected by this document. 111 | 112 | b. Affirmer offers the Work as-is and makes no representations or 113 | warranties of any kind concerning the Work, express, implied, statutory 114 | or otherwise, including without limitation warranties of title, 115 | merchantability, fitness for a particular purpose, non infringement, or 116 | the absence of latent or other defects, accuracy, or the present or 117 | absence of errors, whether or not discoverable, all to the greatest 118 | extent permissible under applicable law. 119 | 120 | c. Affirmer disclaims responsibility for clearing rights of other 121 | persons that may apply to the Work or any use thereof, including without 122 | limitation any person's Copyright and Related Rights in the Work. 123 | Further, Affirmer disclaims responsibility for obtaining any necessary 124 | consents, permissions or other rights required for any use of the Work. 125 | 126 | d. Affirmer understands and acknowledges that Creative Commons is not a 127 | party to this document and has no duty or obligation with respect to 128 | this CC0 or use of the Work. 129 | -------------------------------------------------------------------------------- /Parse.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Parse.framework/Parse: -------------------------------------------------------------------------------- 1 | Versions/Current/Parse -------------------------------------------------------------------------------- /Parse.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFACL.h: -------------------------------------------------------------------------------- 1 | // PFACL.h 2 | // Copyright 2011 Parse, Inc. All rights reserved. 3 | 4 | #import 5 | 6 | @class PFUser; 7 | @class PFRole; 8 | 9 | /*! 10 | A PFACL is used to control which users can access or modify a particular 11 | object. Each PFObject can have its own PFACL. You can grant 12 | read and write permissions separately to specific users, to groups of users 13 | that belong to roles, or you can grant permissions to "the public" so that, 14 | for example, any user could read a particular object but only a particular 15 | set of users could write to that object. 16 | */ 17 | @interface PFACL : NSObject { 18 | @private 19 | NSMutableDictionary *permissionsById; 20 | BOOL shared; 21 | PFUser *unresolvedUser; 22 | void (^userResolutionListener)(id result, NSError *error); 23 | } 24 | 25 | /** @name Creating an ACL */ 26 | 27 | /*! 28 | Creates an ACL with no permissions granted. 29 | */ 30 | + (PFACL *)ACL; 31 | 32 | /*! 33 | Creates an ACL where only the provided user has access. 34 | */ 35 | + (PFACL *)ACLWithUser:(PFUser *)user; 36 | 37 | /** @name Controlling Public Access */ 38 | 39 | /*! 40 | Set whether the public is allowed to read this object. 41 | */ 42 | - (void)setPublicReadAccess:(BOOL)allowed; 43 | 44 | /*! 45 | Gets whether the public is allowed to read this object. 46 | */ 47 | - (BOOL)getPublicReadAccess; 48 | 49 | /*! 50 | Set whether the public is allowed to write this object. 51 | */ 52 | - (void)setPublicWriteAccess:(BOOL)allowed; 53 | 54 | /*! 55 | Gets whether the public is allowed to write this object. 56 | */ 57 | - (BOOL)getPublicWriteAccess; 58 | 59 | /** @name Controlling Access Per-User */ 60 | 61 | /*! 62 | Set whether the given user id is allowed to read this object. 63 | */ 64 | - (void)setReadAccess:(BOOL)allowed forUserId:(NSString *)userId; 65 | 66 | /*! 67 | Gets whether the given user id is *explicitly* allowed to read this object. 68 | Even if this returns NO, the user may still be able to access it if getPublicReadAccess returns YES 69 | or if the user belongs to a role that has access. 70 | */ 71 | - (BOOL)getReadAccessForUserId:(NSString *)userId; 72 | 73 | /*! 74 | Set whether the given user id is allowed to write this object. 75 | */ 76 | - (void)setWriteAccess:(BOOL)allowed forUserId:(NSString *)userId; 77 | 78 | /*! 79 | Gets whether the given user id is *explicitly* allowed to write this object. 80 | Even if this returns NO, the user may still be able to write it if getPublicWriteAccess returns YES 81 | or if the user belongs to a role that has access. 82 | */ 83 | - (BOOL)getWriteAccessForUserId:(NSString *)userId; 84 | 85 | /*! 86 | Set whether the given user is allowed to read this object. 87 | */ 88 | - (void)setReadAccess:(BOOL)allowed forUser:(PFUser *)user; 89 | 90 | /*! 91 | Gets whether the given user is *explicitly* allowed to read this object. 92 | Even if this returns NO, the user may still be able to access it if getPublicReadAccess returns YES 93 | or if the user belongs to a role that has access. 94 | */ 95 | - (BOOL)getReadAccessForUser:(PFUser *)user; 96 | 97 | /*! 98 | Set whether the given user is allowed to write this object. 99 | */ 100 | - (void)setWriteAccess:(BOOL)allowed forUser:(PFUser *)user; 101 | 102 | /*! 103 | Gets whether the given user is *explicitly* allowed to write this object. 104 | Even if this returns NO, the user may still be able to write it if getPublicWriteAccess returns YES 105 | or if the user belongs to a role that has access. 106 | */ 107 | - (BOOL)getWriteAccessForUser:(PFUser *)user; 108 | 109 | /** @name Controlling Access Per-Role */ 110 | 111 | /*! 112 | Get whether users belonging to the role with the given name are allowed 113 | to read this object. Even if this returns false, the role may still 114 | be able to read it if a parent role has read access. 115 | 116 | @param name The name of the role. 117 | @return YES if the role has read access. NO otherwise. 118 | */ 119 | - (BOOL)getReadAccessForRoleWithName:(NSString *)name; 120 | 121 | /*! 122 | Set whether users belonging to the role with the given name are allowed 123 | to read this object. 124 | 125 | @param name The name of the role. 126 | @param allowed Whether the given role can read this object. 127 | */ 128 | - (void)setReadAccess:(BOOL)allowed forRoleWithName:(NSString *)name; 129 | 130 | /*! 131 | Get whether users belonging to the role with the given name are allowed 132 | to write this object. Even if this returns false, the role may still 133 | be able to write it if a parent role has write access. 134 | 135 | @param name The name of the role. 136 | @return YES if the role has read access. NO otherwise. 137 | */ 138 | - (BOOL)getWriteAccessForRoleWithName:(NSString *)name; 139 | 140 | /*! 141 | Set whether users belonging to the role with the given name are allowed 142 | to write this object. 143 | 144 | @param name The name of the role. 145 | @param allowed Whether the given role can write this object. 146 | */ 147 | - (void)setWriteAccess:(BOOL)allowed forRoleWithName:(NSString *)name; 148 | 149 | /*! 150 | Get whether users belonging to the given role are allowed to read this 151 | object. Even if this returns NO, the role may still be able to 152 | read it if a parent role has read access. The role must already be saved on 153 | the server and its data must have been fetched in order to use this method. 154 | 155 | @param roleName The name of the role. 156 | @return YES if the role has read access. NO otherwise. 157 | */ 158 | - (BOOL)getReadAccessForRole:(PFRole *)role; 159 | 160 | /*! 161 | Set whether users belonging to the given role are allowed to read this 162 | object. The role must already be saved on the server and its data must have 163 | been fetched in order to use this method. 164 | 165 | @param role The role to assign access. 166 | @param allowed Whether the given role can read this object. 167 | */ 168 | - (void)setReadAccess:(BOOL)allowed forRole:(PFRole *)role; 169 | 170 | /*! 171 | Get whether users belonging to the given role are allowed to write this 172 | object. Even if this returns NO, the role may still be able to 173 | write it if a parent role has write access. The role must already be saved on 174 | the server and its data must have been fetched in order to use this method. 175 | 176 | @param roleName The name of the role. 177 | @return YES if the role has write access. NO otherwise. 178 | */ 179 | - (BOOL)getWriteAccessForRole:(PFRole *)role; 180 | 181 | /*! 182 | Set whether users belonging to the given role are allowed to write this 183 | object. The role must already be saved on the server and its data must have 184 | been fetched in order to use this method. 185 | 186 | @param role The role to assign access. 187 | @param allowed Whether the given role can write this object. 188 | */ 189 | - (void)setWriteAccess:(BOOL)allowed forRole:(PFRole *)role; 190 | 191 | /** @name Setting Access Defaults */ 192 | 193 | /*! 194 | Sets a default ACL that will be applied to all PFObjects when they are created. 195 | @param acl The ACL to use as a template for all PFObjects created after setDefaultACL has been called. 196 | This value will be copied and used as a template for the creation of new ACLs, so changes to the 197 | instance after setDefaultACL has been called will not be reflected in new PFObjects. 198 | @param currentUserAccess If true, the PFACL that is applied to newly-created PFObjects will 199 | provide read and write access to the currentUser at the time of creation. If false, 200 | the provided ACL will be used without modification. If acl is nil, this value is ignored. 201 | */ 202 | + (void)setDefaultACL:(PFACL *)acl withAccessForCurrentUser:(BOOL)currentUserAccess; 203 | 204 | @end 205 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFAnonymousUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFAnonymousUtils.h 3 | // Parse 4 | // 5 | // Created by David Poll on 3/20/12. 6 | // Copyright (c) 2012 Parse, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFUser.h" 11 | #import "PFConstants.h" 12 | 13 | /*! 14 | Provides utility functions for working with Anonymously logged-in users. Anonymous users have some unique characteristics: 15 |
    16 |
  • Anonymous users don't need a user name or password.
  • 17 |
  • Once logged out, an anonymous user cannot be recovered.
  • 18 |
  • When the current user is anonymous, the following methods can be used to switch to a different user or convert the 19 | anonymous user into a regular one: 20 |
      21 |
    • signUp converts an anonymous user to a standard user with the given username and password. 22 | Data associated with the anonymous user is retained.
    • 23 |
    • logIn switches users without converting the anonymous user. Data associated with the anonymous user will be lost.
    • 24 |
    • Service logIn (e.g. Facebook, Twitter) will attempt to convert the anonymous user into a standard user by linking it to the service. 25 | If a user already exists that is linked to the service, it will instead switch to the existing user.
    • 26 |
    • Service linking (e.g. Facebook, Twitter) will convert the anonymous user into a standard user by linking it to the service.
    • 27 |
    28 |
29 | */ 30 | @interface PFAnonymousUtils : NSObject 31 | 32 | /*! @name Creating an Anonymous User */ 33 | 34 | /*! 35 | Creates an anonymous user. 36 | @param block The block to execute when anonymous user creation is complete. The block should have the following argument signature: 37 | (PFUser *user, NSError *error) 38 | */ 39 | + (void)logInWithBlock:(PFUserResultBlock)block; 40 | 41 | /*! 42 | Creates an anonymous user. The selector for the callback should look like: (PFUser *)user error:(NSError *)error 43 | @param target Target object for the selector. 44 | @param selector The selector that will be called when the asynchronous request is complete. 45 | */ 46 | + (void)logInWithTarget:(id)target selector:(SEL)selector; 47 | 48 | /*! @name Determining Whether a PFUser is Anonymous */ 49 | 50 | /*! 51 | Whether the user is logged in anonymously. 52 | @param user User to check for anonymity. The user must be logged in on this device. 53 | @result True if the user is anonymous. False if the user is not the current user or is not anonymous. 54 | */ 55 | + (BOOL)isLinkedWithUser:(PFUser *)user; 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFCloud.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFCloud.h 3 | // Parse 4 | // 5 | // Created by Shyam Jayaraman on 8/20/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFConstants.h" 11 | 12 | @interface PFCloud : NSObject 13 | 14 | /*! 15 | Calls the given cloud function with the parameters passed in. 16 | @param function The function name to call. 17 | @param parameters The parameters to send to the function. 18 | @result The response from the cloud function. 19 | */ 20 | + (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters; 21 | 22 | /*! 23 | Calls the given cloud function with the parameters passed in and sets the error if there is one. 24 | @param function The function name to call. 25 | @param parameters The parameters to send to the function. 26 | @param error Pointer to an NSError that will be set if necessary. 27 | @result The response from the cloud function. This result could be a NSDictionary, an NSArray, NSInteger or NSString. 28 | */ 29 | + (id)callFunction:(NSString *)function withParameters:(NSDictionary *)parameters error:(NSError **)error; 30 | 31 | /*! 32 | Calls the given cloud function with the parameters provided asynchronously and calls the given block when it is done. 33 | @param function The function name to call. 34 | @param parameters The parameters to send to the function. 35 | @param block The block to execute. The block should have the following argument signature:(id result, NSError *error). 36 | */ 37 | + (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters block:(PFIdResultBlock)block; 38 | 39 | /*! 40 | Calls the given cloud function with the parameters provided asynchronously and runs the callback when it is done. 41 | @param function The function name to call. 42 | @param parameters The parameters to send to the function. 43 | @param target The object to call the selector on. 44 | @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. 45 | */ 46 | + (void)callFunctionInBackground:(NSString *)function withParameters:(NSDictionary *)parameters target:(id)target selector:(SEL)selector; 47 | @end 48 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFConstants.h: -------------------------------------------------------------------------------- 1 | // PFConstants.h 2 | // Copyright 2011 Parse, Inc. All rights reserved. 3 | 4 | #import 5 | @class PFObject; 6 | @class PFUser; 7 | 8 | // Version 9 | #define PARSE_VERSION @"1.1.13" 10 | 11 | extern NSInteger const PARSE_API_VERSION; 12 | 13 | // Server 14 | extern NSString *const kPFParseServer; 15 | 16 | // Cache policies 17 | typedef enum { 18 | kPFCachePolicyIgnoreCache = 0, 19 | kPFCachePolicyCacheOnly, 20 | kPFCachePolicyNetworkOnly, 21 | kPFCachePolicyCacheElseNetwork, 22 | kPFCachePolicyNetworkElseCache, 23 | kPFCachePolicyCacheThenNetwork 24 | } PFCachePolicy; 25 | 26 | // Errors 27 | 28 | /*! @abstract 1: Internal server error. No information available. */ 29 | extern NSInteger const kPFErrorInternalServer; 30 | 31 | /*! @abstract 100: The connection to the Parse servers failed. */ 32 | extern NSInteger const kPFErrorConnectionFailed; 33 | /*! @abstract 101: Object doesn't exist, or has an incorrect password. */ 34 | extern NSInteger const kPFErrorObjectNotFound; 35 | /*! @abstract 102: You tried to find values matching a datatype that doesn't support exact database matching, like an array or a dictionary. */ 36 | extern NSInteger const kPFErrorInvalidQuery; 37 | /*! @abstract 103: Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters. */ 38 | extern NSInteger const kPFErrorInvalidClassName; 39 | /*! @abstract 104: Missing object id. */ 40 | extern NSInteger const kPFErrorMissingObjectId; 41 | /*! @abstract 105: Invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters. */ 42 | extern NSInteger const kPFErrorInvalidKeyName; 43 | /*! @abstract 106: Malformed pointer. Pointers must be arrays of a classname and an object id. */ 44 | extern NSInteger const kPFErrorInvalidPointer; 45 | /*! @abstract 107: Malformed json object. A json dictionary is expected. */ 46 | extern NSInteger const kPFErrorInvalidJSON; 47 | /*! @abstract 108: Tried to access a feature only available internally. */ 48 | extern NSInteger const kPFErrorCommandUnavailable; 49 | /*! @abstract 111: Field set to incorrect type. */ 50 | extern NSInteger const kPFErrorIncorrectType; 51 | /*! @abstract 112: Invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_ characters and starts with a letter. */ 52 | extern NSInteger const kPFErrorInvalidChannelName; 53 | /*! @abstract 114: Invalid device token. */ 54 | extern NSInteger const kPFErrorInvalidDeviceToken; 55 | /*! @abstract 115: Push is misconfigured. See details to find out how. */ 56 | extern NSInteger const kPFErrorPushMisconfigured; 57 | /*! @abstract 116: The object is too large. */ 58 | extern NSInteger const kPFErrorObjectTooLarge; 59 | /*! @abstract 119: That operation isn't allowed for clients. */ 60 | extern NSInteger const kPFErrorOperationForbidden; 61 | /*! @abstract 120: The results were not found in the cache. */ 62 | extern NSInteger const kPFErrorCacheMiss; 63 | /*! @abstract 121: Keys in NSDictionary values may not include '$' or '.'. */ 64 | extern NSInteger const kPFErrorInvalidNestedKey; 65 | /*! @abstract 122: Invalid file name. A file name contains only a-zA-Z0-9_. characters and is between 1 and 36 characters. */ 66 | extern NSInteger const kPFErrorInvalidFileName; 67 | /*! @abstract 123: Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use PFACL. */ 68 | extern NSInteger const kPFErrorInvalidACL; 69 | /*! @abstract 124: The request timed out on the server. Typically this indicates the request is too expensive. */ 70 | extern NSInteger const kPFErrorTimeout; 71 | /*! @abstract 125: The email address was invalid. */ 72 | extern NSInteger const kPFErrorInvalidEmailAddress; 73 | /*! @abstract 137: A unique field was given a value that is already taken. */ 74 | extern NSInteger const kPFErrorDuplicateValue; 75 | /*! @abstract 139: Role's name is invalid. */ 76 | extern NSInteger const kPFErrorInvalidRoleName; 77 | /*! @abstract 140: Exceeded an application quota. Upgrade to resolve. */ 78 | extern NSInteger const kPFErrorExceededQuota; 79 | /*! @abstract 141: Cloud Code script had an error. */ 80 | extern NSInteger const kPFScriptError; 81 | /*! @abstract 142: Cloud Code validation failed. */ 82 | extern NSInteger const kPFValidationError; 83 | /*! @abstract 143: Product purchase receipt is missing */ 84 | extern NSInteger const kPFErrorReceiptMissing; 85 | /*! @abstract 144: Product purchase receipt is invalid */ 86 | extern NSInteger const kPFErrorInvalidPurchaseReceipt; 87 | /*! @abstract 145: Payment is disabled on this device */ 88 | extern NSInteger const kPFErrorPaymentDisabled; 89 | /*! @abstract 146: The product identifier is invalid */ 90 | extern NSInteger const kPFErrorInvalidProductIdentifier; 91 | /*! @abstract 147: The product is not found in the App Store */ 92 | extern NSInteger const kPFErrorProductNotFoundInAppStore; 93 | /*! @abstract 148: The Apple server response is not valid */ 94 | extern NSInteger const kPFErrorInvalidServerResponse; 95 | /*! @abstract 149: Product fails to download due to file system error */ 96 | extern NSInteger const kPFErrorProductDownloadFileSystemFailure; 97 | /*! @abstract 150: Fail to convert data to image. */ 98 | extern NSInteger const kPFErrorInvalidImageData; 99 | /*! @abstract 151: Unsaved file. */ 100 | extern NSInteger const kPFErrorUnsavedFile; 101 | /*! @abstract 153: Fail to delete file. */ 102 | extern NSInteger const kPFErrorFileDeleteFailure; 103 | 104 | /*! @abstract 200: Username is missing or empty */ 105 | extern NSInteger const kPFErrorUsernameMissing; 106 | /*! @abstract 201: Password is missing or empty */ 107 | extern NSInteger const kPFErrorUserPasswordMissing; 108 | /*! @abstract 202: Username has already been taken */ 109 | extern NSInteger const kPFErrorUsernameTaken; 110 | /*! @abstract 203: Email has already been taken */ 111 | extern NSInteger const kPFErrorUserEmailTaken; 112 | /*! @abstract 204: The email is missing, and must be specified */ 113 | extern NSInteger const kPFErrorUserEmailMissing; 114 | /*! @abstract 205: A user with the specified email was not found */ 115 | extern NSInteger const kPFErrorUserWithEmailNotFound; 116 | /*! @abstract 206: The user cannot be altered by a client without the session. */ 117 | extern NSInteger const kPFErrorUserCannotBeAlteredWithoutSession; 118 | /*! @abstract 207: Users can only be created through sign up */ 119 | extern NSInteger const kPFErrorUserCanOnlyBeCreatedThroughSignUp; 120 | /*! @abstract 208: An existing Facebook account already linked to another user. */ 121 | extern NSInteger const kPFErrorFacebookAccountAlreadyLinked; 122 | /*! @abstract 208: An existing account already linked to another user. */ 123 | extern NSInteger const kPFErrorAccountAlreadyLinked; 124 | /*! @abstract 209: User ID mismatch */ 125 | extern NSInteger const kPFErrorUserIdMismatch; 126 | /*! @abstract 250: Facebook id missing from request */ 127 | extern NSInteger const kPFErrorFacebookIdMissing; 128 | /*! @abstract 250: Linked id missing from request */ 129 | extern NSInteger const kPFErrorLinkedIdMissing; 130 | /*! @abstract 251: Invalid Facebook session */ 131 | extern NSInteger const kPFErrorFacebookInvalidSession; 132 | /*! @abstract 251: Invalid linked session */ 133 | extern NSInteger const kPFErrorInvalidLinkedSession; 134 | 135 | typedef void (^PFBooleanResultBlock)(BOOL succeeded, NSError *error); 136 | typedef void (^PFIntegerResultBlock)(int number, NSError *error); 137 | typedef void (^PFArrayResultBlock)(NSArray *objects, NSError *error); 138 | typedef void (^PFObjectResultBlock)(PFObject *object, NSError *error); 139 | typedef void (^PFSetResultBlock)(NSSet *channels, NSError *error); 140 | typedef void (^PFUserResultBlock)(PFUser *user, NSError *error); 141 | typedef void (^PFDataResultBlock)(NSData *data, NSError *error); 142 | typedef void (^PFDataStreamResultBlock)(NSInputStream *stream, NSError *error); 143 | typedef void (^PFStringResultBlock)(NSString *string, NSError *error); 144 | typedef void (^PFIdResultBlock)(id object, NSError *error); 145 | typedef void (^PFProgressBlock)(int percentDone); 146 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFFile.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFFile.h 3 | // Parse 4 | // 5 | // Created by Ilya Sukhar on 10/11/11. 6 | // Copyright 2011 Ping Labs, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFConstants.h" 11 | 12 | /*! 13 | A file of binary data stored on the Parse servers. This can be a image, video, or anything else 14 | that an application needs to reference in a non-relational way. 15 | */ 16 | @interface PFFile : NSObject { 17 | NSString *name; 18 | NSString *url; 19 | } 20 | 21 | /** @name Creating a PFFile */ 22 | 23 | /*! 24 | Creates a file with given data. A name will be assigned to it by the server. 25 | @param data The contents of the new PFFile. 26 | @result A PFFile. 27 | */ 28 | + (id)fileWithData:(NSData *)data; 29 | 30 | /*! 31 | Creates a file with given data and name. 32 | @param name The name of the new PFFile. 33 | @param data The contents of hte new PFFile. 34 | @result A PFFile. 35 | */ 36 | + (id)fileWithName:(NSString *)name data:(NSData *)data; 37 | 38 | /*! 39 | Creates a file with the contents of another file. 40 | @param name The name of the new PFFile 41 | @param path The path to the file that will be uploaded to Parse 42 | */ 43 | + (id)fileWithName:(NSString *)name 44 | contentsAtPath:(NSString *)path; 45 | 46 | /*! 47 | The name of the file. 48 | */ 49 | @property (readonly) NSString *name; 50 | 51 | /*! 52 | The url of the file. 53 | */ 54 | @property (readonly) NSString *url; 55 | 56 | /** @name Storing Data with Parse */ 57 | 58 | /*! 59 | Whether the file has been uploaded for the first time. 60 | */ 61 | @property (readonly) BOOL isDirty; 62 | 63 | /*! 64 | Saves the file. 65 | @result Returns whether the save succeeded. 66 | */ 67 | - (BOOL)save; 68 | 69 | /*! 70 | Saves the file and sets an error if it occurs. 71 | @param error Pointer to an NSError that will be set if necessary. 72 | @result Returns whether the save succeeded. 73 | */ 74 | - (BOOL)save:(NSError **)error; 75 | 76 | /*! 77 | Saves the file asynchronously. 78 | @result Returns whether the save succeeded. 79 | */ 80 | - (void)saveInBackground; 81 | 82 | /*! 83 | Saves the file asynchronously and executes the given block. 84 | @param block The block should have the following argument signature: (BOOL succeeded, NSError *error) 85 | */ 86 | - (void)saveInBackgroundWithBlock:(PFBooleanResultBlock)block; 87 | 88 | /*! 89 | Saves the file asynchronously and executes the given resultBlock. Executes the progressBlock periodically with the percent 90 | progress. progressBlock will get called with 100 before resultBlock is called. 91 | @param block The block should have the following argument signature: (BOOL succeeded, NSError *error) 92 | @param progressBlock The block should have the following argument signature: (int percentDone) 93 | */ 94 | - (void)saveInBackgroundWithBlock:(PFBooleanResultBlock)block 95 | progressBlock:(PFProgressBlock)progressBlock; 96 | 97 | /*! 98 | Saves the file asynchronously and calls the given callback. 99 | @param target The object to call selector on. 100 | @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not. 101 | */ 102 | - (void)saveInBackgroundWithTarget:(id)target selector:(SEL)selector; 103 | 104 | /** @name Getting Data from Parse */ 105 | 106 | /*! 107 | Whether the data is available in memory or needs to be downloaded. 108 | */ 109 | @property (readonly) BOOL isDataAvailable; 110 | 111 | /*! 112 | Gets the data from cache if available or fetches its contents from the Parse 113 | servers. 114 | @result The data. Returns nil if there was an error in fetching. 115 | */ 116 | - (NSData *)getData; 117 | 118 | /*! 119 | This method is like getData but avoids ever holding the entire PFFile's 120 | contents in memory at once. This can help applications with many large PFFiles 121 | avoid memory warnings. 122 | @result A stream containing the data. Returns nil if there was an error in 123 | fetching. 124 | */ 125 | - (NSInputStream *)getDataStream; 126 | 127 | /*! 128 | Gets the data from cache if available or fetches its contents from the Parse 129 | servers. Sets an error if it occurs. 130 | @param error Pointer to an NSError that will be set if necessary. 131 | @result The data. Returns nil if there was an error in fetching. 132 | */ 133 | - (NSData *)getData:(NSError **)error; 134 | 135 | /*! 136 | This method is like getData: but avoids ever holding the entire PFFile's 137 | contents in memory at once. This can help applications with many large PFFiles 138 | avoid memory warnings. Sets an error if it occurs. 139 | @param error Pointer to an NSError that will be set if necessary. 140 | @result A stream containing the data. Returns nil if there was an error in 141 | fetching. 142 | */ 143 | - (NSInputStream *)getDataStream:(NSError **)error; 144 | 145 | /*! 146 | Asynchronously gets the data from cache if available or fetches its contents 147 | from the Parse servers. Executes the given block. 148 | @param block The block should have the following argument signature: (NSData *result, NSError *error) 149 | */ 150 | - (void)getDataInBackgroundWithBlock:(PFDataResultBlock)block; 151 | 152 | /*! 153 | This method is like getDataInBackgroundWithBlock: but avoids ever holding the 154 | entire PFFile's contents in memory at once. This can help applications with 155 | many large PFFiles avoid memory warnings. 156 | @param block The block should have the following argument signature: (NSInputStream *result, NSError *error) 157 | */ 158 | - (void)getDataStreamInBackgroundWithBlock:(PFDataStreamResultBlock)block; 159 | 160 | /*! 161 | Asynchronously gets the data from cache if available or fetches its contents 162 | from the Parse servers. Executes the resultBlock upon 163 | completion or error. Executes the progressBlock periodically with the percent progress. progressBlock will get called with 100 before resultBlock is called. 164 | @param block The block should have the following argument signature: (NSData *result, NSError *error) 165 | @param progressBlock The block should have the following argument signature: (int percentDone) 166 | */ 167 | - (void)getDataInBackgroundWithBlock:(PFDataResultBlock)resultBlock 168 | progressBlock:(PFProgressBlock)progressBlock; 169 | 170 | /*! 171 | This method is like getDataInBackgroundWithBlock:progressBlock: but avoids ever 172 | holding the entire PFFile's contents in memory at once. This can help 173 | applications with many large PFFiles avoid memory warnings. 174 | @param resultBlock The block should have the following argument signature: (NSInputStream *result, NSError *error) 175 | @param progressBlock The block should have the following argument signature: (int percentDone) 176 | */ 177 | - (void)getDataStreamInBackgroundWithBlock:(PFDataStreamResultBlock)resultBlock 178 | progressBlock:(PFProgressBlock)progressBlock; 179 | 180 | /*! 181 | Asynchronously gets the data from cache if available or fetches its contents 182 | from the Parse servers. 183 | @param target The object to call selector on. 184 | @param selector The selector to call. It should have the following signature: (void)callbackWithResult:(NSData *)result error:(NSError *)error. error will be nil on success and set if there was an error. 185 | */ 186 | - (void)getDataInBackgroundWithTarget:(id)target selector:(SEL)selector; 187 | 188 | /** @name Interrupting a Transfer */ 189 | 190 | /*! 191 | Cancels the current request (whether upload or download of file data). 192 | */ 193 | - (void)cancel; 194 | 195 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFGeoPoint.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFGeoPoint.h 3 | // Parse 4 | // 5 | // Created by Henele Adams on 12/1/11. 6 | // Copyright (c) 2011 Parse, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | /*! 13 | Object which may be used to embed a latitude / longitude point as the value for a key in a PFObject. 14 | PFObjects with a PFGeoPoint field may be queried in a geospatial manner using PFQuery's whereKey:nearGeoPoint:. 15 | 16 | This is also used as a point specifier for whereKey:nearGeoPoint: queries. 17 | 18 | Currently, object classes may only have one key associated with a GeoPoint type. 19 | */ 20 | 21 | @interface PFGeoPoint : NSObject { 22 | double latitude; 23 | double longitude; 24 | } 25 | 26 | /** @name Creating a PFGeoPoint */ 27 | /*! 28 | Create a PFGeoPoint object. Latitude and longitude are set to 0.0. 29 | @result Returns a new PFGeoPoint. 30 | */ 31 | + (PFGeoPoint *)geoPoint; 32 | 33 | /*! 34 | Creates a new PFGeoPoint object for the given CLLocation, set to the location's 35 | coordinates. 36 | @param location CLLocation object, with set latitude and longitude. 37 | @result Returns a new PFGeoPoint at specified location. 38 | */ 39 | + (PFGeoPoint *)geoPointWithLocation:(CLLocation *)location; 40 | 41 | /*! 42 | Creates a new PFGeoPoint object with the specified latitude and longitude. 43 | @param latitude Latitude of point in degrees. 44 | @param longitude Longitude of point in degrees. 45 | @result New point object with specified latitude and longitude. 46 | */ 47 | + (PFGeoPoint *)geoPointWithLatitude:(double)latitude longitude:(double)longitude; 48 | 49 | /*! 50 | Fetches the user's current location and returns a new PFGeoPoint object via the 51 | provided block. 52 | @param geoPointHandler A block which takes the newly created PFGeoPoint as an 53 | argument. 54 | */ 55 | + (void)geoPointForCurrentLocationInBackground:(void(^)(PFGeoPoint *geoPoint, NSError *error))geoPointHandler; 56 | 57 | /** @name Controlling Position */ 58 | 59 | /// Latitude of point in degrees. Valid range (-90.0, 90.0). 60 | @property (nonatomic) double latitude; 61 | /// Longitude of point in degrees. Valid range (-180.0, 180.0). 62 | @property (nonatomic) double longitude; 63 | 64 | /** @name Calculating Distance */ 65 | 66 | /*! 67 | Get distance in radians from this point to specified point. 68 | @param point PFGeoPoint location of other point. 69 | @result distance in radians 70 | */ 71 | - (double)distanceInRadiansTo:(PFGeoPoint*)point; 72 | 73 | /*! 74 | Get distance in miles from this point to specified point. 75 | @param point PFGeoPoint location of other point. 76 | @result distance in miles 77 | */ 78 | - (double)distanceInMilesTo:(PFGeoPoint*)point; 79 | 80 | /*! 81 | Get distance in kilometers from this point to specified point. 82 | @param point PFGeoPoint location of other point. 83 | @result distance in kilometers 84 | */ 85 | - (double)distanceInKilometersTo:(PFGeoPoint*)point; 86 | 87 | 88 | @end 89 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFImageView.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFImageView.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 5/16/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFFile.h" 11 | 12 | /*! 13 | An image view that downloads and displays remote image stored on Parse's server. 14 | */ 15 | @interface PFImageView : UIImageView 16 | 17 | /// The remote file on Parse's server that stores the image. 18 | /// Note that the download does not start until loadInBackground: is called. 19 | @property (nonatomic, retain) PFFile *file; 20 | 21 | /*! 22 | Initiate downloading of the remote image. Once the download completes, the remote image will be displayed. 23 | */ 24 | - (void)loadInBackground; 25 | 26 | /*! 27 | Initiate downloading of the remote image. Once the download completes, the remote image will be displayed. 28 | @param completion the completion block. 29 | */ 30 | - (void)loadInBackground:(void (^)(UIImage *image, NSError *error))completion; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFInstallation.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFInstallation.h 3 | // Parse 4 | // 5 | // Created by Brian Jacokes on 6/4/12. 6 | // Copyright (c) 2012 Parse, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFObject.h" 11 | #import "PFQuery.h" 12 | 13 | /*! 14 | A Parse Framework Installation Object that is a local representation of an 15 | installation persisted to the Parse cloud. This class is a subclass of a 16 | PFObject, and retains the same functionality of a PFObject, but also extends 17 | it with installation-specific fields and related immutability and validity 18 | checks. 19 | 20 | A valid PFInstallation can only be instantiated via 21 | [PFInstallation currentInstallation] because the required identifier fields 22 | are readonly. The timeZone and badge fields are also readonly properties which 23 | are automatically updated to match the device's time zone and application badge 24 | when the PFInstallation is saved, thus these fields might not reflect the 25 | latest device state if the installation has not recently been saved. 26 | 27 | PFInstallation objects which have a valid deviceToken and are saved to 28 | the Parse cloud can be used to target push notifications. 29 | */ 30 | 31 | @interface PFInstallation : PFObject { 32 | } 33 | 34 | /** @name Accessing the Current Installation */ 35 | 36 | /*! 37 | Gets the currently-running installation from disk and returns an instance of 38 | it. If this installation is not stored on disk, returns a PFInstallation 39 | with deviceType and installationId fields set to those of the 40 | current installation, and a deviceToken field set to the value stored by 41 | [PFPush storeDeviceToken:]. In the latter case, if this installation matches 42 | one in the Parse cloud, then calling save will fill in this installation's 43 | objectId instead of creating a new installation. 44 | @result Returns a PFInstallation that represents the currently-running 45 | installation. 46 | */ 47 | + (PFInstallation *)currentInstallation; 48 | 49 | /** @name Targeting Installations */ 50 | 51 | /*! 52 | Creates a query for PFInstallation objects. The resulting query can only 53 | be used for targeting a PFPush. Calling find methods on the resulting query 54 | will raise an exception. 55 | */ 56 | + (PFQuery *)query; 57 | 58 | /// The device type for the PFInstallation. 59 | @property (nonatomic, readonly, retain) NSString *deviceType; 60 | 61 | /// The installationId for the PFInstallation. 62 | @property (nonatomic, readonly, retain) NSString *installationId; 63 | 64 | /// The device token for the PFInstallation. 65 | @property (nonatomic, readonly, retain) NSString *deviceToken; 66 | 67 | /// The badge for the PFInstallation. 68 | @property (nonatomic, assign) NSInteger badge; 69 | 70 | /// The timeZone for the PFInstallation. 71 | @property (nonatomic, readonly, retain) NSString *timeZone; 72 | 73 | /// The channels for the PFInstallation. 74 | @property (nonatomic, retain) NSArray *channels; 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFLogInView.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFLogInView.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 3/9/12. 6 | // Copyright (c) 2012. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum { 12 | PFLogInFieldsNone = 0, 13 | PFLogInFieldsUsernameAndPassword = 1 << 0, 14 | PFLogInFieldsPasswordForgotten = 1 << 1, 15 | PFLogInFieldsLogInButton = 1 << 2, 16 | PFLogInFieldsFacebook = 1 << 3, 17 | PFLogInFieldsTwitter = 1 << 4, 18 | PFLogInFieldsSignUpButton = 1 << 5, 19 | PFLogInFieldsDismissButton = 1 << 6, 20 | 21 | PFLogInFieldsDefault = PFLogInFieldsUsernameAndPassword | PFLogInFieldsLogInButton | PFLogInFieldsSignUpButton | PFLogInFieldsPasswordForgotten | PFLogInFieldsDismissButton 22 | } PFLogInFields; 23 | 24 | /*! 25 | The class provides a standard log in interface for authenticating a PFUser. 26 | */ 27 | @interface PFLogInView : UIView 28 | 29 | /*! @name Creating Log In View */ 30 | /*! 31 | Initializes the view with the specified log in elements. 32 | @param fields A bitmask specifying the log in elements which are enabled in the view 33 | */ 34 | - (id)initWithFields:(PFLogInFields) fields; 35 | 36 | /*! @name Customizing the Logo */ 37 | 38 | /// The logo. By default, it is the Parse logo. 39 | @property (nonatomic, retain) UIView *logo; 40 | 41 | /*! @name Accessing Log In Elements */ 42 | 43 | /// The bitmask which specifies the enabled log in elements in the view 44 | @property (nonatomic, readonly, assign) PFLogInFields fields; 45 | 46 | /// The username text field. It is nil if the element is not enabled. 47 | @property (nonatomic, readonly, retain) UITextField *usernameField; 48 | 49 | /// The password text field. It is nil if the element is not enabled. 50 | @property (nonatomic, readonly, retain) UITextField *passwordField; 51 | 52 | /// The password forgotten button. It is nil if the element is not enabled. 53 | @property (nonatomic, readonly, retain) UIButton *passwordForgottenButton; 54 | 55 | /// The log in button. It is nil if the element is not enabled. 56 | @property (nonatomic, readonly, retain) UIButton *logInButton; 57 | 58 | /// The Facebook button. It is nil if the element is not enabled. 59 | @property (nonatomic, readonly, retain) UIButton *facebookButton; 60 | 61 | /// The Twitter button. It is nil if the element is not enabled. 62 | @property (nonatomic, readonly, retain) UIButton *twitterButton; 63 | 64 | /// The sign up button. It is nil if the element is not enabled. 65 | @property (nonatomic, readonly, retain) UIButton *signUpButton; 66 | 67 | /// The dismiss button. It is nil if the element is not enabled. 68 | @property (nonatomic, readonly, retain) UIButton *dismissButton; 69 | 70 | /// The facebook/twitter login label. It is only shown if the external login is enabled. 71 | @property (nonatomic, readonly, retain) UILabel *externalLogInLabel; 72 | 73 | /// The sign up label. It is only shown if sign up button is enabled. 74 | @property (nonatomic, readonly, retain) UILabel *signUpLabel; 75 | 76 | @end 77 | 78 | 79 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFLogInViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFLogInViewController.h 3 | // Parse 4 | // 5 | // Created by Andrew Wang on 3/8/12. 6 | // Copyright (c) 2012. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFLogInView.h" 11 | #import "PFSignUpViewController.h" 12 | #import "PFUser.h" 13 | 14 | @protocol PFLogInViewControllerDelegate; 15 | 16 | /*! 17 | The class that presents and manages a standard authentication interface for logging in a PFUser. 18 | */ 19 | @interface PFLogInViewController : UIViewController 20 | 21 | /*! @name Configuring Log In Elements */ 22 | 23 | /*! 24 | A bitmask specifying the log in elements which are enabled in the view. 25 | enum { 26 | PFLogInFieldsNone = 0, 27 | PFLogInFieldsUsernameAndPassword = 1 << 0, 28 | PFLogInFieldsPasswordForgotten = 1 << 1, 29 | PFLogInFieldsLogInButton = 1 << 2, 30 | PFLogInFieldsFacebook = 1 << 3, 31 | PFLogInFieldsTwitter = 1 << 4, 32 | PFLogInFieldsSignUpButton = 1 << 5, 33 | PFLogInFieldsDismissButton = 1 << 6, 34 | PFLogInFieldsDefault = PFLogInFieldsUsernameAndPassword | PFLogInFieldsLogInButton | PFLogInFieldsSignUpButton | PFLogInFieldsPasswordForgotten | PFLogInFieldsDismissButton 35 | }; 36 | */ 37 | @property (nonatomic) PFLogInFields fields; 38 | 39 | /// The log in view. It contains all the enabled log in elements. 40 | @property (nonatomic, readonly, retain) PFLogInView *logInView; 41 | 42 | /*! @name Configuring Log In Behaviors */ 43 | /// The delegate that responds to the control events of PFLogInViewController. 44 | @property (nonatomic, assign) id delegate; 45 | 46 | /// The facebook permissions that Facebook log in requests for. 47 | /// If unspecified, the default is basic facebook permissions. 48 | @property (nonatomic, retain) NSArray *facebookPermissions; 49 | 50 | /// The sign up controller if sign up is enabled. 51 | /// Use this to configure the sign up view, and the transition animation to the sign up view. 52 | /// The default is a sign up view with a username, a password, a dismiss button and a sign up button. 53 | @property (nonatomic, retain) PFSignUpViewController *signUpController; 54 | 55 | @end 56 | 57 | /*! @name Notifications */ 58 | /// The notification is posted immediately after the log in succeeds. 59 | extern NSString *const PFLogInSuccessNotification; 60 | 61 | /// The notification is posted immediately after the log in fails. 62 | /// If the delegate prevents the log in from starting, the notification is not sent. 63 | extern NSString *const PFLogInFailureNotification; 64 | 65 | /// The notification is posted immediately after the log in is cancelled. 66 | extern NSString *const PFLogInCancelNotification; 67 | 68 | /*! 69 | The protocol defines methods a delegate of a PFLogInViewController should implement. 70 | All methods of the protocol are optional. 71 | */ 72 | @protocol PFLogInViewControllerDelegate 73 | @optional 74 | 75 | /*! @name Customizing Behavior */ 76 | 77 | /*! 78 | Sent to the delegate to determine whether the log in request should be submitted to the server. 79 | @param username the username the user tries to log in with. 80 | @param password the password the user tries to log in with. 81 | @result a boolean indicating whether the log in should proceed. 82 | */ 83 | - (BOOL)logInViewController:(PFLogInViewController *)logInController shouldBeginLogInWithUsername:(NSString *)username password:(NSString *)password; 84 | 85 | /*! @name Responding to Actions */ 86 | /// Sent to the delegate when a PFUser is logged in. 87 | - (void)logInViewController:(PFLogInViewController *)logInController didLogInUser:(PFUser *)user; 88 | 89 | /// Sent to the delegate when the log in attempt fails. 90 | - (void)logInViewController:(PFLogInViewController *)logInController didFailToLogInWithError:(NSError *)error; 91 | 92 | /// Sent to the delegate when the log in screen is dismissed. 93 | - (void)logInViewControllerDidCancelLogIn:(PFLogInViewController *)logInController; 94 | @end 95 | 96 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFProduct.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFProduct.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 6/7/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import "PFObject.h" 10 | #import "PFFile.h" 11 | 12 | /*! 13 | Represents an in-app purchase product on the Parse server. 14 | By default, products can only be created via the data browser; saving a PFProduct 15 | will result in error. However, the products' metadata information can be queried 16 | and viewed. 17 | */ 18 | @interface PFProduct : PFObject 19 | 20 | /** @name Querying for Products */ 21 | /*! 22 | A query that fetches all product instances registered on Parse's server. 23 | */ 24 | + (PFQuery *)query; 25 | 26 | /** @name Accessing Product-specific Properties */ 27 | /*! 28 | The product identifier of the product. 29 | This should match the product identifier in iTunes Connect exactly. 30 | */ 31 | @property (nonatomic, retain) NSString *productIdentifier; 32 | 33 | /*! 34 | The icon of the product. 35 | */ 36 | @property (nonatomic, retain) PFFile *icon; 37 | 38 | /*! 39 | The title of the product. 40 | */ 41 | @property (nonatomic, retain) NSString *title; 42 | 43 | /*! 44 | The subtitle of the product. 45 | */ 46 | @property (nonatomic, retain) NSString *subtitle; 47 | 48 | /*! 49 | The order in which the product information is displayed in PFProductTableViewController. 50 | The product with a smaller order is displayed earlier in the PFProductTableViewController. 51 | */ 52 | @property (nonatomic, retain) NSNumber *order; 53 | 54 | /*! 55 | The name of the associated download. If there is no downloadable asset, it should be nil. 56 | */ 57 | @property (nonatomic, readonly) NSString *downloadName; 58 | 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFProductTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFProductsTableViewController.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 5/15/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import "PFQueryTableViewController.h" 10 | 11 | /*! 12 | PFProductTableViewController displays in-app purchase products stored on Parse. 13 | In addition to setting up in-app purchases in iTunesConnect, the app developer needs 14 | to register product information on Parse, in the Product class. 15 | */ 16 | @interface PFProductTableViewController : PFQueryTableViewController 17 | 18 | /*! 19 | Initializes a product table view controller. 20 | */ 21 | - (id)init; 22 | @end 23 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFPurchase.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFPurchase.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 5/2/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "PFConstants.h" 12 | 13 | /*! 14 | PFPurchase provides a set of APIs for working with in-app purchases. 15 | */ 16 | @interface PFPurchase : NSObject 17 | 18 | /*! 19 | Use this method to add application logic block which is run when buying a product. 20 | This method should be called once for each product, and should be called before 21 | calling buyProduct:block. All invocations to addObserverForProduct:block: should happen within 22 | the same method, and on the main thread. It is recommended to place all invocations of this method 23 | in application:didFinishLaunchingWithOptions:. 24 | @param productIdentifier the product identifier 25 | @param completion the completion block 26 | */ 27 | + (void)addObserverForProduct:(NSString *)productIdentifier block:(void(^)(SKPaymentTransaction *transaction))block; 28 | 29 | /*! 30 | Asynchronously initiates the purchase for the product. 31 | @param productIdentifier the product identifier 32 | @param block the completion block. 33 | */ 34 | + (void)buyProduct:(NSString *)productIdentifier block:(void(^)(NSError *error))block; 35 | 36 | /*! 37 | Asynchronously download the purchased asset, which is stored on Parse's server. 38 | Parse verifies the receipt with Apple and delivers the content only if the receipt is valid. 39 | @param transaction the transaction, which contains the receipt. 40 | @param completion the completion block. 41 | */ 42 | + (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction completion:(void(^)(NSString *filePath, NSError *error))completion; 43 | 44 | /*! 45 | Asynchronously download the purchased asset, which is stored on Parse's server. 46 | Parse verifies the receipt with Apple and delivers the content only if the receipt is valid. 47 | @param transaction the transaction, which contains the receipt. 48 | @param completion the completion block. 49 | @param progress the progress block, which is called multiple times to reveal progress of the download. 50 | */ 51 | + (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction completion:(void(^)(NSString *filePath, NSError *error))completion progress:(PFProgressBlock)progress; 52 | 53 | /*! 54 | Asynchronously restore completed transactions for the current user. 55 | Note: This method is only important to developers who want to preserve purchase states across 56 | different installations of the same app. 57 | Only nonconsumable purchases are restored. If observers for the products have been added before 58 | calling this method, invoking the method reruns the application logic associated with the purchase. 59 | */ 60 | + (void)restore; 61 | @end 62 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFPurchaseTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFPurchaseTableViewCell.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 5/21/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFTableViewCell.h" 11 | 12 | typedef enum { 13 | PFPurchaseTableViewCellStateNormal, 14 | PFPurchaseTableViewCellStateDownloading, 15 | PFPurchaseTableViewCellStateDownloaded 16 | } PFPurchaseTableViewCellState; 17 | 18 | @interface PFPurchaseTableViewCell : PFTableViewCell 19 | @property (nonatomic, assign) PFPurchaseTableViewCellState state; 20 | @property (nonatomic, retain, readonly) UILabel *priceLabel; 21 | @property (nonatomic, retain, readonly) UIProgressView *progressView; 22 | @end 23 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFQueryTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFUITableViewController.h 3 | // Posse 4 | // 5 | // Created by James Yu on 11/20/11. 6 | // Copyright (c) 2011 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFQuery.h" 11 | #import "PFTableViewCell.h" 12 | #import "PF_EGORefreshTableHeaderView.h" 13 | 14 | @interface PFQueryTableViewController : UITableViewController 15 | 16 | /*! @name Creating a PFQueryTableViewController */ 17 | 18 | /*! 19 | The designated initializer. 20 | Initializes with a class name of the PFObjects that will be associated with this table. 21 | @param style The UITableViewStyle for the table 22 | @param aClassName The class name of the PFObjects that this table will display 23 | @result The initialized PFQueryTableViewController 24 | */ 25 | - (id)initWithStyle:(UITableViewStyle)style className:(NSString *)aClassName; 26 | 27 | /*! 28 | Initializes with a class name of the PFObjects that will be associated with this table. 29 | @param aClassName The class name of the PFObjects that this table will display 30 | @result The initialized PFQueryTableViewController 31 | */ 32 | - (id)initWithClassName:(NSString *)aClassName; 33 | 34 | /*! @name Configuring Behavior */ 35 | 36 | /// The class of the PFObject this table will use as a datasource 37 | @property (nonatomic, retain) NSString *className; 38 | 39 | /// The key to use to display for the cell text label. This won't apply if you override tableView:cellForRowAtIndexPath:object: 40 | @property (nonatomic, retain) NSString *textKey; 41 | 42 | /// The key to use to display for the cell image view. This won't apply if you override tableView:cellForRowAtIndexPath:object: 43 | @property (nonatomic, retain) NSString *imageKey; 44 | 45 | /// The image to use as a placeholder for the cell images. This won't apply if you override tableView:cellForRowAtIndexPath:object: 46 | @property (nonatomic, retain) UIImage *placeholderImage; 47 | 48 | /// Whether the table should use the default loading view (default:YES) 49 | @property (nonatomic, assign) BOOL loadingViewEnabled; 50 | 51 | /// Whether the table should use the built-in pull-to-refresh feature (default:YES) 52 | @property (nonatomic, assign) BOOL pullToRefreshEnabled; 53 | 54 | /// Whether the table should use the built-in pagination feature (default:YES) 55 | @property (nonatomic, assign) BOOL paginationEnabled; 56 | 57 | /// The number of objects to show per page (default: 25) 58 | @property (nonatomic, assign) NSUInteger objectsPerPage; 59 | 60 | /// Whether the table is actively loading new data from the server 61 | @property (nonatomic, assign) BOOL isLoading; 62 | 63 | /*! @name Responding to Events */ 64 | 65 | /*! 66 | Called when objects have loaded from Parse. If you override this method, you must 67 | call [super objectsDidLoad:] in your implementation. 68 | @param error The Parse error from running the PFQuery, if there was any. 69 | */ 70 | - (void)objectsDidLoad:(NSError *)error; 71 | 72 | /*! 73 | Called when objects will loaded from Parse. If you override this method, you must 74 | call [super objectsWillLoad] in your implementation. 75 | */ 76 | - (void)objectsWillLoad; 77 | 78 | /*! @name Accessing Results */ 79 | 80 | /// The array of PFObjects that is the UITableView data source 81 | @property (nonatomic, retain, readonly) NSArray *objects; 82 | 83 | /*! 84 | Returns an object at a particular indexPath. The default impementation returns 85 | the object at indexPath.row. If you want to return objects in a different 86 | indexPath order, like for sections, override this method. 87 | @param indexPath The indexPath 88 | @result The object at the specified index 89 | */ 90 | - (PFObject *)objectAtIndexPath:(NSIndexPath *)indexPath; 91 | 92 | /*! @name Querying */ 93 | 94 | /*! 95 | Override to construct your own custom PFQuery to get the objects. 96 | @result PFQuery that loadObjects will use to the objects for this table. 97 | */ 98 | - (PFQuery *)queryForTable; 99 | 100 | /*! 101 | Clears the table of all objects. 102 | */ 103 | - (void)clear; 104 | 105 | /*! 106 | Clears the table and loads the first page of objects. 107 | */ 108 | - (void)loadObjects; 109 | 110 | /*! 111 | Loads the objects of the className at the specified page and appends it to the 112 | objects already loaded and refreshes the table. 113 | @param page The page of objects to load. 114 | @param clear Whether to clear the table after receiving the objects. 115 | */ 116 | - (void)loadObjects:(NSInteger)page clear:(BOOL)clear; 117 | 118 | /*! 119 | Loads the next page of objects, appends to table, and refreshes. 120 | */ 121 | - (void)loadNextPage; 122 | 123 | /*! @name Data Source Methods */ 124 | 125 | /*! 126 | Override this method to customize each cell given a PFObject that is loaded. If you 127 | don't override this method, it will use a default style cell and display either 128 | the first data key from the object, or it will display the key as specified 129 | with keyToDisplay. 130 | 131 | The cell should inherit from PFTableViewCell which is a subclass of UITableViewCell. 132 | 133 | @param tableView The table view object associated with this controller. 134 | @param indexPath The indexPath of the cell. 135 | @param object The PFObject that is associated with the cell. 136 | @result The cell that represents this object. 137 | */ 138 | - (PFTableViewCell *)tableView:(UITableView *)tableView 139 | cellForRowAtIndexPath:(NSIndexPath *)indexPath 140 | object:(PFObject *)object; 141 | 142 | /*! 143 | Override this method to customize the cell that allows the user to load the 144 | next page when pagination is turned on. 145 | @param tableView The table view object associated with this controller. 146 | @param indexPath The indexPath of the cell. 147 | @result The cell that allows the user to paginate. 148 | */ 149 | - (PFTableViewCell *)tableView:(UITableView *)tableView cellForNextPageAtIndexPath:(NSIndexPath *)indexPath; 150 | 151 | 152 | @end 153 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFRelation.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFRelation.h 3 | // Parse 4 | // 5 | // Created by Shyam Jayaraman on 5/11/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFObject.h" 11 | #import "PFQuery.h" 12 | 13 | /*! 14 | A class that is used to access all of the children of a many-to-many relationship. Each instance 15 | of PFRelation is associated with a particular parent object and key. 16 | */ 17 | @interface PFRelation : NSObject { 18 | PFObject *parent; 19 | NSString *key; 20 | NSString *targetClass; 21 | } 22 | 23 | @property (nonatomic, retain) NSString *targetClass; 24 | 25 | 26 | #pragma mark Accessing objects 27 | /*! 28 | @return A ParseQuery that can be used to get objects in this relation. 29 | */ 30 | - (PFQuery *)query; 31 | 32 | 33 | #pragma mark Modifying relations 34 | 35 | /*! 36 | Adds a relation to the passed in object. 37 | @param object ParseObject to add relation to. 38 | */ 39 | - (void)addObject:(PFObject *)object; 40 | 41 | /*! 42 | Removes a relation to the passed in object. 43 | @param object ParseObject to add relation to. 44 | */ 45 | - (void)removeObject:(PFObject *)object; 46 | @end 47 | 48 | 49 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFRole.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFRole.h 3 | // Parse 4 | // 5 | // Created by David Poll on 5/17/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFObject.h" 11 | 12 | @class PFQuery; 13 | 14 | /*! 15 | Represents a Role on the Parse server. PFRoles represent groupings 16 | of PFUsers for the purposes of granting permissions (e.g. specifying a 17 | PFACL for a PFObject). Roles are specified by their sets of child users 18 | and child roles, all of which are granted any permissions that the 19 | parent role has.
20 |
21 | Roles must have a name (which cannot be changed after creation of the role), 22 | and must specify an ACL. 23 | */ 24 | @interface PFRole : PFObject 25 | 26 | #pragma mark Creating a New Role 27 | 28 | /** @name Creating a New Role */ 29 | 30 | /*! 31 | Constructs a new PFRole with the given name. If no default ACL has been 32 | specified, you must provide an ACL for the role. 33 | 34 | @param name The name of the Role to create. 35 | */ 36 | - (id)initWithName:(NSString *)name; 37 | 38 | /*! 39 | Constructs a new PFRole with the given name. 40 | 41 | @param name The name of the Role to create. 42 | @param acl The ACL for this role. Roles must have an ACL. 43 | */ 44 | - (id)initWithName:(NSString *)name acl:(PFACL *)acl; 45 | 46 | /*! 47 | Constructs a new PFRole with the given name. If no default ACL has been 48 | specified, you must provide an ACL for the role. 49 | 50 | @param name The name of the Role to create. 51 | */ 52 | + (PFRole *)roleWithName:(NSString *)name; 53 | 54 | /*! 55 | Constructs a new PFRole with the given name. 56 | 57 | @param name The name of the Role to create. 58 | @param acl The ACL for this role. Roles must have an ACL. 59 | */ 60 | + (PFRole *)roleWithName:(NSString *)name acl:(PFACL *)acl; 61 | 62 | #pragma mark - 63 | #pragma mark Role-specific Properties 64 | 65 | /** @name Role-specific Properties */ 66 | 67 | /*! 68 | Gets or sets the name for a role. This value must be set before the role 69 | has been saved to the server, and cannot be set once the role has been 70 | saved.
71 |
72 | A role's name can only contain alphanumeric characters, _, -, and spaces. 73 | */ 74 | @property (nonatomic, copy) NSString *name; 75 | 76 | /*! 77 | Gets the PFRelation for the PFUsers that are direct children of this role. 78 | These users are granted any privileges that this role has been granted 79 | (e.g. read or write access through ACLs). You can add or remove users from 80 | the role through this relation. 81 | 82 | @return the relation for the users belonging to this role. 83 | */ 84 | - (PFRelation *)users; 85 | 86 | /*! 87 | Gets the PFRelation for the PFRoles that are direct children of this role. 88 | These roles' users are granted any privileges that this role has been granted 89 | (e.g. read or write access through ACLs). You can add or remove child roles 90 | from this role through this relation. 91 | 92 | @return the relation for the roles belonging to this role. 93 | */ 94 | - (PFRelation *)roles; 95 | 96 | #pragma mark - 97 | #pragma mark Querying for Roles 98 | 99 | /** @name Querying for Roles */ 100 | + (PFQuery *)query; 101 | 102 | @end 103 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFSignUpView.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFLogInView.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 3/9/12. 6 | // Copyright (c) 2012. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum { 12 | PFSignUpFieldsUsernameAndPassword = 0, 13 | PFSignUpFieldsEmail = 1 << 0, 14 | PFSignUpFieldsAdditional = 1 << 1, // this field can be used for something else 15 | PFSignUpFieldsSignUpButton = 1 << 2, 16 | PFSignUpFieldsDismissButton = 1 << 3, 17 | PFSignUpFieldsDefault = PFSignUpFieldsUsernameAndPassword | PFSignUpFieldsEmail | PFSignUpFieldsSignUpButton | PFSignUpFieldsDismissButton 18 | } PFSignUpFields; 19 | 20 | /*! 21 | The class provides a standard sign up interface for authenticating a PFUser. 22 | */ 23 | @interface PFSignUpView : UIScrollView 24 | 25 | /*! @name Creating Sign Up View */ 26 | /*! 27 | Initializes the view with the specified sign up elements. 28 | @param fields A bitmask specifying the sign up elements which are enabled in the view 29 | */ 30 | - (id)initWithFields:(PFSignUpFields) fields; 31 | 32 | /*! @name Customizing the Logo */ 33 | 34 | /// The logo. By default, it is the Parse logo. 35 | @property (nonatomic, retain) UIView *logo; 36 | 37 | /*! @name Accessing Sign Up Elements */ 38 | 39 | /// The bitmask which specifies the enabled sign up elements in the view 40 | @property (nonatomic, readonly, assign) PFSignUpFields fields; 41 | 42 | /// The username text field. 43 | @property (nonatomic, readonly, retain) UITextField *usernameField; 44 | 45 | /// The password text field. 46 | @property (nonatomic, readonly, retain) UITextField *passwordField; 47 | 48 | /// The email text field. It is nil if the element is not enabled. 49 | @property (nonatomic, readonly, retain) UITextField *emailField; 50 | 51 | /// The additional text field. It is nil if the element is not enabled. 52 | /// This field is intended to be customized. 53 | @property (nonatomic, readonly, retain) UITextField *additionalField; 54 | 55 | /// The sign up button. It is nil if the element is not enabled. 56 | @property (nonatomic, readonly, retain) UIButton *signUpButton; 57 | 58 | /// The dismiss button. It is nil if the element is not enabled. 59 | @property (nonatomic, readonly, retain) UIButton *dismissButton; 60 | @end 61 | 62 | 63 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFSignUpViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFLogInViewController.h 3 | // Parse 4 | // 5 | // Created by Andrew Wang on 3/8/12. 6 | // Copyright (c) 2012. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFSignUpView.h" 11 | #import "PFUser.h" 12 | 13 | @protocol PFSignUpViewControllerDelegate; 14 | 15 | /*! 16 | The class that presents and manages a standard authentication interface for signing up a PFUser. 17 | */ 18 | @interface PFSignUpViewController : UIViewController 19 | 20 | /*! @name Configuring Sign Up Elements */ 21 | 22 | /// 23 | /*! 24 | A bitmask specifying the log in elements which are enabled in the view. 25 | enum { 26 | PFSignUpFieldsUsernameAndPassword = 0, 27 | PFSignUpFieldsEmail = 1 << 0, 28 | PFSignUpFieldsAdditional = 1 << 1, // this field can be used for something else 29 | PFSignUpFieldsSignUpButton = 1 << 2, 30 | PFSignUpFieldsDismissButton = 1 << 3, 31 | PFSignUpFieldsDefault = PFSignUpFieldsUsernameAndPassword | PFSignUpFieldsEmail | PFSignUpFieldsSignUpButton | PFSignUpFieldsDismissButton 32 | }; 33 | */ 34 | @property (nonatomic) PFSignUpFields fields; 35 | 36 | /// The sign up view. It contains all the enabled log in elements. 37 | @property (nonatomic, readonly, retain) PFSignUpView *signUpView; 38 | 39 | /*! @name Configuring Sign Up Behaviors */ 40 | /// The delegate that responds to the control events of PFSignUpViewController. 41 | @property (nonatomic, assign) id delegate; 42 | 43 | @end 44 | 45 | /*! @name Notifications */ 46 | /// The notification is posted immediately after the sign up succeeds. 47 | extern NSString *const PFSignUpSuccessNotification; 48 | 49 | /// The notification is posted immediately after the sign up fails. 50 | /// If the delegate prevents the sign up to start, the notification is not sent. 51 | extern NSString *const PFSignUpFailureNotification; 52 | 53 | /// The notification is posted immediately after the user cancels sign up. 54 | extern NSString *const PFSignUpCancelNotification; 55 | 56 | /*! 57 | The protocol defines methods a delegate of a PFSignUpViewController should implement. 58 | All methods of the protocol are optional. 59 | */ 60 | @protocol PFSignUpViewControllerDelegate 61 | @optional 62 | 63 | /*! @name Customizing Behavior */ 64 | 65 | /*! 66 | Sent to the delegate to determine whether the sign up request should be submitted to the server. 67 | @param info a dictionary which contains all sign up information that the user entered. 68 | @result a boolean indicating whether the sign up should proceed. 69 | */ 70 | - (BOOL)signUpViewController:(PFSignUpViewController *)signUpController shouldBeginSignUp:(NSDictionary *)info; 71 | 72 | /// Sent to the delegate when a PFUser is signed up. 73 | - (void)signUpViewController:(PFSignUpViewController *)signUpController didSignUpUser:(PFUser *)user; 74 | 75 | /// Sent to the delegate when the sign up attempt fails. 76 | - (void)signUpViewController:(PFSignUpViewController *)signUpController didFailToSignUpWithError:(NSError *)error; 77 | 78 | /// Sent to the delegate when the sign up screen is dismissed. 79 | - (void)signUpViewControllerDidCancelSignUp:(PFSignUpViewController *)signUpController; 80 | @end 81 | 82 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFImageViewCell.h 3 | // Parse 4 | // 5 | // Created by Qian Wang on 5/16/12. 6 | // Copyright (c) 2012 Parse Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFImageView.h" 11 | 12 | /*! 13 | The PFTableViewCell is a table view cell which can download and display remote images stored on Parse's server. When used in a PFQueryTableViewController, the downloading and displaying of the remote images are automatically managed by the PFQueryTableViewController. 14 | */ 15 | @interface PFTableViewCell : UITableViewCell 16 | 17 | /// The imageView of the table view cell. PFImageView supports remote image downloading. 18 | @property (nonatomic, readonly, retain) PFImageView *imageView; 19 | @end 20 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PFTwitterUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // PFTwitterUtils.h 3 | // Copyright (c) 2012 Parse, Inc. All rights reserved. 4 | // 5 | 6 | #import 7 | #import "PF_Twitter.h" 8 | #import "PFUser.h" 9 | #import "PFConstants.h" 10 | 11 | /*! 12 | Provides utility functions for working with Twitter in a Parse application. 13 | */ 14 | @interface PFTwitterUtils : NSObject 15 | 16 | /** @name Interacting With Twitter */ 17 | 18 | /*! 19 | Gets the instance of the Twitter object that Parse uses. 20 | @result The Twitter instance. 21 | */ 22 | + (PF_Twitter *)twitter; 23 | 24 | /*! 25 | Initializes the Twitter singleton. You must invoke this in order to use the Twitter functionality in Parse. 26 | @param consumerKey Your Twitter application's consumer key. 27 | @param consumerSecret Your Twitter application's consumer secret. 28 | */ 29 | + (void)initializeWithConsumerKey:(NSString *)consumerKey 30 | consumerSecret:(NSString *)consumerSecret; 31 | 32 | /*! 33 | Whether the user has their account linked to Twitter. 34 | @param user User to check for a Twitter link. The user must be logged in on this device. 35 | @result True if the user has their account linked to Twitter. 36 | */ 37 | + (BOOL)isLinkedWithUser:(PFUser *)user; 38 | 39 | /** @name Logging In & Creating Twitter-Linked Users */ 40 | 41 | /*! 42 | Logs in a user using Twitter. This method delegates to Twitter to authenticate 43 | the user, and then automatically logs in (or creates, in the case where it is a new user) 44 | a PFUser. 45 | @param block The block to execute. The block should have the following argument signature: 46 | (PFUser *user, NSError *error) 47 | */ 48 | + (void)logInWithBlock:(PFUserResultBlock)block; 49 | 50 | /*! 51 | Logs in a user using Twitter. This method delegates to Twitter to authenticate 52 | the user, and then automatically logs in (or creates, in the case where it is a new user) 53 | a PFUser. The selector for the callback should look like: (PFUser *)user error:(NSError **)error 54 | @param target Target object for the selector 55 | @param selector The selector that will be called when the asynchrounous request is complete. 56 | */ 57 | + (void)logInWithTarget:(id)target selector:(SEL)selector; 58 | 59 | /*! 60 | Logs in a user using Twitter. Allows you to handle user login to Twitter, then provide authentication 61 | data to log in (or create, in the case where it is a new user) the PFUser. 62 | @param twitterId The id of the Twitter user being linked 63 | @param screenName The screen name of the Twitter user being linked 64 | @param authToken The auth token for the user's session 65 | @param authTokenSecret The auth token secret for the user's session 66 | @param block The block to execute. The block should have the following argument signature: 67 | (PFUser *user, NSError *error) 68 | */ 69 | + (void)logInWithTwitterId:(NSString *)twitterId 70 | screenName:(NSString *)screenName 71 | authToken:(NSString *)authToken 72 | authTokenSecret:(NSString *)authTokenSecret 73 | block:(PFUserResultBlock)block; 74 | 75 | /*! 76 | Logs in a user using Twitter. Allows you to handle user login to Twitter, then provide authentication 77 | data to log in (or create, in the case where it is a new user) the PFUser. 78 | The selector for the callback should look like: (PFUser *)user error:(NSError *)error 79 | @param twitterId The id of the Twitter user being linked 80 | @param screenName The screen name of the Twitter user being linked 81 | @param authToken The auth token for the user's session 82 | @param authTokenSecret The auth token secret for the user's session 83 | @param target Target object for the selector 84 | @param selector The selector that will be called when the asynchronous request is complete 85 | */ 86 | + (void)logInWithTwitterId:(NSString *)twitterId 87 | screenName:(NSString *)screenName 88 | authToken:(NSString *)authToken 89 | authTokenSecret:(NSString *)authTokenSecret 90 | target:(id)target 91 | selector:(SEL)selector; 92 | 93 | /** @name Linking Users with Twitter */ 94 | 95 | /*! 96 | Links Twitter to an existing PFUser. This method delegates to Twitter to authenticate 97 | the user, and then automatically links the account to the PFUser. 98 | @param user User to link to Twitter. 99 | */ 100 | + (void)linkUser:(PFUser *)user; 101 | 102 | /*! 103 | Links Twitter to an existing PFUser. This method delegates to Twitter to authenticate 104 | the user, and then automatically links the account to the PFUser. 105 | @param user User to link to Twitter. 106 | @param block The block to execute. The block should have the following argument signature: 107 | (BOOL *success, NSError *error) 108 | */ 109 | + (void)linkUser:(PFUser *)user block:(PFBooleanResultBlock)block; 110 | 111 | /*! 112 | Links Twitter to an existing PFUser. This method delegates to Twitter to authenticate 113 | the user, and then automatically links the account to the PFUser. 114 | The selector for the callback should look like: (NSNumber *)result error:(NSError *)error 115 | @param user User to link to Twitter. 116 | @param target Target object for the selector 117 | @param selector The selector that will be called when the asynchrounous request is complete. 118 | */ 119 | + (void)linkUser:(PFUser *)user 120 | target:(id)target 121 | selector:(SEL)selector; 122 | 123 | /*! 124 | Links Twitter to an existing PFUser. Allows you to handle user login to Twitter, then provide authentication 125 | data to link the account to the PFUser. 126 | @param user User to link to Twitter. 127 | @param twitterId The id of the Twitter user being linked 128 | @param screenName The screen name of the Twitter user being linked 129 | @param authToken The auth token for the user's session 130 | @param authTokenSecret The auth token secret for the user's session 131 | @param block The block to execute. The block should have the following argument signature: 132 | (BOOL *success, NSError *error) 133 | */ 134 | + (void)linkUser:(PFUser *)user 135 | twitterId:(NSString *)twitterId 136 | screenName:(NSString *)screenName 137 | authToken:(NSString *)authToken 138 | authTokenSecret:(NSString *)authTokenSecret 139 | block:(PFBooleanResultBlock)block; 140 | 141 | /*! 142 | Links Twitter to an existing PFUser. Allows you to handle user login to Twitter, then provide authentication 143 | data to link the account to the PFUser. 144 | The selector for the callback should look like: (NSNumber *)result error:(NSError *)error 145 | @param user User to link to Twitter. 146 | @param twitterId The id of the Twitter user being linked 147 | @param screenName The screen name of the Twitter user being linked 148 | @param authToken The auth token for the user's session 149 | @param authTokenSecret The auth token secret for the user's session 150 | @param target Target object for the selector 151 | @param selector The selector that will be called when the asynchronous request is complete 152 | */ 153 | + (void)linkUser:(PFUser *)user 154 | twitterId:(NSString *)twitterId 155 | screenName:(NSString *)screenName 156 | authToken:(NSString *)authToken 157 | authTokenSecret:(NSString *)authTokenSecret 158 | target:(id)target 159 | selector:(SEL)selector; 160 | 161 | /** @name Unlinking Users from Twitter */ 162 | 163 | /*! 164 | Unlinks the PFUser from a Twitter account. 165 | @param user User to unlink from Twitter. 166 | @result Returns true if the unlink was successful. 167 | */ 168 | + (BOOL)unlinkUser:(PFUser *)user; 169 | 170 | /*! 171 | Unlinks the PFUser from a Twitter account. 172 | @param user User to unlink from Twitter. 173 | @param error Error object to set on error. 174 | @result Returns true if the unlink was successful. 175 | */ 176 | + (BOOL)unlinkUser:(PFUser *)user error:(NSError **)error; 177 | 178 | /*! 179 | Makes an asynchronous request to unlink a user from a Twitter account. 180 | @param user User to unlink from Twitter. 181 | */ 182 | + (void)unlinkUserInBackground:(PFUser *)user; 183 | 184 | /*! 185 | Makes an asynchronous request to unlink a user from a Twitter account. 186 | @param user User to unlink from Twitter. 187 | @param block The block to execute. The block should have the following argument signature: (BOOL succeeded, NSError *error) 188 | */ 189 | + (void)unlinkUserInBackground:(PFUser *)user 190 | block:(PFBooleanResultBlock)block; 191 | 192 | /*! 193 | Makes an asynchronous request to unlink a user from a Twitter account. 194 | @param user User to unlink from Twitter 195 | @param target Target object for the selector 196 | @param selector The selector that will be called when the asynchrounous request is complete. 197 | */ 198 | + (void)unlinkUserInBackground:(PFUser *)user 199 | target:(id)target selector:(SEL)selector; 200 | 201 | @end 202 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_EGORefreshTableHeaderView.h: -------------------------------------------------------------------------------- 1 | // 2 | // EGORefreshTableHeaderView.h 3 | // Demo 4 | // 5 | // Created by Devin Doty on 10/14/09October14. 6 | // Copyright 2009 enormego. All rights reserved. 7 | // 8 | // Permission is hereby granted, free of charge, to any person obtaining a copy 9 | // of this software and associated documentation files (the "Software"), to deal 10 | // in the Software without restriction, including without limitation the rights 11 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | // copies of the Software, and to permit persons to whom the Software is 13 | // furnished to do so, subject to the following conditions: 14 | // 15 | // The above copyright notice and this permission notice shall be included in 16 | // all copies or substantial portions of the Software. 17 | // 18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | // THE SOFTWARE. 25 | // 26 | 27 | #import 28 | 29 | @protocol PF_EGORefreshTableHeaderDelegate; 30 | @interface PF_EGORefreshTableHeaderView : UIView 31 | 32 | @property (nonatomic,assign) id delegate; 33 | @property (nonatomic, retain, readonly) UILabel *lastUpdatedLabel; 34 | @property (nonatomic, retain, readonly) UILabel *statusLabel; 35 | @property (nonatomic, retain, readonly) UIActivityIndicatorView *activityView; 36 | 37 | - (void)refreshLastUpdatedDate; 38 | - (void)egoRefreshScrollViewDidScroll:(UIScrollView *)scrollView; 39 | - (void)egoRefreshScrollViewDidEndDragging:(UIScrollView *)scrollView; 40 | - (void)egoRefreshScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView; 41 | 42 | @end 43 | 44 | @protocol PF_EGORefreshTableHeaderDelegate 45 | - (void)egoRefreshTableHeaderDidTriggerRefresh:(PF_EGORefreshTableHeaderView*)view; 46 | - (BOOL)egoRefreshTableHeaderDataSourceIsLoading:(PF_EGORefreshTableHeaderView*)view; 47 | @optional 48 | - (NSDate*)egoRefreshTableHeaderDataSourceLastUpdated:(PF_EGORefreshTableHeaderView*)view; 49 | @end 50 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBCacheDescriptor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBSession.h" 19 | 20 | /*! 21 | @class 22 | 23 | @abstract 24 | Base class from which CacheDescriptors derive, provides a method to fetch data for later use 25 | 26 | @discussion 27 | Cache descriptors allow your application to specify the arguments that will be 28 | later used with another object, such as the PF_FBFriendPickerViewController. By using a cache descriptor 29 | instance, an application can choose to fetch data ahead of the point in time where the data is needed. 30 | */ 31 | @interface PF_FBCacheDescriptor : NSObject 32 | 33 | /*! 34 | @method 35 | @abstract 36 | Fetches and caches the data described by the cache descriptor instance, for the given session. 37 | 38 | @param session the to use for fetching data 39 | */ 40 | - (void)prefetchAndCacheForSession:(PF_FBSession*)session; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBCacheIndex.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | 20 | @class PF_FBCacheIndex; 21 | 22 | @protocol PF_FBCacheIndexFileDelegate 23 | 24 | @required 25 | // Informs the disk cache to write contents to the specified file. The callback 26 | // should not block and should be executed in order. 27 | - (void) cacheIndex:(PF_FBCacheIndex*)cacheIndex 28 | writeFileWithName:(NSString*)name 29 | data:(NSData*)data; 30 | // Informs the disk cache to delete the specified file. 31 | - (void) cacheIndex:(PF_FBCacheIndex*)cacheIndex 32 | deleteFileWithName:(NSString*)name; 33 | 34 | @end 35 | 36 | @interface PF_FBCacheIndex : NSObject 37 | { 38 | @private 39 | id _delegate; 40 | 41 | NSCache* _cachedEntries; 42 | 43 | NSUInteger _currentDiskUsage; 44 | NSUInteger _diskCapacity; 45 | 46 | sqlite3* _database; 47 | sqlite3_stmt* _insertStatement; 48 | sqlite3_stmt* _removeByKeyStatement; 49 | sqlite3_stmt* _selectByKeyStatement; 50 | sqlite3_stmt* _selectByKeyFragmentStatement; 51 | sqlite3_stmt* _selectExcludingKeyFragmentStatement; 52 | sqlite3_stmt* _trimStatement; 53 | sqlite3_stmt* _updateStatement; 54 | 55 | dispatch_queue_t _databaseQueue; 56 | } 57 | 58 | - (id)initWithCacheFolder:(NSString*)folderPath; 59 | 60 | @property (assign) id delegate; 61 | @property (nonatomic, readonly) NSUInteger currentDiskUsage; 62 | @property (nonatomic, assign) NSUInteger diskCapacity; 63 | @property (nonatomic, assign) NSUInteger entryCacheCountLimit; 64 | @property (nonatomic, readonly) dispatch_queue_t databaseQueue; 65 | 66 | - (NSString*)fileNameForKey:(NSString*)key; 67 | - (NSString*)storeFileForKey:(NSString*)key withData:(NSData*)data; 68 | - (void)removeEntryForKey:(NSString*)key; 69 | - (void)removeEntries:(NSString*)keyFragment excludingFragment:(BOOL)exclude; 70 | 71 | @end 72 | 73 | 74 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBConnect.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #include "PF_Facebook.h" 19 | #include "PF_FBDialog.h" 20 | #include "PF_FBLoginDialog.h" 21 | #include "PF_FBRequest.h" -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBContentLink.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface PF_FBContentLink : NSObject 20 | 21 | @property (readonly, copy) NSURL *targetURL; 22 | @property (readonly, copy) NSArray *actionTypes; 23 | @property (readonly, copy) NSString *source; 24 | @property (readonly, copy) NSArray *ref; 25 | @property (readonly, copy) NSDictionary *originalQueryParameters; 26 | 27 | - (id)initWithURL:(NSURL*)url; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBDataDiskCache.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | #import "PF_FBSession.h" 20 | 21 | @class PF_FBCacheIndex; 22 | 23 | // This is a Disk based cache used internally by Facebook SDK 24 | @interface PF_FBDataDiskCache : NSObject 25 | { 26 | @private 27 | NSCache* _inMemoryCache; 28 | PF_FBCacheIndex* _cacheIndex; 29 | NSString* _dataCachePath; 30 | 31 | dispatch_queue_t _fileQueue; 32 | } 33 | 34 | + (PF_FBDataDiskCache*)sharedCache; 35 | 36 | @property (nonatomic, assign) NSUInteger cacheSizeMemory; 37 | @property (nonatomic, readonly) dispatch_queue_t fileQueue; 38 | 39 | - (NSData*)dataForURL:(NSURL*)dataURL; 40 | - (void)setData:(NSData*)data forURL:(NSURL*)url; 41 | - (void)removeDataForUrl:(NSURL*)url; 42 | - (void)removeDataForSession:(PF_FBSession*)session; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | 20 | @protocol PF_FBDialogDelegate; 21 | @class PF_FBFrictionlessRequestSettings; 22 | 23 | /** 24 | * Do not use this interface directly, instead, use dialog in Facebook.h 25 | * 26 | * Facebook dialog interface for start the facebook webView UIServer Dialog. 27 | */ 28 | 29 | @interface PF_FBDialog : UIView { 30 | id _delegate; 31 | NSMutableDictionary *_params; 32 | NSString * _serverURL; 33 | NSURL* _loadingURL; 34 | UIWebView* _webView; 35 | UIActivityIndicatorView* _spinner; 36 | UIButton* _closeButton; 37 | UIInterfaceOrientation _orientation; 38 | BOOL _showingKeyboard; 39 | BOOL _isViewInvisible; 40 | PF_FBFrictionlessRequestSettings* _frictionlessSettings; 41 | 42 | // Ensures that UI elements behind the dialog are disabled. 43 | UIView* _modalBackgroundView; 44 | } 45 | 46 | /** 47 | * The delegate. 48 | */ 49 | @property(nonatomic,assign) id delegate; 50 | 51 | /** 52 | * The parameters. 53 | */ 54 | @property(nonatomic, retain) NSMutableDictionary* params; 55 | 56 | - (NSString *) getStringFromUrl: (NSString*) url needle:(NSString *) needle; 57 | 58 | - (id)initWithURL: (NSString *) loadingURL 59 | params: (NSMutableDictionary *) params 60 | isViewInvisible: (BOOL) isViewInvisible 61 | frictionlessSettings: (PF_FBFrictionlessRequestSettings *) frictionlessSettings 62 | delegate: (id ) delegate; 63 | 64 | /** 65 | * Displays the view with an animation. 66 | * 67 | * The view will be added to the top of the current key window. 68 | */ 69 | - (void)show; 70 | 71 | /** 72 | * Displays the first page of the dialog. 73 | * 74 | * Do not ever call this directly. It is intended to be overriden by subclasses. 75 | */ 76 | - (void)load; 77 | 78 | /** 79 | * Displays a URL in the dialog. 80 | */ 81 | - (void)loadURL:(NSString*)url 82 | get:(NSDictionary*)getParams; 83 | 84 | /** 85 | * Hides the view and notifies delegates of success or cancellation. 86 | */ 87 | - (void)dismissWithSuccess:(BOOL)success animated:(BOOL)animated; 88 | 89 | /** 90 | * Hides the view and notifies delegates of an error. 91 | */ 92 | - (void)dismissWithError:(NSError*)error animated:(BOOL)animated; 93 | 94 | /** 95 | * Subclasses may override to perform actions just prior to showing the dialog. 96 | */ 97 | - (void)dialogWillAppear; 98 | 99 | /** 100 | * Subclasses may override to perform actions just after the dialog is hidden. 101 | */ 102 | - (void)dialogWillDisappear; 103 | 104 | /** 105 | * Subclasses should override to process data returned from the server in a 'fbconnect' url. 106 | * 107 | * Implementations must call dismissWithSuccess:YES at some point to hide the dialog. 108 | */ 109 | - (void)dialogDidSucceed:(NSURL *)url; 110 | 111 | /** 112 | * Subclasses should override to process data returned from the server in a 'fbconnect' url. 113 | * 114 | * Implementations must call dismissWithSuccess:YES at some point to hide the dialog. 115 | */ 116 | - (void)dialogDidCancel:(NSURL *)url; 117 | @end 118 | 119 | /////////////////////////////////////////////////////////////////////////////////////////////////// 120 | 121 | /* 122 | *Your application should implement this delegate 123 | */ 124 | @protocol PF_FBDialogDelegate 125 | 126 | @optional 127 | 128 | /** 129 | * Called when the dialog succeeds and is about to be dismissed. 130 | */ 131 | - (void)dialogDidComplete:(PF_FBDialog *)dialog; 132 | 133 | /** 134 | * Called when the dialog succeeds with a returning url. 135 | */ 136 | - (void)dialogCompleteWithUrl:(NSURL *)url; 137 | 138 | /** 139 | * Called when the dialog get canceled by the user. 140 | */ 141 | - (void)dialogDidNotCompleteWithUrl:(NSURL *)url; 142 | 143 | /** 144 | * Called when the dialog is cancelled and is about to be dismissed. 145 | */ 146 | - (void)dialogDidNotComplete:(PF_FBDialog *)dialog; 147 | 148 | /** 149 | * Called when dialog failed to load due to an error. 150 | */ 151 | - (void)dialog:(PF_FBDialog*)dialog didFailWithError:(NSError *)error; 152 | 153 | /** 154 | * Asks if a link touched by a user should be opened in an external browser. 155 | * 156 | * If a user touches a link, the default behavior is to open the link in the Safari browser, 157 | * which will cause your app to quit. You may want to prevent this from happening, open the link 158 | * in your own internal browser, or perhaps warn the user that they are about to leave your app. 159 | * If so, implement this method on your delegate and return NO. If you warn the user, you 160 | * should hold onto the URL and once you have received their acknowledgement open the URL yourself 161 | * using [[UIApplication sharedApplication] openURL:]. 162 | */ 163 | - (BOOL)dialog:(PF_FBDialog*)dialog shouldOpenURLInExternalBrowser:(NSURL *)url; 164 | 165 | @end 166 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | /// The error domain of all error codes returned by the Facebook SDK 20 | extern NSString *const PF_FacebookSDKDomain; 21 | 22 | // ---------------------------------------------------------------------------- 23 | // Keys in the userInfo NSDictionary of NSError where you can find additional 24 | // information about the error. All are optional. 25 | 26 | /// The key for an inner NSError. 27 | extern NSString *const PF_FBErrorInnerErrorKey; 28 | 29 | /// The key for parsed JSON response from the server. In case of a batch, 30 | /// includes the JSON for a single PF_FBRequest. 31 | extern NSString *const PF_FBErrorParsedJSONResponseKey; 32 | 33 | /// The key for HTTP status code. 34 | extern NSString *const PF_FBErrorHTTPStatusCodeKey; 35 | 36 | // ---------------------------------------------------------------------------- 37 | /*! 38 | @abstract Error codes returned by the Facebook SDK in NSError. 39 | 40 | @discussion 41 | These are valid only in the scope of FacebookSDKDomain. 42 | */ 43 | typedef enum PF_FBErrorCode { 44 | /*! 45 | Like nil for PF_FBErrorCode values, represents an error code that 46 | has not been initialized yet. 47 | */ 48 | PF_FBErrorInvalid = 0, 49 | 50 | /// The operation failed because it was cancelled. 51 | PF_FBErrorOperationCancelled, 52 | 53 | /// A login attempt failed 54 | PF_FBErrorLoginFailedOrCancelled, 55 | 56 | /// The graph API returned an error for this operation. 57 | PF_FBErrorRequestConnectionApi, 58 | 59 | /*! 60 | The operation failed because the server returned an unexpected 61 | response. You can get this error if you are not using the most 62 | recent SDK, or if you set your application's migration settings 63 | incorrectly for the version of the SDK you are using. 64 | 65 | If this occurs on the current SDK with proper app migration 66 | settings, you may need to try changing to one request per batch. 67 | */ 68 | PF_FBErrorProtocolMismatch, 69 | 70 | /// Non-success HTTP status code was returned from the operation. 71 | PF_FBErrorHTTPError, 72 | 73 | /// An endpoint that returns a binary response was used with PF_FBRequestConnection; 74 | /// endpoints that return image/jpg, etc. should be accessed using NSURLRequest 75 | PF_FBErrorNonTextMimeTypeReturned, 76 | 77 | // An error occurred while trying to display a native dialog 78 | PF_FBErrorNativeDialog, 79 | } PF_FBErrorCode; 80 | 81 | /*! 82 | The key in the userInfo NSDictionary of NSError where you can find 83 | the inner NSError (if any). 84 | */ 85 | extern NSString *const PF_FBErrorInnerErrorKey; 86 | 87 | /// The NSError key used by session to capture login failure reason 88 | extern NSString *const PF_FBErrorLoginFailedReason; 89 | 90 | /// the NSError key used by session to capture login failure error code 91 | extern NSString *const PF_FBErrorLoginFailedOriginalErrorCode; 92 | 93 | /// used by session when an inline dialog fails 94 | extern NSString *const PF_FBErrorLoginFailedReasonInlineCancelledValue; 95 | extern NSString *const PF_FBErrorLoginFailedReasonInlineNotCancelledValue; 96 | extern NSString *const PF_FBErrorLoginFailedReasonUnitTestResponseUnrecognized; 97 | 98 | /// used by session when a reauthorize fails 99 | extern NSString *const PF_FBErrorReauthorizeFailedReasonSessionClosed; 100 | extern NSString *const PF_FBErrorReauthorizeFailedReasonUserCancelled; 101 | extern NSString *const PF_FBErrorReauthorizeFailedReasonWrongUser; 102 | 103 | /// The key to retrieve the reason for a native dialog error 104 | extern NSString *const PF_FBErrorNativeDialogReasonKey; 105 | 106 | /// indicates that a native dialog is not supported in the current OS 107 | extern NSString *const PF_FBErrorNativeDialogNotSupported; 108 | /// indicates that a native dialog can't be displayed because it is not appropriate for the current session 109 | extern NSString *const PF_FBErrorNativeDialogInvalidForSession; 110 | /// indicates that a native dialog can't be displayed for some other reason 111 | extern NSString *const PF_FBErrorNativeDialogCantBeDisplayed; 112 | 113 | // Exception strings raised by the Facebook SDK 114 | 115 | /*! 116 | This exception is raised by methods in the Facebook SDK to indicate 117 | that an attempted operation is invalid 118 | */ 119 | extern NSString *const PF_FBInvalidOperationException; 120 | 121 | // Facebook SDK also raises exceptions the following common exceptions: 122 | // NSInvalidArgumentException 123 | 124 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBFrictionlessRequestSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @class PF_Facebook; 20 | 21 | /** 22 | * Do not use this interface directly, instead, use methods in Facebook.h 23 | * 24 | * Handles frictionless interaction and recipient-caching by the SDK, 25 | * see https://developers.facebook.com/docs/reference/dialogs/requests/ 26 | */ 27 | @interface PF_FBFrictionlessRequestSettings : NSObject { 28 | @private 29 | NSArray* _allowedRecipients; 30 | PF_FBRequest* _activeRequest; 31 | BOOL _enabled; 32 | } 33 | 34 | /** 35 | * BOOL indicating whether frictionless request sending has been enabled 36 | */ 37 | @property(nonatomic, readonly) BOOL enabled; 38 | 39 | /** 40 | * Enable frictionless request sending by the sdk; this means: 41 | * 1. query and cache the current set of frictionless recipients 42 | * 2. flag other facets of the sdk to behave in a frictionless way 43 | */ 44 | - (void)enableWithFacebook:(PF_Facebook*)facebook; 45 | 46 | /** 47 | * Reload recipient cache; called by the sdk to keep the cache fresh; 48 | * method makes graph request: me/apprequestformerrecipients 49 | */ 50 | - (void)reloadRecipientCacheWithFacebook:(PF_Facebook*)facebook; 51 | 52 | /** 53 | * Update the recipient cache; called by the sdk to keep the cache fresh; 54 | */ 55 | - (void)updateRecipientCacheWithRecipients:(NSArray*)ids; 56 | 57 | /** 58 | * Given an fbID for a user, indicates whether user is enabled for 59 | * frictionless calls 60 | */ 61 | - (BOOL)isFrictionlessEnabledForRecipient:(id)fbid; 62 | 63 | /** 64 | * Given an array of user fbIDs, indicates whether they are enabled for 65 | * frictionless calls 66 | */ 67 | - (BOOL)isFrictionlessEnabledForRecipients:(NSArray*)fbids; 68 | 69 | /** 70 | * init the frictionless cache object 71 | */ 72 | - (id)init; 73 | 74 | @end 75 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBFriendPickerCacheDescriptor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBCacheDescriptor.h" 19 | 20 | /* 21 | @class 22 | 23 | @abstract 24 | Represents the data needed by an PF_FBFriendPickerViewController, in order to construct 25 | the necessary request to populate the view; instances of PF_FBFriendPickerCacheDescriptor 26 | are used to fetch data ahead of the point when the data is used to populate a display. 27 | 28 | @discussion 29 | A common use of an PF_FBFriendPickerCacheDescriptor instance, is to allocate an instance 30 | at the point when a session is opened, and then call prefetchAndCacheForSession. This 31 | causes the API to fetch and cache the data needed by the PF_FBFriendPickerViewController. 32 | If at some point the user goes to select friends, the PF_FBFriendPickerViewController 33 | will first check the cache for a copy of the friends list, and then after displaying 34 | whatever cached data is available, then it will fetch a fresh copy of the friends list. 35 | 36 | @unsorted 37 | */ 38 | @interface PF_FBFriendPickerCacheDescriptor : PF_FBCacheDescriptor 39 | 40 | /* 41 | @method 42 | 43 | @abstract 44 | Initializes an instance with default values for populating 45 | a PF_FBFriendPickerViewController, at some later point. 46 | */ 47 | - (id)init; 48 | 49 | /* 50 | @method 51 | 52 | @abstract 53 | Initializes an instance specifying the userID to use for populating 54 | a PF_FBFriendPickerViewController, at some later point. 55 | */ 56 | - (id)initWithUserID:(NSString*)userID; 57 | 58 | /* 59 | @method 60 | 61 | @abstract 62 | Initializes an instance specifying the fields to use for populating 63 | a PF_FBFriendPickerViewController, at some later point. 64 | */ 65 | - (id)initWithFieldsForRequest:(NSSet*)fieldsForRequest; 66 | 67 | /* 68 | @method 69 | 70 | @abstract 71 | Initializes an instance specifying the userID and fields to use for populating 72 | a PF_FBFriendPickerViewController, at some later point. 73 | 74 | @param userID fbid of the user whose friends we wish to display; nil='me' 75 | @param fieldsForRequest set of additional fields to include in request for friends 76 | */ 77 | - (id)initWithUserID:(NSString*)userID fieldsForRequest:(NSSet*)fieldsForRequest; 78 | 79 | /* 80 | @abstract 81 | Fields to use when fetching data for the view 82 | */ 83 | @property (nonatomic, readonly, copy) NSSet *fieldsForRequest; 84 | 85 | /* 86 | @abstract 87 | Indicates the fbid of the user whose friends are being viewed 88 | */ 89 | @property (nonatomic, readonly, copy) NSString *userID; 90 | 91 | @end 92 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBFriendPickerViewController+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBFriendPickerViewController.h" 19 | #import "PF_FBRequest.h" 20 | #import "PF_FBGraphObjectTableDataSource.h" 21 | #import "PF_FBSession.h" 22 | 23 | // This is the cache identity used by both the view controller and cache descriptor objects 24 | extern NSString *const PF_FBFriendPickerCacheIdentity; 25 | 26 | @interface PF_FBFriendPickerViewController (Internal) 27 | 28 | + (PF_FBRequest*)requestWithUserID:(NSString*)userID 29 | fields:(NSSet*)fields 30 | dataSource:(PF_FBGraphObjectTableDataSource*)datasource 31 | session:(PF_FBSession*)session; 32 | 33 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphLocation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphObject.h" 19 | 20 | /*! 21 | @protocol 22 | 23 | @abstract 24 | The `PF_FBGraphLocation` protocol enables typed access to the `location` property 25 | of a Facebook place object. 26 | 27 | 28 | @discussion 29 | The `PF_FBGraphLocation` protocol represents the most commonly used properties of a 30 | location object. It may be used to access an `NSDictionary` object that has 31 | been wrapped with an facade. 32 | */ 33 | @protocol PF_FBGraphLocation 34 | 35 | /*! 36 | @property 37 | @abstract Typed access to a location's street. 38 | */ 39 | @property (retain, nonatomic) NSString *street; 40 | 41 | /*! 42 | @property 43 | @abstract Typed access to a location's city. 44 | */ 45 | @property (retain, nonatomic) NSString *city; 46 | 47 | /*! 48 | @property 49 | @abstract Typed access to a location's state. 50 | */ 51 | @property (retain, nonatomic) NSString *state; 52 | 53 | /*! 54 | @property 55 | @abstract Typed access to a location's country. 56 | */ 57 | @property (retain, nonatomic) NSString *country; 58 | 59 | /*! 60 | @property 61 | @abstract Typed access to a location's zip code. 62 | */ 63 | @property (retain, nonatomic) NSString *zip; 64 | 65 | /*! 66 | @property 67 | @abstract Typed access to a location's latitude. 68 | */ 69 | @property (retain, nonatomic) NSNumber *latitude; 70 | 71 | /*! 72 | @property 73 | @abstract Typed access to a location's longitude. 74 | */ 75 | @property (retain, nonatomic) NSNumber *longitude; 76 | 77 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphObjectPagingLoader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphObjectTableDataSource.h" 19 | 20 | @class PF_FBSession; 21 | @class PF_FBRequest; 22 | @protocol PF_FBGraphObjectPagingLoaderDelegate; 23 | 24 | typedef enum { 25 | // Paging links will be followed as soon as one set of results is loaded 26 | PF_FBGraphObjectPagingModeImmediate, 27 | // Paging links will be followed as soon as one set of results is loaded, even without a view 28 | PF_FBGraphObjectPagingModeImmediateViewless, 29 | // Paging links will be followed only when the user scrolls to the bottom of the table 30 | PF_FBGraphObjectPagingModeAsNeeded 31 | } PF_FBGraphObjectPagingMode; 32 | 33 | @interface PF_FBGraphObjectPagingLoader : NSObject 34 | 35 | @property (nonatomic, retain) UITableView *tableView; 36 | @property (nonatomic, retain) PF_FBGraphObjectTableDataSource *dataSource; 37 | @property (nonatomic, retain) PF_FBSession *session; 38 | @property (nonatomic, assign) id delegate; 39 | @property (nonatomic, readonly) PF_FBGraphObjectPagingMode pagingMode; 40 | @property (nonatomic, readonly) BOOL isResultFromCache; 41 | 42 | - (id)initWithDataSource:(PF_FBGraphObjectTableDataSource*)aDataSource 43 | pagingMode:(PF_FBGraphObjectPagingMode)pagingMode; 44 | - (void)startLoadingWithRequest:(PF_FBRequest*)request 45 | cacheIdentity:(NSString*)cacheIdentity 46 | skipRoundtripIfCached:(BOOL)skipRoundtripIfCached; 47 | - (void)addResultsAndUpdateView:(NSDictionary*)results; 48 | - (void)cancel; 49 | - (void)reset; 50 | 51 | @end 52 | 53 | @protocol PF_FBGraphObjectPagingLoaderDelegate 54 | 55 | @optional 56 | 57 | - (void)pagingLoader:(PF_FBGraphObjectPagingLoader*)pagingLoader willLoadURL:(NSString*)url; 58 | - (void)pagingLoader:(PF_FBGraphObjectPagingLoader*)pagingLoader didLoadData:(NSDictionary*)results; 59 | - (void)pagingLoaderDidFinishLoading:(PF_FBGraphObjectPagingLoader*)pagingLoader; 60 | - (void)pagingLoader:(PF_FBGraphObjectPagingLoader*)pagingLoader handleError:(NSError*)error; 61 | - (void)pagingLoaderWasCancelled:(PF_FBGraphObjectPagingLoader*)pagingLoader; 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphObjectTableCell.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @interface PF_FBGraphObjectTableCell : UITableViewCell 20 | 21 | // We allow the title to be split into two parts, with one (or both) optionally 22 | // bolded. titleSuffix will be appended to the end of title with a space in between. 23 | @property (copy, nonatomic) NSString *title; 24 | @property (copy, nonatomic) NSString *titleSuffix; 25 | @property (nonatomic) BOOL boldTitle; 26 | @property (nonatomic) BOOL boldTitleSuffix; 27 | 28 | @property (copy, nonatomic) NSString *subtitle; 29 | @property (retain, nonatomic) UIImage *picture; 30 | 31 | + (CGFloat)rowHeight; 32 | 33 | - (void)startAnimatingActivityIndicator; 34 | - (void)stopAnimatingActivityIndicator; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphObjectTableDataSource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphObject.h" 19 | 20 | @protocol PF_FBGraphObjectViewControllerDelegate; 21 | @protocol PF_FBGraphObjectSelectionQueryDelegate; 22 | @protocol PF_FBGraphObjectDataSourceDataNeededDelegate; 23 | @class PF_FBGraphObjectTableCell; 24 | 25 | @interface PF_FBGraphObjectTableDataSource : NSObject 26 | 27 | @property (nonatomic, retain) UIImage *defaultPicture; 28 | @property (nonatomic, assign) id controllerDelegate; 29 | @property (nonatomic, copy) NSString *groupByField; 30 | @property (nonatomic) BOOL itemTitleSuffixEnabled; 31 | @property (nonatomic) BOOL itemPicturesEnabled; 32 | @property (nonatomic) BOOL itemSubtitleEnabled; 33 | @property (nonatomic, assign) id selectionDelegate; 34 | @property (nonatomic, assign) id dataNeededDelegate; 35 | @property (nonatomic, copy) NSArray *sortDescriptors; 36 | 37 | - (NSString *)fieldsForRequestIncluding:(NSSet *)customFields, ...; 38 | 39 | - (void)setSortingBySingleField:(NSString*)fieldName ascending:(BOOL)ascending; 40 | - (void)setSortingByFields:(NSArray*)fieldNames ascending:(BOOL)ascending; 41 | 42 | - (void)prepareForNewRequest; 43 | // Clears all graph objects from the data source. 44 | - (void)clearGraphObjects; 45 | // Adds additional graph objects (pass nil to indicate all objects have been added). 46 | - (void)appendGraphObjects:(NSArray *)data; 47 | - (BOOL)hasGraphObjects; 48 | 49 | - (void)bindTableView:(UITableView *)tableView; 50 | 51 | - (void)cancelPendingRequests; 52 | 53 | // Call this when updating any property or if 54 | // delegate.filterIncludesItem would return a different answer now. 55 | - (void)update; 56 | 57 | // Returns the graph object at a given indexPath. 58 | - (PF_FBGraphObject *)itemAtIndexPath:(NSIndexPath *)indexPath; 59 | 60 | // Returns the indexPath for a given graph object. 61 | - (NSIndexPath *)indexPathForItem:(PF_FBGraphObject *)item; 62 | 63 | @end 64 | 65 | @protocol PF_FBGraphObjectViewControllerDelegate 66 | @required 67 | 68 | - (NSString *)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource *)dataSource 69 | titleOfItem:(id)graphObject; 70 | 71 | @optional 72 | 73 | - (NSString *)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource *)dataSource 74 | titleSuffixOfItem:(id)graphObject; 75 | 76 | - (NSString *)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource *)dataSource 77 | subtitleOfItem:(id)graphObject; 78 | 79 | - (NSString *)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource *)dataSource 80 | pictureUrlOfItem:(id)graphObject; 81 | 82 | - (BOOL)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource *)dataSource 83 | filterIncludesItem:(id)item; 84 | 85 | - (void)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource*)dataSource 86 | customizeTableCell:(PF_FBGraphObjectTableCell*)cell; 87 | 88 | @end 89 | 90 | @protocol PF_FBGraphObjectSelectionQueryDelegate 91 | 92 | - (BOOL)graphObjectTableDataSource:(PF_FBGraphObjectTableDataSource *)dataSource 93 | selectionIncludesItem:(id)item; 94 | 95 | @end 96 | 97 | @protocol PF_FBGraphObjectDataSourceDataNeededDelegate 98 | 99 | - (void)graphObjectTableDataSourceNeedsData:(PF_FBGraphObjectTableDataSource *)dataSource triggeredByIndexPath:(NSIndexPath*)indexPath; 100 | 101 | @end 102 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphObjectTableSelection.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphObjectTableDataSource.h" 19 | 20 | @protocol PF_FBGraphObjectSelectionChangedDelegate; 21 | 22 | @interface PF_FBGraphObjectTableSelection : NSObject 23 | 24 | @property (nonatomic, assign) NSObject *delegate; 25 | @property (nonatomic, retain, readonly) NSArray *selection; 26 | @property (nonatomic) BOOL allowsMultipleSelection; 27 | 28 | - (id)initWithDataSource:(PF_FBGraphObjectTableDataSource *)dataSource; 29 | - (void)clearSelectionInTableView:(UITableView*)tableView; 30 | 31 | 32 | @end 33 | 34 | @protocol PF_FBGraphObjectSelectionChangedDelegate 35 | 36 | - (void)graphObjectTableSelectionDidChange:(PF_FBGraphObjectTableSelection *)selection; 37 | 38 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphPlace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphLocation.h" 19 | #import "PF_FBGraphObject.h" 20 | 21 | /*! 22 | @protocol 23 | 24 | @abstract 25 | The `PF_FBGraphPlace` protocol enables typed access to a place object 26 | as represented in the Graph API. 27 | 28 | 29 | @discussion 30 | The `PF_FBGraphPlace` protocol represents the most commonly used properties of a 31 | Facebook place object. It may be used to access an `NSDictionary` object that has 32 | been wrapped with an facade. 33 | */ 34 | @protocol PF_FBGraphPlace 35 | 36 | /*! 37 | @property 38 | @abstract Typed access to the place ID. 39 | */ 40 | @property (retain, nonatomic) NSString *id; 41 | 42 | /*! 43 | @property 44 | @abstract Typed access to the place name. 45 | */ 46 | @property (retain, nonatomic) NSString *name; 47 | 48 | /*! 49 | @property 50 | @abstract Typed access to the place category. 51 | */ 52 | @property (retain, nonatomic) NSString *category; 53 | 54 | /*! 55 | @property 56 | @abstract Typed access to the place location. 57 | */ 58 | @property (retain, nonatomic) id location; 59 | 60 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBGraphUser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphPlace.h" 19 | #import "PF_FBGraphObject.h" 20 | 21 | /*! 22 | @protocol 23 | 24 | @abstract 25 | The `PF_FBGraphUser` protocol enables typed access to a user object 26 | as represented in the Graph API. 27 | 28 | 29 | @discussion 30 | The `PF_FBGraphUser` protocol represents the most commonly used properties of a 31 | Facebook user object. It may be used to access an `NSDictionary` object that has 32 | been wrapped with an facade. 33 | */ 34 | @protocol PF_FBGraphUser 35 | 36 | /*! 37 | @property 38 | @abstract Typed access to the user's ID. 39 | */ 40 | @property (retain, nonatomic) NSString *id; 41 | 42 | /*! 43 | @property 44 | @abstract Typed access to the user's name. 45 | */ 46 | @property (retain, nonatomic) NSString *name; 47 | 48 | /*! 49 | @property 50 | @abstract Typed access to the user's first name. 51 | */ 52 | @property (retain, nonatomic) NSString *first_name; 53 | 54 | /*! 55 | @property 56 | @abstract Typed access to the user's middle name. 57 | */ 58 | @property (retain, nonatomic) NSString *middle_name; 59 | 60 | /*! 61 | @property 62 | @abstract Typed access to the user's last name. 63 | */ 64 | @property (retain, nonatomic) NSString *last_name; 65 | 66 | /*! 67 | @property 68 | @abstract Typed access to the user's profile URL. 69 | */ 70 | @property (retain, nonatomic) NSString *link; 71 | 72 | /*! 73 | @property 74 | @abstract Typed access to the user's username. 75 | */ 76 | @property (retain, nonatomic) NSString *username; 77 | 78 | /*! 79 | @property 80 | @abstract Typed access to the user's birthday. 81 | */ 82 | @property (retain, nonatomic) NSString *birthday; 83 | 84 | /*! 85 | @property 86 | @abstract Typed access to the user's current city. 87 | */ 88 | @property (retain, nonatomic) id location; 89 | 90 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBLogger.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | /*! 20 | @class PF_FBLogger 21 | 22 | @abstract 23 | Simple logging utility for conditionally logging strings and then emitting them 24 | via NSLog(). 25 | 26 | @unsorted 27 | */ 28 | @interface PF_FBLogger : NSObject 29 | 30 | // Access current accumulated contents of the logger. 31 | @property (copy, nonatomic) NSString *contents; 32 | 33 | // Each PF_FBLogger gets a unique serial number to allow the client to log these numbers and, for instance, correlation of Request/Response 34 | @property (nonatomic, readonly) NSUInteger loggerSerialNumber; 35 | 36 | // The logging behavior of this logger. See the PF_FB_LOG_BEHAVIOR* constants in PF_FBSession.h 37 | @property (copy, nonatomic, readonly) NSString *loggingBehavior; 38 | 39 | // Is the current logger instance active, based on its loggingBehavior? 40 | @property (nonatomic, readonly) BOOL isActive; 41 | 42 | // 43 | // Instance methods 44 | // 45 | 46 | // Create with specified logging behavior 47 | - (id)initWithLoggingBehavior:(NSString *)loggingBehavior; 48 | 49 | // Append string, or key/value pair 50 | - (void)appendString:(NSString *)string; 51 | - (void)appendFormat:(NSString *)formatString, ...; 52 | - (void)appendKey:(NSString *)key value:(NSString *)value; 53 | 54 | // Emit log, clearing out the logger contents. 55 | - (void)emitToNSLog; 56 | 57 | // 58 | // Class methods 59 | // 60 | 61 | // 62 | // Return a globally unique serial number to be used for correlating multiple output from the same logger. 63 | // 64 | + (NSUInteger)newSerialNumber; 65 | 66 | // Simple helper to write a single log entry, based upon whether the behavior matches a specified on. 67 | + (void)singleShotLogEntry:(NSString *)loggingBehavior 68 | logEntry:(NSString *)logEntry; 69 | 70 | + (void)singleShotLogEntry:(NSString *)loggingBehavior 71 | formatString:(NSString *)formatString, ...; 72 | 73 | + (void)singleShotLogEntry:(NSString *)loggingBehavior 74 | timestampTag:(NSObject *)timestampTag 75 | formatString:(NSString *)formatString, ...; 76 | 77 | // Register a timestamp label with the "current" time, to then be retrieved by singleShotLogEntry 78 | // to include a duration. 79 | + (void)registerCurrentTime:(NSString *)loggingBehavior 80 | withTag:(NSObject *)timestampTag; 81 | 82 | // When logging strings, replace all instances of 'replace' with instances of 'replaceWith'. 83 | + (void)registerStringToReplace:(NSString *)replace 84 | replaceWith:(NSString *)replaceWith; 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBLoginDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | #import "PF_FBDialog.h" 19 | 20 | @protocol PF_FBLoginDialogDelegate; 21 | 22 | /** 23 | * Do not use this interface directly, instead, use authorize in Facebook.h 24 | * 25 | * Facebook Login Dialog interface for start the facebook webView login dialog. 26 | * It start pop-ups prompting for credentials and permissions. 27 | */ 28 | 29 | @interface PF_FBLoginDialog : PF_FBDialog { 30 | id _loginDelegate; 31 | } 32 | 33 | -(id) initWithURL:(NSString *) loginURL 34 | loginParams:(NSMutableDictionary *) params 35 | delegate:(id ) delegate; 36 | @end 37 | 38 | /////////////////////////////////////////////////////////////////////////////////////////////////// 39 | 40 | @protocol PF_FBLoginDialogDelegate 41 | 42 | - (void)fbDialogLogin:(NSString*)token expirationDate:(NSDate*)expirationDate; 43 | 44 | - (void)fbDialogNotLogin:(BOOL)cancelled; 45 | 46 | @end 47 | 48 | 49 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBLoginView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBSession.h" 19 | #import "PF_FBGraphUser.h" 20 | 21 | @protocol PF_FBLoginViewDelegate; 22 | 23 | /*! 24 | @class 25 | @abstract 26 | */ 27 | @interface PF_FBLoginView : UIView 28 | 29 | /*! 30 | @abstract 31 | The permissions to login with. Defaults to nil, meaning basic permissions. 32 | 33 | @discussion Methods and properties that specify permissions without a read or publish 34 | qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred. 35 | */ 36 | @property (readwrite, copy) NSArray *permissions __attribute__((deprecated)); 37 | 38 | /*! 39 | @abstract 40 | The read permissions to request if the user logs in via this view. 41 | 42 | @discussion 43 | Note, that if read permissions are specified, then publish permissions should not be specified. 44 | */ 45 | @property (nonatomic, copy) NSArray *readPermissions; 46 | 47 | /*! 48 | @abstract 49 | The publish permissions to request if the user logs in via this view. 50 | 51 | @discussion 52 | Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or 53 | FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish 54 | permissions are specified, then read should not be specified. 55 | */ 56 | @property (nonatomic, copy) NSArray *publishPermissions; 57 | 58 | /*! 59 | @abstract 60 | The default audience to use, if publish permissions are requested at login time. 61 | */ 62 | @property (nonatomic, assign) PF_FBSessionDefaultAudience defaultAudience; 63 | 64 | 65 | /*! 66 | @abstract 67 | Initializes and returns an `PF_FBLoginView` object. The underlying session has basic permissions granted to it. 68 | */ 69 | - (id)init; 70 | 71 | /*! 72 | @method 73 | 74 | @abstract 75 | Initializes and returns an `PF_FBLoginView` object constructed with the specified permissions. 76 | 77 | @param permissions An array of strings representing the permissions to request during the 78 | authentication flow. A value of nil will indicates basic permissions. 79 | 80 | @discussion Methods and properties that specify permissions without a read or publish 81 | qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred. 82 | */ 83 | - (id)initWithPermissions:(NSArray *)permissions __attribute__((deprecated)); 84 | 85 | /*! 86 | @method 87 | 88 | @abstract 89 | Initializes and returns an `FBLoginView` object constructed with the specified permissions. 90 | 91 | @param readPermissions An array of strings representing the read permissions to request during the 92 | authentication flow. A value of nil will indicates basic permissions. 93 | 94 | */ 95 | - (id)initWithReadPermissions:(NSArray *)readPermissions; 96 | 97 | /*! 98 | @method 99 | 100 | @abstract 101 | Initializes and returns an `FBLoginView` object constructed with the specified permissions. 102 | 103 | @param publishPermissions An array of strings representing the publish permissions to request during the 104 | authentication flow. 105 | 106 | @param defaultAudience An audience for published posts; note that FBSessionDefaultAudienceNone is not valid 107 | for permission requests that include publish or manage permissions. 108 | 109 | */ 110 | - (id)initWithPublishPermissions:(NSArray *)permissions 111 | defaultAudience:(PF_FBSessionDefaultAudience)defaultAudience; 112 | 113 | /*! 114 | @abstract 115 | The delegate object that receives updates for selection and display control. 116 | */ 117 | @property (nonatomic, assign) IBOutlet id delegate; 118 | 119 | @end 120 | 121 | /*! 122 | @protocol 123 | 124 | @abstract 125 | The `PF_FBLoginViewDelegate` protocol defines the methods used to receive event 126 | notifications from `PF_FBLoginView` objects. 127 | */ 128 | @protocol PF_FBLoginViewDelegate 129 | 130 | @optional 131 | 132 | /*! 133 | @abstract 134 | Tells the delegate that the view is now in logged in mode 135 | 136 | @param loginView The login view that transitioned its view mode 137 | */ 138 | - (void)loginViewShowingLoggedInUser:(PF_FBLoginView *)loginView; 139 | 140 | /*! 141 | @abstract 142 | Tells the delegate that the view is has now fetched user info 143 | 144 | @param loginView The login view that transitioned its view mode 145 | 146 | @param user The user info object describing the logged in user 147 | */ 148 | - (void)loginViewFetchedUserInfo:(PF_FBLoginView *)loginView 149 | user:(id)user; 150 | 151 | /*! 152 | @abstract 153 | Tells the delegate that the view is now in logged out mode 154 | 155 | @param loginView The login view that transitioned its view mode 156 | */ 157 | - (void)loginViewShowingLoggedOutUser:(PF_FBLoginView *)loginView; 158 | 159 | @end 160 | 161 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBNativeDialogs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | 20 | @class PF_FBSession; 21 | 22 | /*! 23 | @typedef FBNativeDialogResult enum 24 | 25 | @abstract 26 | Passed to a handler to indicate the result of a dialog being displayed to the user. 27 | */ 28 | typedef enum { 29 | /*! Indicates that the dialog action completed successfully. */ 30 | PF_FBNativeDialogResultSucceeded, 31 | /*! Indicates that the dialog action was cancelled (either by the user or the system). */ 32 | PF_FBNativeDialogResultCancelled, 33 | /*! Indicates that the dialog could not be shown (because not on ios6 or ios6 auth was not used). */ 34 | PF_FBNativeDialogResultError 35 | } PF_FBNativeDialogResult; 36 | 37 | /*! 38 | @typedef 39 | 40 | @abstract Defines a handler that will be called in response to the native share dialog 41 | being displayed. 42 | */ 43 | typedef void (^PF_FBShareDialogHandler)(PF_FBNativeDialogResult result, NSError *error); 44 | 45 | /*! 46 | @class PF_FBNativeDialogs 47 | 48 | @abstract 49 | Provides methods to display native (i.e., non-Web-based) dialogs to the user. 50 | Currently the iOS 6 sharing dialog is supported. 51 | */ 52 | @interface PF_FBNativeDialogs : NSObject 53 | 54 | /*! 55 | @abstract 56 | Presents a dialog that allows the user to share a status update that may include 57 | text, images, or URLs. This dialog is only available on iOS 6.0 and above. The 58 | current active session returned by [PF_FBSession activeSession] will be used to determine 59 | whether the dialog will be displayed. If a session is active, it must be open and the 60 | login method used to authenticate the user must be native iOS 6.0 authentication. 61 | If no session active, then whether the call succeeds or not will depend on 62 | whether Facebook integration has been configured. 63 | 64 | @param viewController The view controller which will present the dialog. 65 | 66 | @param initialText The text which will initially be populated in the dialog. The user 67 | will have the opportunity to edit this text before posting it. May be nil. 68 | 69 | @param image A UIImage that will be attached to the status update. May be nil. 70 | 71 | @param url An NSURL that will be attached to the status update. May be nil. 72 | 73 | @param handler A handler that will be called when the dialog is dismissed, or if an error 74 | occurs. May be nil. 75 | 76 | @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler 77 | will still be called, with an error indicating the reason the dialog was not displayed) 78 | */ 79 | + (BOOL)presentShareDialogModallyFrom:(UIViewController*)viewController 80 | initialText:(NSString*)initialText 81 | image:(UIImage*)image 82 | url:(NSURL*)url 83 | handler:(PF_FBShareDialogHandler)handler; 84 | 85 | /*! 86 | @abstract 87 | Presents a dialog that allows the user to share a status update that may include 88 | text, images, or URLs. This dialog is only available on iOS 6.0 and above. The 89 | current active session returned by [PF_FBSession activeSession] will be used to determine 90 | whether the dialog will be displayed. If a session is active, it must be open and the 91 | login method used to authenticate the user must be native iOS 6.0 authentication. 92 | If no session active, then whether the call succeeds or not will depend on 93 | whether Facebook integration has been configured. 94 | 95 | @param viewController The view controller which will present the dialog. 96 | 97 | @param initialText The text which will initially be populated in the dialog. The user 98 | will have the opportunity to edit this text before posting it. May be nil. 99 | 100 | @param images An array of UIImages that will be attached to the status update. May 101 | be nil. 102 | 103 | @param urls An array of NSURLs that will be attached to the status update. May be nil. 104 | 105 | @param handler A handler that will be called when the dialog is dismissed, or if an error 106 | occurs. May be nil. 107 | 108 | @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler 109 | will still be called, with an error indicating the reason the dialog was not displayed) 110 | */ 111 | + (BOOL)presentShareDialogModallyFrom:(UIViewController*)viewController 112 | initialText:(NSString*)initialText 113 | images:(NSArray*)images 114 | urls:(NSArray*)urls 115 | handler:(PF_FBShareDialogHandler)handler; 116 | 117 | /*! 118 | @abstract 119 | Presents a dialog that allows the user to share a status update that may include 120 | text, images, or URLs. This dialog is only available on iOS 6.0 and above. An 121 | may be specified, or nil may be passed to indicate that the current 122 | active session should be used. If a session is specified (whether explicitly or by 123 | virtue of being the active session), it must be open and the login method used to 124 | authenticate the user must be native iOS 6.0 authentication. If no session is specified 125 | (and there is no active session), then whether the call succeeds or not will depend on 126 | whether Facebook integration has been configured. 127 | 128 | @param viewController The view controller which will present the dialog. 129 | 130 | @param session The to use to determine whether or not the user has been 131 | authenticated with iOS native authentication. If nil, then [FBSession activeSession] 132 | will be checked. See discussion above for the implications of nil or non-nil session. 133 | 134 | @param initialText The text which will initially be populated in the dialog. The user 135 | will have the opportunity to edit this text before posting it. May be nil. 136 | 137 | @param images An array of UIImages that will be attached to the status update. May 138 | be nil. 139 | 140 | @param urls An array of NSURLs that will be attached to the status update. May be nil. 141 | 142 | @param handler A handler that will be called when the dialog is dismissed, or if an error 143 | occurs. May be nil. 144 | 145 | @return YES if the dialog was presented, NO if not (in the case of a NO result, the handler 146 | will still be called, with an error indicating the reason the dialog was not displayed) 147 | */ 148 | + (BOOL)presentShareDialogModallyFrom:(UIViewController*)viewController 149 | session:(PF_FBSession*)session 150 | initialText:(NSString*)initialText 151 | images:(NSArray*)images 152 | urls:(NSArray*)urls 153 | handler:(PF_FBShareDialogHandler)handler; 154 | 155 | /*! 156 | @abstract 157 | Determines whether a call to presentShareDialogModallyFrom: will successfully present 158 | a dialog. This is useful for applications that need to modify the available UI controls 159 | depending on whether the dialog is available on the current platform and for the current 160 | user. 161 | 162 | @param session The to use to determine whether or not the user has been 163 | authenticated with iOS native authentication. If nil, then [FBSession activeSession] 164 | will be checked. See discussion above for the implications of nil or non-nil session. 165 | 166 | @return YES if the dialog would be presented for the session, and NO if not 167 | */ 168 | + (BOOL)canPresentShareDialogWithSession:(PF_FBSession*)session; 169 | 170 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBOpenGraphAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/xlicenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBGraphObject.h" 19 | 20 | @protocol PF_FBGraphPlace; 21 | @protocol PF_FBGraphUser; 22 | 23 | /*! 24 | @protocol 25 | 26 | @abstract 27 | The `PF_FBOpenGraphAction` protocol is the base protocol for use in posting and retrieving Open Graph actions. 28 | It inherits from the `PF_FBGraphObject` protocol; you may derive custome protocols from `PF_FBOpenGraphAction` in order 29 | implement typed access to your application's custom actions. 30 | 31 | @discussion 32 | Represents an Open Graph custom action, to be used directly, or from which to 33 | derive custom action protocols with custom properties. 34 | */ 35 | @protocol PF_FBOpenGraphAction 36 | 37 | /*! 38 | @property 39 | @abstract Typed access to action's id 40 | */ 41 | @property (retain, nonatomic) NSString *id; 42 | 43 | /*! 44 | @property 45 | @abstract Typed access to action's start time 46 | */ 47 | @property (retain, nonatomic) NSString *start_time; 48 | 49 | /*! 50 | @property 51 | @abstract Typed access to action's end time 52 | */ 53 | @property (retain, nonatomic) NSString *end_time; 54 | 55 | /*! 56 | @property 57 | @abstract Typed access to action's publication time 58 | */ 59 | @property (retain, nonatomic) NSString *publish_time; 60 | 61 | /*! 62 | @property 63 | @abstract Typed access to action's creation time 64 | */ 65 | @property (retain, nonatomic) NSString *created_time; 66 | 67 | /*! 68 | @property 69 | @abstract Typed access to action's expiration time 70 | */ 71 | @property (retain, nonatomic) NSString *expires_time; 72 | 73 | /*! 74 | @property 75 | @abstract Typed access to action's ref 76 | */ 77 | @property (retain, nonatomic) NSString *ref; 78 | 79 | /*! 80 | @property 81 | @abstract Typed access to action's user message 82 | */ 83 | @property (retain, nonatomic) NSString *message; 84 | 85 | /*! 86 | @property 87 | @abstract Typed access to action's place 88 | */ 89 | @property (retain, nonatomic) id place; 90 | 91 | /*! 92 | @property 93 | @abstract Typed access to action's tags 94 | */ 95 | @property (retain, nonatomic) NSArray *tags; 96 | 97 | /*! 98 | @property 99 | @abstract Typed access to action's images 100 | */ 101 | @property (retain, nonatomic) NSArray *image; 102 | 103 | /*! 104 | @property 105 | @abstract Typed access to action's from-user 106 | */ 107 | @property (retain, nonatomic) id from; 108 | 109 | /*! 110 | @property 111 | @abstract Typed access to action's likes 112 | */ 113 | @property (retain, nonatomic) NSArray *likes; 114 | 115 | /*! 116 | @property 117 | @abstract Typed access to action's application 118 | */ 119 | @property (retain, nonatomic) id application; 120 | 121 | /*! 122 | @property 123 | @abstract Typed access to action's comments 124 | */ 125 | @property (retain, nonatomic) NSArray *comments; 126 | 127 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBPlacePickerCacheDescriptor.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | #import "PF_FBCacheDescriptor.h" 20 | 21 | @interface PF_FBPlacePickerCacheDescriptor : PF_FBCacheDescriptor 22 | 23 | - (id)initWithLocationCoordinate:(CLLocationCoordinate2D)locationCoordinate 24 | radiusInMeters:(NSInteger)radiusInMeters 25 | searchText:(NSString*)searchText 26 | resultsLimit:(NSInteger)resultsLimit 27 | fieldsForRequest:(NSSet*)fieldsForRequest; 28 | 29 | @property (nonatomic, readonly) CLLocationCoordinate2D locationCoordinate; 30 | @property (nonatomic, readonly) NSInteger radiusInMeters; 31 | @property (nonatomic, readonly) NSInteger resultsLimit; 32 | @property (nonatomic, readonly, copy) NSString *searchText; 33 | @property (nonatomic, readonly, copy) NSSet *fieldsForRequest; 34 | 35 | @end 36 | 37 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBPlacePickerViewController+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBPlacePickerViewController.h" 19 | #import "PF_FBRequest.h" 20 | #import "PF_FBGraphObjectTableDataSource.h" 21 | #import "PF_FBSession.h" 22 | 23 | // This is the cache identity used by both the view controller and cache descriptor objects 24 | extern NSString *const PF_FBPlacePickerCacheIdentity; 25 | 26 | extern const NSInteger PF_defaultResultsLimit; 27 | extern const NSInteger PF_defaultRadius; 28 | 29 | @interface PF_FBPlacePickerViewController (Internal) 30 | 31 | + (PF_FBRequest*)requestForPlacesSearchAtCoordinate:(CLLocationCoordinate2D)coordinate 32 | radiusInMeters:(NSInteger)radius 33 | resultsLimit:(NSInteger)resultsLimit 34 | searchText:(NSString*)searchText 35 | fields:(NSSet*)fieldsForRequest 36 | datasource:(PF_FBGraphObjectTableDataSource*)datasource 37 | session:(PF_FBSession*)session; 38 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBProfilePictureView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | /*! 20 | @typedef PF_FBProfilePictureCropping enum 21 | 22 | @abstract 23 | Type used to specify the cropping treatment of the profile picture. 24 | 25 | @discussion 26 | */ 27 | typedef enum { 28 | 29 | /*! Square (default) - the square version that the Facebook user defined. */ 30 | PF_FBProfilePictureCroppingSquare = 0, 31 | 32 | /*! Original - the original profile picture, as uploaded. */ 33 | PF_FBProfilePictureCroppingOriginal = 1 34 | 35 | } PF_FBProfilePictureCropping; 36 | 37 | /*! 38 | @class 39 | @abstract 40 | An instance of `PF_FBProfilePictureView` is used to display a profile picture. 41 | 42 | The default behavior of this control is to center the profile picture 43 | in the view and shrinks it, if necessary, to the view's bounds, preserving the aspect ratio. The smallest 44 | possible image is downloaded to ensure that scaling up never happens. Resizing the view may result in 45 | a different size of the image being loaded. Canonical image sizes are documented in the "Pictures" section 46 | of https://developers.facebook.com/docs/reference/api. 47 | */ 48 | @interface PF_FBProfilePictureView : UIView 49 | 50 | /*! 51 | @abstract 52 | The Facebook ID of the user, place or object for which a picture should be fetched and displayed. 53 | */ 54 | @property (copy, nonatomic) NSString* profileID; 55 | 56 | /*! 57 | @abstract 58 | The cropping to use for the profile picture. 59 | */ 60 | @property (nonatomic) PF_FBProfilePictureCropping pictureCropping; 61 | 62 | /*! 63 | @abstract 64 | Initializes and returns a profile view object. 65 | */ 66 | - (id)init; 67 | 68 | 69 | /*! 70 | @abstract 71 | Initializes and returns a profile view object for the given Facebook ID and cropping. 72 | 73 | @param profileID The Facebook ID of the user, place or object for which a picture should be fetched and displayed. 74 | @param pictureCropping The cropping to use for the profile picture. 75 | */ 76 | - (id)initWithProfileID:(NSString*)profileID 77 | pictureCropping:(PF_FBProfilePictureCropping)pictureCropping; 78 | 79 | 80 | @end 81 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBRequestBody.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | #import "PF_FBLogger.h" 20 | 21 | @interface PF_FBRequestBody : NSObject 22 | 23 | @property (nonatomic, retain, readonly) NSData *data; 24 | 25 | - (id)init; 26 | 27 | - (void)appendWithKey:(NSString *)key 28 | formValue:(NSString *)value 29 | logger:(PF_FBLogger *)logger; 30 | 31 | - (void)appendWithKey:(NSString *)key 32 | imageValue:(UIImage *)image 33 | logger:(PF_FBLogger *)logger; 34 | 35 | - (void)appendWithKey:(NSString *)key 36 | dataValue:(NSData *)data 37 | logger:(PF_FBLogger *)logger; 38 | 39 | + (NSString *)mimeContentType; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBRequestConnection+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBRequestConnection.h" 18 | 19 | @interface PF_FBRequestConnection (Internal) 20 | 21 | @property (nonatomic, readonly) BOOL isResultFromCache; 22 | 23 | - (void)startWithCacheIdentity:(NSString*)cacheIdentity 24 | skipRoundtripIfCached:(BOOL)consultCache; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSDKVersion.h: -------------------------------------------------------------------------------- 1 | #define PF_FB_IOS_SDK_VERSION_STRING @"3.1.1-parse" 2 | #define PF_FB_IOS_SDK_MIGRATION_BUNDLE @"fbsdk:20121003" -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSession+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBSession.h" 18 | 19 | @interface PF_FBSession (Internal) 20 | 21 | - (void)refreshAccessToken:(NSString*)token expirationDate:(NSDate*)expireDate; 22 | - (BOOL)shouldExtendAccessToken; 23 | - (void)closeAndClearTokenInformation:(NSError *)error; 24 | 25 | + (PF_FBSession*)activeSessionIfOpen; 26 | 27 | + (void)deleteFacebookCookies; 28 | + (NSDate*)expirationDateFromExpirationTimeString:(NSString*)expirationTime; 29 | + (void)renewSystemAuthorization; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSession+Protected.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBSession.h" 18 | 19 | // Methods here are meant to be used only by internal subclasses of PF_FBSession 20 | // and not by any other classes, external or internal. 21 | @interface PF_FBSession (Protected) 22 | 23 | - (BOOL)transitionToState:(PF_FBSessionState)state 24 | andUpdateToken:(NSString*)token 25 | andExpirationDate:(NSDate*)date 26 | shouldCache:(BOOL)shouldCache 27 | loginType:(PF_FBSessionLoginType)loginType; 28 | - (void)transitionAndCallHandlerWithState:(PF_FBSessionState)status 29 | error:(NSError*)error 30 | token:(NSString*)token 31 | expirationDate:(NSDate*)date 32 | shouldCache:(BOOL)shouldCache 33 | loginType:(PF_FBSessionLoginType)loginType; 34 | - (void)authorizeWithPermissions:(NSArray*)permissions 35 | behavior:(PF_FBSessionLoginBehavior)behavior 36 | defaultAudience:(PF_FBSessionDefaultAudience)audience 37 | isReauthorize:(BOOL)isReauthorize; 38 | 39 | + (NSError*)errorLoginFailedWithReason:(NSString*)errorReason 40 | errorCode:(NSString*)errorCode 41 | innerError:(NSError*)innerError; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSessionManualTokenCachingStrategy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBSessionTokenCachingStrategy.h" 18 | 19 | // PF_FBSessionManualTokenCachingStrategy 20 | // 21 | // Summary: 22 | // Internal use only, this class enables migration logic for the Facebook class, by providing 23 | // a means to directly provide the access token to a PF_FBSession object 24 | // 25 | @interface PF_FBSessionManualTokenCachingStrategy : PF_FBSessionTokenCachingStrategy 26 | 27 | // set the properties before instantiating the PF_FBSession object in order to seed a token 28 | @property (readwrite, copy) NSString* accessToken; 29 | @property (readwrite, copy) NSDate* expirationDate; 30 | 31 | @end 32 | 33 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSessionTokenCachingStrategy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | /*! 20 | @class 21 | 22 | @abstract 23 | The `PF_FBSessionTokenCachingStrategy` class is responsible for persisting and retrieving cached data related to 24 | an object, including the user's Facebook access token. 25 | 26 | @discussion 27 | `PF_FBSessionTokenCachingStrategy` is designed to be instantiated directly or used as a base class. Usually default 28 | token caching behavior is sufficient, and you do not need to interface directly with `PF_FBSessionTokenCachingStrategy` objects. 29 | However, if you need to control where or how `PF_FBSession` information is cached, then you may take one of two approaches. 30 | 31 | The first and simplest approach is to instantiate an instance of `PF_FBSessionTokenCachingStrategy`, and then pass 32 | the instance to `PF_FBSession` class' `init` method. This enables your application to control the key name used in 33 | `NSUserDefaults` to store session information. You may consider this approach if you plan to cache session information 34 | for multiple users. 35 | 36 | The second and more advanced approached is to derive a custom class from `PF_FBSessionTokenCachingStrategy`, which will 37 | be responsible for caching behavior of your application. This approach is useful if you need to change where the 38 | information is cached, for example if you prefer to use the filesystem or make a network connection to fetch and 39 | persist cached tokens. Inheritors should override the cacheTokenInformation, fetchTokenInformation, and clearToken methods. 40 | Doing this enables your application to implement any token caching scheme, including no caching at all. 41 | 42 | Direct use of `PF_FBSessionTokenCachingStrategy`is an advanced technique. Most applications use objects without 43 | passing an `PF_FBSessionTokenCachingStrategy`, which yields default caching to `NSUserDefaults`. 44 | */ 45 | @interface PF_FBSessionTokenCachingStrategy : NSObject 46 | 47 | /*! 48 | @abstract Initializes and returns an instance 49 | */ 50 | - (id)init; 51 | 52 | /*! 53 | @abstract 54 | Initializes and returns an instance 55 | 56 | @param tokenInformationKeyName Specifies a key name to use for cached token information in NSUserDefaults, nil 57 | indicates a default value of @"PF_FBAccessTokenInformationKey" 58 | */ 59 | - (id)initWithUserDefaultTokenInformationKeyName:(NSString*)tokenInformationKeyName; 60 | 61 | /*! 62 | @abstract 63 | Called by (and overridden by inheritors), in order to cache token information. 64 | 65 | @param tokenInformation Dictionary containing token information to be cached by the method 66 | */ 67 | - (void)cacheTokenInformation:(NSDictionary*)tokenInformation; 68 | 69 | /*! 70 | @abstract 71 | Called by (and overridden by inheritors), in order to fetch cached token information 72 | 73 | @discussion 74 | An overriding implementation should only return a token if it 75 | can also return an expiration date, otherwise return nil 76 | */ 77 | - (NSDictionary*)fetchTokenInformation; 78 | 79 | /*! 80 | @abstract 81 | Called by (and overridden by inheritors), in order delete any cached information for the current token 82 | */ 83 | - (void)clearToken; 84 | 85 | /*! 86 | @abstract 87 | Helper function called by the SDK as well as apps, in order to fetch the default strategy instance. 88 | */ 89 | + (PF_FBSessionTokenCachingStrategy*)defaultInstance; 90 | 91 | /*! 92 | @abstract 93 | Helper function called by the SDK as well as application code, used to determine whether a given dictionary 94 | contains the minimum token information usable by the . 95 | 96 | @param tokenInformation Dictionary containing token information to be validated 97 | */ 98 | + (BOOL)isValidTokenInformation:(NSDictionary*)tokenInformation; 99 | 100 | @end 101 | 102 | // The key to use with token information dictionaries to get and set the token value 103 | extern NSString *const PF_FBTokenInformationTokenKey; 104 | 105 | // The to use with token information dictionaries to get and set the expiration date 106 | extern NSString *const PF_FBTokenInformationExpirationDateKey; 107 | 108 | // The to use with token information dictionaries to get and set the refresh date 109 | extern NSString *const PF_FBTokenInformationRefreshDateKey; 110 | 111 | // The key to use with token information dictionaries to get the related user's fbid 112 | extern NSString *const PF_FBTokenInformationUserFBIDKey; 113 | 114 | // The key to use with token information dictionaries to determine whether the token was fetched via Facebook Login 115 | extern NSString *const PF_FBTokenInformationIsFacebookLoginKey; 116 | 117 | // The key to use with token information dictionaries to determine whether the token was fetched via the OS 118 | extern NSString *const PF_FBTokenInformationLoginTypeLoginKey; 119 | 120 | // The key to use with token information dictionaries to get the latest known permissions 121 | extern NSString *const PF_FBTokenInformationPermissionsKey; -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSettings+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBSettings.h" 18 | 19 | @interface PF_FBSettings (Internal) 20 | 21 | + (void)autoPublishInstall:(NSString *)appID; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBSettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | /* 20 | * Constants defining logging behavior. Use with <[PF_FBSettings setLoggingBehavior]>. 21 | */ 22 | 23 | /*! Log requests from PF_FBRequest* classes */ 24 | extern NSString *const PF_FBLoggingBehaviorFBRequests; 25 | 26 | /*! Log requests from PF_FBURLConnection* classes */ 27 | extern NSString *const PF_FBLoggingBehaviorFBURLConnections; 28 | 29 | /*! Include access token in logging. */ 30 | extern NSString *const PF_FBLoggingBehaviorAccessTokens; 31 | 32 | /*! Log session state transitions. */ 33 | extern NSString *const PF_FBLoggingBehaviorSessionStateTransitions; 34 | 35 | /*! Log performance characteristics */ 36 | extern NSString *const PF_FBLoggingBehaviorPerformanceCharacteristics; 37 | 38 | @interface PF_FBSettings : NSObject 39 | 40 | /*! 41 | @method 42 | 43 | @abstract Retrieve the current Facebook SDK logging behavior. 44 | 45 | */ 46 | + (NSSet *)loggingBehavior; 47 | 48 | /*! 49 | @method 50 | 51 | @abstract Set the current Facebook SDK logging behavior. This should consist of strings defined as 52 | constants with PF_FBLogBehavior*, and can be constructed with [NSSet initWithObjects:]. 53 | 54 | @param loggingBehavior A set of strings indicating what information should be logged. 55 | */ 56 | + (void)setLoggingBehavior:(NSSet *)loggingBehavior; 57 | 58 | /*! @abstract Retreive the current auto publish behavior. Defaults to YES. */ 59 | + (BOOL)shouldAutoPublishInstall; 60 | 61 | /*! 62 | @method 63 | 64 | @abstract Sets whether the SDK will automatically publish an install to Facebook during first PF_FBSession init 65 | or on first network request to Facebook. 66 | 67 | @param autoPublishInstall If YES, automatically publish the install; if NO, do not. 68 | */ 69 | + (void)setShouldAutoPublishInstall:(BOOL)autoPublishInstall; 70 | 71 | // For best results, call this function during app activation. 72 | /*! 73 | @method 74 | 75 | @abstract Manually publish an attributed install to the facebook graph. Use this method if you have disabled 76 | auto publish and wish to manually send an install from your code. This method acquires the current attribution 77 | id from the facebook application, queries the graph API to determine if the application has install 78 | attribution enabled, publishes the id, and records success to avoid reporting more than once. 79 | 80 | @param appID A specific appID to publish an install for. If nil, uses [PF_FBSession defaultAppID]. 81 | */ 82 | + (void) publishInstall:(NSString *)appID; 83 | 84 | @end 85 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBTestSession+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBSession.h" 18 | 19 | @interface PF_FBTestSession (Internal) 20 | 21 | // Can be used during testing to force a request for an access token refresh. This affects only the next 22 | // connection, when this flag is reset. 23 | @property (readwrite) BOOL forceAccessTokenRefresh; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBTestSession.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import "PF_FBSession.h" 18 | 19 | #if defined (DEBUG) 20 | #define SAFE_TO_USE_FBTESTSESSION 21 | #endif 22 | 23 | #if !defined(SAFE_TO_USE_FBTESTSESSION) 24 | #pragma message ("warning: using PF_FBTestSession, which is designed for unit-testing uses only, in non-DEBUG code -- ensure this is what you really want") 25 | #endif 26 | 27 | /*! 28 | Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when 29 | you need a second unique test user in a test case. Using the same tag each time reduces 30 | the proliferation of test users. 31 | */ 32 | extern NSString *PF_kSecondTestUserTag; 33 | /*! 34 | Consider using this tag to pass to sessionWithSharedUserWithPermissions:uniqueUserTag: when 35 | you need a third unique test user in a test case. Using the same tag each time reduces 36 | the proliferation of test users. 37 | */ 38 | extern NSString *PF_kThirdTestUserTag; 39 | 40 | /*! 41 | @class PF_FBTestSession 42 | 43 | @abstract 44 | Implements an PF_FBSession subclass that knows about test users for a particular 45 | application. This should never be used from a real application, but may be useful 46 | for writing unit tests, etc. 47 | 48 | @discussion 49 | Facebook allows developers to create test accounts for testing their applications' 50 | Facebook integration (see https://developers.facebook.com/docs/test_users/). This class 51 | simplifies use of these accounts for writing unit tests. It is not designed for use in 52 | production application code. 53 | 54 | The main use case for this class is using sessionForUnitTestingWithPermissions:mode: 55 | to create a session for a test user. Two modes are supported. In "shared" mode, an attempt 56 | is made to find an existing test user that has the required permissions and, if it is not 57 | currently in use by another PF_FBTestSession, just use that user. If no such user is available, 58 | a new one is created with the required permissions. In "private" mode, designed for 59 | scenarios which require a new user in a known clean state, a new test user will always be 60 | created, and it will be automatically deleted when the PF_FBTestSession is closed. 61 | 62 | Note that the shared test user functionality depends on a naming convention for the test users. 63 | It is important that any testing of functionality which will mutate the permissions for a 64 | test user NOT use a shared test user, or this scheme will break down. If a shared test user 65 | seems to be in an invalid state, it can be deleted manually via the Web interface at 66 | https://developers.facebook.com/apps/APP_ID/permissions?role=test+users. 67 | */ 68 | @interface PF_FBTestSession : PF_FBSession 69 | 70 | /// The app access token (composed of app ID and secret) to use for accessing test users. 71 | @property (readonly, copy) NSString *appAccessToken; 72 | /// The ID of the test user associated with this session. 73 | @property (readonly, copy) NSString *testUserID; 74 | /// The App ID of the test app as configured in the plist. 75 | @property (readonly, copy) NSString *testAppID; 76 | /// The App Secret of the test app as configured in the plist. 77 | @property (readonly, copy) NSString *testAppSecret; 78 | 79 | /*! 80 | @abstract 81 | Constructor helper to create a session for use in unit tests 82 | 83 | @discussion 84 | This method creates a session object which uses a shared test user with the right permissions, 85 | creating one if necessary on open (but not deleting it on close, so it can be re-used in later 86 | tests). Calling this method multiple times may return sessions with the same user. If this is not 87 | desired, use the variant sessionWithSharedUserWithPermissions:uniqueUserTag:. 88 | 89 | This method should not be used in application code -- but is useful for creating unit tests 90 | that use the Facebook SDK. 91 | 92 | @param permissions array of strings naming permissions to authorize; nil indicates 93 | a common default set of permissions should be used for unit testing 94 | */ 95 | + (id)sessionWithSharedUserWithPermissions:(NSArray*)permissions; 96 | 97 | /*! 98 | @abstract 99 | Constructor helper to create a session for use in unit tests 100 | 101 | @discussion 102 | This method creates a session object which uses a shared test user with the right permissions, 103 | creating one if necessary on open (but not deleting it on close, so it can be re-used in later 104 | tests). 105 | 106 | This method should not be used in application code -- but is useful for creating unit tests 107 | that use the Facebook SDK. 108 | 109 | @param permissions array of strings naming permissions to authorize; nil indicates 110 | a common default set of permissions should be used for unit testing 111 | 112 | @param uniqueUserTag a string which will be used to make this user unique among other 113 | users with the same permissions. Useful for tests which require two or more users to interact 114 | with each other, and which therefore must have sessions associated with different users. For 115 | this case, consider using kSecondTestUserTag and kThirdTestUserTag so these users can be shared 116 | with other, similar, tests. 117 | */ 118 | + (id)sessionWithSharedUserWithPermissions:(NSArray*)permissions 119 | uniqueUserTag:(NSString*)uniqueUserTag; 120 | 121 | /*! 122 | @abstract 123 | Constructor helper to create a session for use in unit tests 124 | 125 | @discussion 126 | This method creates a session object which creates a test user on open, and destroys the user on 127 | close; This method should not be used in application code -- but is useful for creating unit tests 128 | that use the Facebook SDK. 129 | 130 | @param permissions array of strings naming permissions to authorize; nil indicates 131 | a common default set of permissions should be used for unit testing 132 | */ 133 | + (id)sessionWithPrivateUserWithPermissions:(NSArray*)permissions; 134 | 135 | @end 136 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBURLConnection.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | @class PF_FBURLConnection; 20 | typedef void (^PF_FBURLConnectionHandler)(PF_FBURLConnection *connection, 21 | NSError *error, 22 | NSURLResponse *response, 23 | NSData *responseData); 24 | 25 | @interface PF_FBURLConnection : NSObject 26 | 27 | - (PF_FBURLConnection *)initWithURL:(NSURL *)url 28 | completionHandler:(PF_FBURLConnectionHandler)handler; 29 | 30 | - (PF_FBURLConnection *)initWithRequest:(NSURLRequest *)request 31 | skipRoundTripIfCached:(BOOL)skipRoundtripIfCached 32 | completionHandler:(PF_FBURLConnectionHandler)handler; 33 | 34 | - (void)cancel; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBUserSettingsViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import "PF_FBSession.h" 19 | #import "PF_FBViewController.h" 20 | 21 | /*! 22 | @protocol 23 | 24 | @abstract 25 | The `PF_FBUserSettingsDelegate` protocol defines the methods called by a . 26 | */ 27 | @protocol PF_FBUserSettingsDelegate 28 | 29 | @optional 30 | 31 | /*! 32 | @abstract 33 | Called when the view controller will log the user out in response to a button press. 34 | 35 | @param sender The view controller sending the message. 36 | */ 37 | - (void)loginViewControllerWillLogUserOut:(id)sender; 38 | 39 | /*! 40 | @abstract 41 | Called after the view controller logged the user out in response to a button press. 42 | 43 | @param sender The view controller sending the message. 44 | */ 45 | - (void)loginViewControllerDidLogUserOut:(id)sender; 46 | 47 | /*! 48 | @abstract 49 | Called when the view controller will log the user in in response to a button press. 50 | Note that logging in can fail for a number of reasons, so there is no guarantee that this 51 | will be followed by a call to loginViewControllerDidLogUserIn:. Callers wanting more granular 52 | notification of the session state changes can use KVO or the NSNotificationCenter to observe them. 53 | 54 | @param sender The view controller sending the message. 55 | */ 56 | - (void)loginViewControllerWillAttemptToLogUserIn:(id)sender; 57 | 58 | /*! 59 | @abstract 60 | Called after the view controller successfully logged the user in in response to a button press. 61 | 62 | @param sender The view controller sending the message. 63 | */ 64 | - (void)loginViewControllerDidLogUserIn:(id)sender; 65 | 66 | /*! 67 | @abstract 68 | Called if the view controller encounters an error while trying to log a user in. 69 | 70 | @param sender The view controller sending the message. 71 | @param error The error encountered. 72 | */ 73 | - (void)loginViewController:(id)sender receivedError:(NSError *)error; 74 | 75 | @end 76 | 77 | 78 | /*! 79 | @class PF_FBUserSettingsViewController 80 | 81 | @abstract 82 | The `PF_FBUserSettingsViewController` class provides a user interface exposing a user's 83 | Facebook-related settings. Currently, this is limited to whether they are logged in or out 84 | of Facebook. 85 | 86 | Because of the size of some graphics used in this view, its resources are packaged as a separate 87 | bundle. In order to use `PF_FBUserSettingsViewController`, drag the `PF_FBUserSettingsViewResources.bundle` 88 | from the SDK directory into your Xcode project. 89 | */ 90 | @interface PF_FBUserSettingsViewController : PF_FBViewController 91 | 92 | /*! 93 | @abstract 94 | The permissions to request if the user logs in via this view. 95 | */ 96 | @property (nonatomic, copy) NSArray *permissions __attribute__((deprecated)); 97 | 98 | /*! 99 | @abstract 100 | The read permissions to request if the user logs in via this view. 101 | 102 | @discussion 103 | Note, that if read permissions are specified, then publish permissions should not be specified. 104 | */ 105 | @property (nonatomic, copy) NSArray *readPermissions; 106 | 107 | /*! 108 | @abstract 109 | The publish permissions to request if the user logs in via this view. 110 | 111 | @discussion 112 | Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or 113 | FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish 114 | permissions are specified, then read should not be specified. 115 | */ 116 | @property (nonatomic, copy) NSArray *publishPermissions; 117 | 118 | /*! 119 | @abstract 120 | The default audience to use, if publish permissions are requested at login time. 121 | */ 122 | @property (nonatomic, assign) PF_FBSessionDefaultAudience defaultAudience; 123 | 124 | @end 125 | 126 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBUtility.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | #import 19 | 20 | @class PF_FBSession; 21 | 22 | @protocol PF_FBGraphObject; 23 | 24 | @interface PF_FBUtility : NSObject 25 | 26 | + (NSDictionary*)dictionaryByParsingURLQueryPart:(NSString *)encodedString; 27 | + (NSString *)stringByURLDecodingString:(NSString*)escapedString; 28 | + (NSString*)stringByURLEncodingString:(NSString*)unescapedString; 29 | + (id)graphObjectInArray:(NSArray*)array withSameIDAs:(id)item; 30 | 31 | + (unsigned long)currentTimeInMilliseconds; 32 | + (NSTimeInterval)randomTimeInterval:(NSTimeInterval)minValue withMaxValue:(NSTimeInterval)maxValue; 33 | + (void)centerView:(UIView*)view tableView:(UITableView*)tableView; 34 | + (NSString *)stringFBIDFromObject:(id)object; 35 | 36 | + (NSBundle *)facebookSDKBundle; 37 | + (NSString *)localizedStringForKey:(NSString *)key 38 | withDefault:(NSString *)value; 39 | + (NSString *)localizedStringForKey:(NSString *)key 40 | withDefault:(NSString *)value 41 | inBundle:(NSBundle *)bundle; 42 | 43 | @end 44 | 45 | #define PF_FBConditionalLog(condition, desc, ...) \ 46 | do { \ 47 | if (!(condition)) { \ 48 | NSString *msg = [NSString stringWithFormat:(desc), ##__VA_ARGS__]; \ 49 | NSLog(@"PF_FBConditionalLog: %@", msg); \ 50 | } \ 51 | } while(NO) 52 | 53 | #define PF_FB_BASE_URL @"facebook.com" 54 | 55 | 56 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBViewController+Internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | @interface PF_FBViewController (Internal) 18 | 19 | @property (nonatomic, readonly) UIViewController *compatiblePresentingViewController; 20 | 21 | @end 22 | 23 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FBViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Facebook 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #import 18 | 19 | @class PF_FBViewController; 20 | 21 | /*! 22 | @typedef PF_FBModalCompletionHandler 23 | 24 | @abstract 25 | A block that is passed to [PF_FBViewController presentModallyInViewController:animated:handler:] 26 | and called when the view controller is dismissed via either Done or Cancel. 27 | 28 | @discussion 29 | Pass a block of this type when calling addRequest. This will be called once 30 | the request completes. The call occurs on the UI thread. 31 | 32 | @param sender The that is being dismissed. 33 | 34 | @param donePressed If YES, Done was pressed. If NO, Cancel was pressed. 35 | */ 36 | typedef void (^PF_FBModalCompletionHandler)(PF_FBViewController *sender, BOOL donePressed); 37 | 38 | /*! 39 | @protocol 40 | 41 | @abstract 42 | The `PF_FBViewControllerDelegate` protocol defines the methods called when the Cancel or Done 43 | buttons are pressed in a . 44 | */ 45 | @protocol PF_FBViewControllerDelegate 46 | 47 | @optional 48 | 49 | /*! 50 | @abstract 51 | Called when the Cancel button is pressed on a modally-presented . 52 | 53 | @param sender The view controller sending the message. 54 | */ 55 | - (void)facebookViewControllerCancelWasPressed:(id)sender; 56 | 57 | /*! 58 | @abstract 59 | Called when the Done button is pressed on a modally-presented . 60 | 61 | @param sender The view controller sending the message. 62 | */ 63 | - (void)facebookViewControllerDoneWasPressed:(id)sender; 64 | 65 | @end 66 | 67 | 68 | /*! 69 | @class PF_FBViewController 70 | 71 | @abstract 72 | The `PF_FBViewController` class is a base class encapsulating functionality common to several 73 | other view controller classes. Specifically, it provides UI when a view controller is presented 74 | modally, in the form of optional Cancel and Done buttons. 75 | */ 76 | @interface PF_FBViewController : UIViewController 77 | 78 | /*! 79 | @abstract 80 | The Cancel button to display when presented modally. If nil, no Cancel button is displayed. 81 | If this button is provided, its target and action will be redirected to internal handlers, replacing 82 | any previous target that may have been set. 83 | */ 84 | @property (nonatomic, retain) IBOutlet UIBarButtonItem *cancelButton; 85 | 86 | /*! 87 | @abstract 88 | The Done button to display when presented modally. If nil, no Done button is displayed. 89 | If this button is provided, its target and action will be redirected to internal handlers, replacing 90 | any previous target that may have been set. 91 | */ 92 | @property (nonatomic, retain) IBOutlet UIBarButtonItem *doneButton; 93 | 94 | /*! 95 | @abstract 96 | The delegate that will be called when Cancel or Done is pressed. Derived classes may specify 97 | derived types for their delegates that provide additional functionality. 98 | */ 99 | @property (nonatomic, assign) IBOutlet id delegate; 100 | 101 | /*! 102 | @abstract 103 | The view into which derived classes should put their subviews. This view will be resized correctly 104 | depending on whether or not a toolbar is displayed. 105 | */ 106 | @property (nonatomic, readonly, retain) UIView *canvasView; 107 | 108 | /*! 109 | @abstract 110 | Provides a wrapper that presents the view controller modally and automatically dismisses it 111 | when either the Done or Cancel button is pressed. If Done is pressed, the block provided by the 112 | doneHandler parameter is called. 113 | 114 | @param viewController The view controller that is presenting this view controller. 115 | @param animated If YES, presenting and dismissing the view controller is animated. 116 | @param handler The block called when the Done or Cancel button is pressed. 117 | */ 118 | - (void)presentModallyFromViewController:(UIViewController*)viewController 119 | animated:(BOOL)animated 120 | handler:(PF_FBModalCompletionHandler)handler; 121 | 122 | @end 123 | 124 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_FacebookSDK.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // core 18 | #import "PF_FBSession.h" 19 | #import "PF_FBRequest.h" 20 | #import "PF_FBError.h" 21 | #import "PF_FBSettings.h" 22 | 23 | // ux 24 | #import "PF_FBLoginView.h" 25 | #import "PF_FBProfilePictureView.h" 26 | #import "PF_FBUserSettingsViewController.h" 27 | #import "PF_FBPlacePickerViewController.h" 28 | #import "PF_FBFriendPickerViewController.h" 29 | #import "PF_FBCacheDescriptor.h" 30 | 31 | // graph 32 | #import "PF_FBGraphUser.h" 33 | #import "PF_FBGraphPlace.h" 34 | #import "PF_FBGraphLocation.h" 35 | #import "PF_FBGraphObject.h" // + design summary for graph component-group 36 | #import "PF_FBOpenGraphAction.h" 37 | 38 | // ux 39 | #import "PF_FBLoginView.h" 40 | #import "PF_FBProfilePictureView.h" 41 | #import "PF_FBPlacePickerViewController.h" 42 | #import "PF_FBFriendPickerViewController.h" 43 | #import "PF_FBCacheDescriptor.h" 44 | #import "PF_FBNativeDialogs.h" 45 | 46 | /*! 47 | @header 48 | 49 | @abstract Library header, import this to import all of the public types 50 | in the Facebook SDK 51 | 52 | @discussion 53 | 54 | //////////////////////////////////////////////////////////////////////////////// 55 | 56 | 57 | Summary: this header summarizes the structure and goals of the Facebook SDK for iOS. 58 | Goals: 59 | * Leverage and work well with modern features of iOS (e.g. blocks, ARC, etc.) 60 | * Patterned after best of breed iOS frameworks (e.g. naming, pattern-use, etc.) 61 | * Common integration experience is simple & easy to describe 62 | * Factored to enable a growing list of scenarios over time 63 | 64 | Notes on approaches: 65 | 1. We use a key scenario to drive prioritization of work for a given update 66 | 2. We are building-atop and refactoring, rather than replacing, existing iOS SDK releases 67 | 3. We use take an incremental approach where we can choose to maintain as little or as much compatibility with the existing SDK needed 68 | a) and so we will be developing to this approach 69 | b) and then at push-time for a release we will decide when/what to break 70 | on a feature by feature basis 71 | 4. Some light but critical infrastructure is needed to support both the goals 72 | and the execution of this change (e.g. a build/package/deploy process) 73 | 74 | Design points: 75 | We will move to a more object-oriented approach, in order to facilitate the 76 | addition of a different class of objects, such as controls and visual helpers 77 | (e.g. PF_FBLikeView, PF_FBPersonView), as well as sub-frameworks to enable scenarios 78 | such (e.g. PF_FBOpenGraphEntity, PF_FBLocalEntityCache, etc.) 79 | 80 | As we add features, it will no longer be appropriate to host all functionality 81 | in the Facebook class, though it will be maintained for some time for migration 82 | purposes. Instead functionality lives in related collections of classes. 83 | 84 |
 85 |  @textblock
 86 |  
 87 |                *------------* *----------*  *----------------* *---*
 88 |   Scenario --> |PF_FBPersonView| |PF_FBLikeView|  | PF_FBPlacePicker  | | F |
 89 |                *------------* *----------*  *----------------* | a |
 90 |                *-------------------*  *----------*  *--------* | c |
 91 |  Component --> |   PF_FBGraphObject   |  | PF_FBDialog |  | PF_FBView | | e |
 92 |                *-------------------*  *----------*  *--------* | b |
 93 |                *---------* *---------* *---------------------* | o |
 94 |       Core --> |PF_FBSession| |PF_FBRequest| |Utilities (e.g. JSON)| | o |
 95 |                *---------* *---------* *---------------------* * k *
 96 | 
 97 |  @/textblock
 98 |  
99 | 100 | The figure above describes three layers of functionality, with the existing 101 | Facebook on the side as a helper proxy to a subset of the overall SDK. The 102 | layers loosely organize the SDK into *Core Objects* necessary to interface 103 | with Facebook, higher-level *Framework Components* that feel like natural 104 | extensions to existing frameworks such as UIKit and Foundation, but which 105 | surface behavior broadly applicable to Facebook, and finally the 106 | *Scenario Objects*, which provide deeper turn-key capibilities for useful 107 | mobile scenarios. 108 | 109 | Use example (low barrier use case): 110 | 111 |
112 |  @textblock
113 | 
114 | // log on to Facebook
115 | [PF_FBSession sessionOpenWithPermissions:nil
116 |                     completionHandler:^(PF_FBSession *session, 
117 |                                         PF_FBSessionState status, 
118 |                                         NSError *error) {
119 |                         if (session.isOpen) {
120 |                             // request basic information for the user
121 |                             [PF_FBRequestConnection startWithGraphPath:@"me"
122 |                                                   completionHandler:^void(PF_FBRequestConnection *request, 
123 |                                                                           id result,
124 |                                                                           NSError *error) {
125 |                                                       if (!error) {
126 |                                                           // get json from result
127 |                                                       }
128 |                                                   }];
129 |                         }
130 |                     }];
131 |  @/textblock
132 |  
133 | 134 | */ 135 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/PF_Twitter.h: -------------------------------------------------------------------------------- 1 | // 2 | // PF_Twitter.h 3 | // Copyright (c) 2012 Parse, Inc. All rights reserved. 4 | // 5 | 6 | #import 7 | 8 | /*! 9 | A simple interface for interacting with the Twitter REST API, automating sign-in and OAuth signing of requests against the API. 10 | */ 11 | @interface PF_Twitter : NSObject { 12 | @private 13 | NSString *consumerKey; 14 | NSString *consumerSecret; 15 | NSString *authToken; 16 | NSString *authTokenSecret; 17 | NSString *userId; 18 | NSString *screenName; 19 | } 20 | 21 | @property (nonatomic, copy) NSString *consumerKey; 22 | @property (nonatomic, copy) NSString *consumerSecret; 23 | @property (nonatomic, copy) NSString *authToken; 24 | @property (nonatomic, copy) NSString *authTokenSecret; 25 | @property (nonatomic, copy) NSString *userId; 26 | @property (nonatomic, copy) NSString *screenName; 27 | 28 | /*! 29 | Displays an auth dialog and populates the authToken, authTokenSecret, userId, and screenName properties if the Twitter user 30 | grants permission to the application. 31 | @param success Invoked upon successful authorization. 32 | @param failure Invoked upon an error occurring in the authorization process. 33 | @param cancel Invoked when the user cancels authorization. 34 | */ 35 | - (void)authorizeWithSuccess:(void (^)(void))success failure:(void (^)(NSError *error))failure cancel:(void (^)(void))cancel; 36 | 37 | /*! 38 | Adds a 3-legged OAuth signature to an NSMutableURLRequest based upon the properties set for the Twitter object. Use this 39 | function to sign requests being made to the Twitter API. 40 | */ 41 | - (void)signRequest:(NSMutableURLRequest *)request; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Headers/Parse.h: -------------------------------------------------------------------------------- 1 | // 2 | // Parse.h 3 | // Parse 4 | // 5 | // Created by Ilya Sukhar on 9/29/11. 6 | // Copyright 2011 Parse, Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PFACL.h" 11 | #import "PFAnonymousUtils.h" 12 | #import "PFCloud.h" 13 | #import "PFConstants.h" 14 | #import "PFFacebookUtils.h" 15 | #import "PFFile.h" 16 | #import "PFGeoPoint.h" 17 | #import "PFImageView.h" 18 | #import "PFLogInViewController.h" 19 | #import "PFObject.h" 20 | #import "PFProduct.h" 21 | #import "PFProductTableViewController.h" 22 | #import "PFPush.h" 23 | #import "PFPurchase.h" 24 | #import "PFQuery.h" 25 | #import "PFQueryTableViewController.h" 26 | #import "PFInstallation.h" 27 | #import "PFRelation.h" 28 | #import "PFRole.h" 29 | #import "PFSignUpViewController.h" 30 | #import "PFTableViewCell.h" 31 | #import "PFTwitterUtils.h" 32 | #import "PFUser.h" 33 | #import "PF_FacebookSDK.h" 34 | 35 | @interface Parse : NSObject 36 | 37 | /** @name Connecting to Parse */ 38 | 39 | /*! 40 | Sets the applicationId and clientKey of your application. 41 | @param applicationId The applicaiton id for your Parse application. 42 | @param applicationId The client key for your Parse application. 43 | */ 44 | + (void)setApplicationId:(NSString *)applicationId clientKey:(NSString *)clientKey; 45 | 46 | /** @name Configuring Facebook Settings */ 47 | 48 | /*! 49 | Sets the Facebook application id that you are using with your Parse application. You must set this in 50 | order to use the Facebook functionality in Parse. 51 | @param applicationId The Facebook application id that you are using with your Parse application. 52 | */ 53 | + (void)setFacebookApplicationId:(NSString *)applicationId __attribute__ ((deprecated)); 54 | 55 | /*! 56 | Whether the Facebook application id has been set. 57 | */ 58 | + (BOOL)hasFacebookApplicationId __attribute__ ((deprecated)); 59 | 60 | /** @name Configuring UI Settings */ 61 | 62 | /*! 63 | Set whether to show offline messages when using a Parse view or view controller related classes. 64 | @param enabled Whether a UIAlert should be shown when the device is offline and network access is required 65 | from a view or view controller. 66 | */ 67 | + (void)offlineMessagesEnabled:(BOOL)enabled; 68 | 69 | /*! 70 | Set whether to show an error message when using a Parse view or view controller related classes 71 | and a Parse error was generated via a query. 72 | @param enabled Whether a UIAlert should be shown when a Parse error occurs. 73 | */ 74 | + (void)errorMessagesEnabled:(BOOL)enabled; 75 | 76 | + (NSString *)getApplicationId; 77 | + (NSString *)getClientKey; 78 | + (NSString *)getFacebookApplicationId __attribute__ ((deprecated)); 79 | 80 | @end -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Parse: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Parse.framework/Versions/1.1.13/Parse -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | Parse 9 | CFBundleIdentifier 10 | com.parse.Parse 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | 20 | 21 | -------------------------------------------------------------------------------- /Parse.framework/Versions/1.1.13/Resources/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/TwilioCloudModule/ee4d2dc5699f73db07521d49bb0082287f429f05/Parse.framework/Versions/1.1.13/Resources/Localizable.strings -------------------------------------------------------------------------------- /Parse.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | 1.1.13 -------------------------------------------------------------------------------- /ParseTwilioCloudModule/AddFriendViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AddFriendViewController.h 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Matt GA on 11/2/12. 6 | // 7 | 8 | #import 9 | #import 10 | 11 | @interface AddFriendViewController : UIViewController 12 | 13 | @property (nonatomic, strong) IBOutlet UITextField *nameField; 14 | @property (nonatomic, strong) IBOutlet UITextField *phoneField; 15 | @property (nonatomic, strong) IBOutlet UIButton *addButton; 16 | 17 | - (IBAction)addFriendButtonHandler:(id)sender; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/AddFriendViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // AddFriendViewController.m 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Matt GA on 11/2/12. 6 | // 7 | 8 | #import "AddFriendViewController.h" 9 | 10 | 11 | @implementation AddFriendViewController 12 | 13 | 14 | - (void)viewDidLoad { 15 | [self.addButton addTarget:self action:@selector(addFriendButtonHandler:) forControlEvents:UIControlEventTouchUpInside]; 16 | } 17 | 18 | /* Create new friend object and add to Parse */ 19 | - (IBAction)addFriendButtonHandler:(id)sender { 20 | // Make sure fields were filled out 21 | if ([self.nameField.text length] == 0 || [self.phoneField.text length] == 0) 22 | { 23 | [[[UIAlertView alloc] initWithTitle:@"Forgot Something" message:@"You need to add a phone number and a name." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil] show]; 24 | return; 25 | } 26 | 27 | // Create new Friend object and save it 28 | PFObject *friend = [[PFObject alloc] initWithClassName:@"Friend"]; 29 | [friend setObject:self.nameField.text forKey:@"name"]; 30 | [friend setObject:self.phoneField.text forKey:@"number"]; 31 | [friend saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { 32 | if (!error) { 33 | [self.navigationController popViewControllerAnimated:YES]; 34 | } else { 35 | [[[UIAlertView alloc] initWithTitle:@"Something Went Wrong" message:@"Uh oh, try again!" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil] show]; 36 | } 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Mattieu Gamache-Asselin on 10/25/12. 6 | // 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Mattieu Gamache-Asselin on 10/25/12. 6 | // 7 | 8 | #import "AppDelegate.h" 9 | #import "FriendsTableViewController.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 14 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 15 | 16 | // **************************************************************************** 17 | // Add your Parse credentials here 18 | 19 | [Parse setApplicationId:@"PARSE_APPLICATION_ID" 20 | clientKey:@"PARSE_CLIENT_KEY"]; 21 | // 22 | // **************************************************************************** 23 | 24 | // Override point for customization after application launch. 25 | self.window.backgroundColor = [UIColor whiteColor]; 26 | [self.window makeKeyAndVisible]; 27 | 28 | FriendsTableViewController *viewController = [[FriendsTableViewController alloc] init]; 29 | self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:viewController]; 30 | 31 | return YES; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/FriendsTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FriendsTableViewController.h 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Mattieu Gamache-Asselin on 11/2/12. 6 | // 7 | 8 | #import 9 | #import 10 | #import 11 | 12 | @interface FriendsTableViewController : PFQueryTableViewController 13 | 14 | - (void)inviteContactButtonTouchHandler:(id)sender; 15 | - (void)addFriendButtonTouchHandler:(id)sender; 16 | - (void)sendSMSToNumber:(NSString *)number; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/FriendsTableViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FriendsTableViewController.m 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Mattieu Gamache-Asselin on 11/2/12. 6 | // 7 | 8 | #import "FriendsTableViewController.h" 9 | #import "AddFriendViewController.h" 10 | 11 | @implementation FriendsTableViewController 12 | 13 | - (id)init { 14 | self = [super init]; 15 | if (self) { 16 | // Initialization properties 17 | self.className = @"Friend"; 18 | self.textKey = @"name"; 19 | self.paginationEnabled = YES; 20 | self.objectsPerPage = 20; 21 | self.title = @"Parse and Twilio!"; 22 | 23 | // Add Contacts navbar button 24 | self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Contacts" style:UIBarButtonItemStyleBordered target:self action:@selector(inviteContactButtonTouchHandler:)]; 25 | self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addFriendButtonTouchHandler:)]; 26 | } 27 | return self; 28 | } 29 | 30 | 31 | #pragma mark - UIViewController 32 | 33 | - (void)viewDidAppear:(BOOL)animated { 34 | [self.tableView reloadData]; 35 | } 36 | 37 | 38 | #pragma mark - PFQueryTableViewController 39 | 40 | /* Set the Parse query run by the PFQueryTableViewController */ 41 | - (PFQuery *)queryForTable { 42 | PFQuery *query = [PFQuery queryWithClassName:self.className]; 43 | return query; 44 | } 45 | 46 | 47 | #pragma mark - UITableViewDelegate 48 | 49 | /* Call sendSMS with appropriate phone number when row is selected */ 50 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 51 | PFObject * selectedFriend = [self.objects objectAtIndex:indexPath.row]; 52 | [self sendSMSToNumber:[selectedFriend objectForKey:@"number"]]; 53 | } 54 | 55 | 56 | #pragma mark - ABPeoplePickerDelegate 57 | 58 | /* Always allow looking at address book contacts details */ 59 | - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { 60 | return YES; 61 | } 62 | 63 | /* Send invitation text to phone number when an address book contact is selected */ 64 | - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier { 65 | 66 | if (property == kABPersonPhoneProperty) { 67 | // Get selected phone number 68 | ABMultiValueRef phoneProperty = ABRecordCopyValue(person,property); 69 | NSString *phoneNumber = (__bridge_transfer NSString *)ABMultiValueCopyValueAtIndex(phoneProperty,identifier); 70 | 71 | // Make Cloud Code function call 72 | [self sendSMSToNumber:phoneNumber]; 73 | [self dismissViewControllerAnimated:YES completion:nil]; 74 | } 75 | 76 | return NO; 77 | } 78 | 79 | /* Called when the user cancels the address book view controller. We simply dismiss it. */ 80 | - (void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker { 81 | [self dismissViewControllerAnimated:YES completion:nil]; 82 | } 83 | 84 | 85 | #pragma mark - () 86 | 87 | /* Button touch handler for the contact navigation bar button */ 88 | - (void)inviteContactButtonTouchHandler:(id)sender { 89 | ABPeoplePickerNavigationController *addressBook = [[ABPeoplePickerNavigationController alloc] init]; 90 | addressBook.peoplePickerDelegate = self; 91 | addressBook.displayedProperties = [NSArray arrayWithObject:[NSNumber numberWithInt:kABPersonPhoneProperty]]; 92 | [self presentViewController:addressBook animated:YES completion:nil]; 93 | } 94 | 95 | - (void)addFriendButtonTouchHandler:(id)sender { 96 | AddFriendViewController *addFriendController = [[AddFriendViewController alloc] initWithNibName:@"AddFriendViewController" bundle:nil]; 97 | [self.navigationController pushViewController:addFriendController animated:YES]; 98 | } 99 | 100 | /* Send invitation SMS to a phone number using Cloud Code and Twilio! */ 101 | - (void)sendSMSToNumber:(NSString *)number { 102 | NSDictionary *params = [NSDictionary dictionaryWithObject:number forKey:@"number"]; 103 | [PFCloud callFunctionInBackground:@"inviteWithTwilio" withParameters:params block:^(id object, NSError *error) { 104 | NSString *message = @""; 105 | if (!error) { 106 | message = @"Your SMS invitation has been sent!"; 107 | } else { 108 | message = @"Uh oh, something went wrong :("; 109 | } 110 | 111 | [[[UIAlertView alloc] initWithTitle:@"Invite Sent!" 112 | message:message 113 | delegate:nil 114 | cancelButtonTitle:@"Ok" 115 | otherButtonTitles:nil, nil] show]; 116 | [self.tableView reloadData]; 117 | }]; 118 | } 119 | @end 120 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/ParseTwilioCloudModule-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIcons 12 | 13 | CFBundlePrimaryIcon 14 | 15 | CFBundleIconFiles 16 | 17 | Icon.png 18 | Icon@2x.png 19 | 20 | 21 | 22 | CFBundleIdentifier 23 | com.Parse.${PRODUCT_NAME:rfc1034identifier} 24 | CFBundleInfoDictionaryVersion 25 | 6.0 26 | CFBundleName 27 | ${PRODUCT_NAME} 28 | CFBundlePackageType 29 | APPL 30 | CFBundleShortVersionString 31 | 1.0 32 | CFBundleSignature 33 | ???? 34 | CFBundleVersion 35 | 1.0 36 | LSRequiresIPhoneOS 37 | 38 | UIRequiredDeviceCapabilities 39 | 40 | armv7 41 | 42 | UISupportedInterfaceOrientations 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/ParseTwilioCloudModule-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'ParseTwilioCloudModule' target in the 'ParseTwilioCloudModule' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_6_0 8 | #warning "This project uses features only available in iOS SDK 6.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /ParseTwilioCloudModule/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ParseTwilioCloudModule 4 | // 5 | // Created by Mattieu Gamache-Asselin on 11/2/12. 6 | // 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char *argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Parse Twilio Cloud Module 2 | 3 | This sample application shows off the use of Parse and the Twilio Cloud Module by sending SMSs to phone numbers stored in Parse or in your address book. [Cloud Modules][cloudModulesGuide] are third-party integration libraries available from Cloud Code. 4 | 5 | ## Setup Instructions 6 | 7 | 1. Clone the repository and open the Xcode project. 8 | 2. Add your Parse application id and client key in `AppDelegate.m`. 9 | 3. Install the Parse command line tool by entering the command `curl -s https://www.parse.com/downloads/cloud_code/installer.sh | sudo /bin/bash` in your terminal (Mac) or command prompt (Windows). 10 | 4. From the root directory of the app, enter the command `parse new` in your terminal or command prompt in order to setup the cloud code configuration files. 11 | 5. You'll be prompted for your Parse username and password, and you'll also be shown a list of your Parse apps. Choose the one you want to associate with this project. Make sure this matches the application id and client key you entered in step 1! 12 | 6. Open the `main.js` file located in `/parse/cloud/` and enter your Twilio accout SID and auth token. 13 | 7. Run `parse deploy`. This will deploy the Cloud Code for this app. 14 | 15 | For more information on installing and using Cloud Code and the Parse command line tool check out the [screencast][tutorial] for Cloud Code as well as the Cloud Code [documentation](https://www.parse.com/docs/cloud_code_guide). 16 | 17 | [tutorial]: https://parse.com/tutorials/getting-started-with-cloud-code 18 | [cloudModulesGuide]: https://parse.com/docs/cloud_modules_guide -------------------------------------------------------------------------------- /parse/cloud/main.js: -------------------------------------------------------------------------------- 1 | var twilio = require("twilio"); 2 | twilio.initialize("TWILIO_ACCOUNT_SID","TWILIO_AUTH_TOKEN"); 3 | 4 | Parse.Cloud.define("inviteWithTwilio", function(request, response) { 5 | twilio.sendSMS({ 6 | From: "TWILIO_PHONE_NUMBER", 7 | To: request.params.number, 8 | Body: "Start using Parse and Twilio!" 9 | }, { 10 | success: function(httpResponse) { 11 | console.log(httpResponse); 12 | response.success("SMS sent!"); 13 | }, 14 | error: function(httpResponse) { 15 | console.error(httpResponse); 16 | response.error("Uh oh, something went wrong"); 17 | } 18 | }); 19 | }); 20 | 21 | --------------------------------------------------------------------------------