Skip to content

Commit 16ff9f9

Browse files
author
Evadne Wu
committed
ObjC | adds IRWebAPIInterfaceURLShortening protocol
1 parent acb73ea commit 16ff9f9

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

‎IRWebAPIInterfaceURLShortening.h‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// IRWebAPIInterfaceURLShortening.h
3+
// IRWebAPIKit
4+
//
5+
// Created by Evadne Wu on 12/16/10.
6+
// Copyright 2010 Iridia Productions. All rights reserved.
7+
//
8+
9+
#import "IRWebAPIKit.h"
10+
11+
#ifndef __IRWebAPIInterface__URLShortening__
12+
#define __IRWebAPIInterface__URLShortening__
13+
14+
typedef void (^IRWebAPIInterfaceURLShorteningCallback) (IRWebAPIInterface *inInterface, NSURL *inOriginalURL, NSURL *inShortenedURLOrNil);
15+
16+
#endif
17+
18+
19+
20+
21+
22+
@protocol IRWebAPIInterfaceURLShortening
23+
24+
@required
25+
26+
- (void) shortenURL:(NSURL *)inOriginalURL withCallback:(IRWebAPIInterfaceURLShorteningCallback)inCallback userInfo:(id)inUserInfo;
27+
28+
@end

‎IRWebAPIKit.h‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ typedef void (^IRWebAPIEngineExecutionBlock) (void);
6868
#import "IRWebAPICredentials.h"
6969
#import "IRWebAPIInterface.h"
7070

71-
#import "IRWebAPIGoogleReaderAuthenticator.h"
72-
#import "IRWebAPIXOAuthAuthenticator.h"
73-
7471
#import "IRWebAPIInterfaceAuthenticating.h"
7572
#import "IRWebAPIInterfaceXOAuthAuthenticating.h"
7673

77-
#import "IRWebAPITwitterInterface.h"
74+
#import "IRWebAPIInterfaceURLShortening.h"
7875

76+
#import "IRWebAPIGoogleReaderAuthenticator.h"
77+
#import "IRWebAPIXOAuthAuthenticator.h"
78+
79+
#import "IRWebAPITwitterInterface.h"
7980
#import "IRWebAPIGoogleReaderInterface.h"
8081

8182

‎IRWebAPIKit.xcodeproj/project.pbxproj‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
FF0E874112B9F41C00DF571E /* IRWebAPIInterfaceURLShortening.h in Headers */ = {isa = PBXBuildFile; fileRef = FF0E874012B9F41C00DF571E /* IRWebAPIInterfaceURLShortening.h */; };
1011
FF25FA2F1299406200975BE3 /* IRWebAPICredentials.h in Headers */ = {isa = PBXBuildFile; fileRef = FF25FA2D1299406200975BE3 /* IRWebAPICredentials.h */; };
1112
FF25FA301299406200975BE3 /* IRWebAPICredentials.m in Sources */ = {isa = PBXBuildFile; fileRef = FF25FA2E1299406200975BE3 /* IRWebAPICredentials.m */; };
1213
FF25FA331299406800975BE3 /* IRWebAPIAuthenticator.h in Headers */ = {isa = PBXBuildFile; fileRef = FF25FA311299406800975BE3 /* IRWebAPIAuthenticator.h */; };
@@ -40,6 +41,7 @@
4041
/* End PBXBuildFile section */
4142

4243
/* Begin PBXFileReference section */
44+
FF0E874012B9F41C00DF571E /* IRWebAPIInterfaceURLShortening.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRWebAPIInterfaceURLShortening.h; sourceTree = "<group>"; };
4345
FF25FA2D1299406200975BE3 /* IRWebAPICredentials.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRWebAPICredentials.h; sourceTree = "<group>"; };
4446
FF25FA2E1299406200975BE3 /* IRWebAPICredentials.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IRWebAPICredentials.m; sourceTree = "<group>"; };
4547
FF25FA311299406800975BE3 /* IRWebAPIAuthenticator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRWebAPIAuthenticator.h; sourceTree = "<group>"; };
@@ -194,6 +196,7 @@
194196
FF896B5812A5667A00AE2AF3 /* Interfacing Wrapper */ = {
195197
isa = PBXGroup;
196198
children = (
199+
FF0E874012B9F41C00DF571E /* IRWebAPIInterfaceURLShortening.h */,
197200
FF896A6912A5666D00AE2AF3 /* IRWebAPIInterface.h */,
198201
FF896A6A12A5666D00AE2AF3 /* IRWebAPIInterface.m */,
199202
FF47A29A12A6486900AF729F /* IRWebAPIInterfaceAuthenticating.h */,
@@ -239,6 +242,7 @@
239242
FF48661612A6329900B75591 /* IRWebAPIGoogleReaderInterface.h in Headers */,
240243
FF47A29B12A6486900AF729F /* IRWebAPIInterfaceAuthenticating.h in Headers */,
241244
FFC41B9112B8C59B008EF3D4 /* IRWebAPITwitterInterface+Geo.h in Headers */,
245+
FF0E874112B9F41C00DF571E /* IRWebAPIInterfaceURLShortening.h in Headers */,
242246
);
243247
runOnlyForDeploymentPostprocessing = 0;
244248
};

0 commit comments

Comments
 (0)