Skip to content

Commit 88eccf2

Browse files
committed
Updates in RestCommClient: No news from appledoc; switched to Doxygen. This is a first attempt at the reference documentation :)
1 parent 09c2352 commit 88eccf2

File tree

161 files changed

+10138
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+10138
-27
lines changed

RestCommClient/RestCommClient.xcodeproj/project.pbxproj

+53
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66
objectVersion = 46;
77
objects = {
88

9+
/* Begin PBXAggregateTarget section */
10+
AE72641A19F4302E000AE2ED /* Documentation */ = {
11+
isa = PBXAggregateTarget;
12+
buildConfigurationList = AE72641D19F4302E000AE2ED /* Build configuration list for PBXAggregateTarget "Documentation" */;
13+
buildPhases = (
14+
AE72641E19F43037000AE2ED /* ShellScript */,
15+
);
16+
dependencies = (
17+
);
18+
name = Documentation;
19+
productName = Documentation;
20+
};
21+
/* End PBXAggregateTarget section */
22+
923
/* Begin PBXBuildFile section */
1024
AE1AB97E19EA7FB20002ECFA /* libsofia-sip-ua.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AE1AB97D19EA7FB20002ECFA /* libsofia-sip-ua.a */; };
1125
AEA6C4B119DB412A00BD2455 /* sdp_utils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AEA6C4A219DB412A00BD2455 /* sdp_utils.cpp */; };
@@ -590,6 +604,7 @@
590604
targets = (
591605
AEC1220B19728C850035B864 /* RestCommClient */,
592606
AEC1221B19728C850035B864 /* RestCommClientTests */,
607+
AE72641A19F4302E000AE2ED /* Documentation */,
593608
);
594609
};
595610
/* End PBXProject section */
@@ -605,6 +620,22 @@
605620
};
606621
/* End PBXResourcesBuildPhase section */
607622

623+
/* Begin PBXShellScriptBuildPhase section */
624+
AE72641E19F43037000AE2ED /* ShellScript */ = {
625+
isa = PBXShellScriptBuildPhase;
626+
buildActionMask = 2147483647;
627+
files = (
628+
);
629+
inputPaths = (
630+
);
631+
outputPaths = (
632+
);
633+
runOnlyForDeploymentPostprocessing = 0;
634+
shellPath = /bin/sh;
635+
shellScript = "cd \"${PROJECT_DIR}/doc\"\n/opt/local/bin/doxygen Doxyfile";
636+
};
637+
/* End PBXShellScriptBuildPhase section */
638+
608639
/* Begin PBXSourcesBuildPhase section */
609640
AEC1220819728C850035B864 /* Sources */ = {
610641
isa = PBXSourcesBuildPhase;
@@ -656,6 +687,20 @@
656687
/* End PBXVariantGroup section */
657688

658689
/* Begin XCBuildConfiguration section */
690+
AE72641B19F4302E000AE2ED /* Debug */ = {
691+
isa = XCBuildConfiguration;
692+
buildSettings = {
693+
PRODUCT_NAME = "$(TARGET_NAME)";
694+
};
695+
name = Debug;
696+
};
697+
AE72641C19F4302E000AE2ED /* Release */ = {
698+
isa = XCBuildConfiguration;
699+
buildSettings = {
700+
PRODUCT_NAME = "$(TARGET_NAME)";
701+
};
702+
name = Release;
703+
};
659704
AEC1222D19728C850035B864 /* Debug */ = {
660705
isa = XCBuildConfiguration;
661706
buildSettings = {
@@ -815,6 +860,14 @@
815860
/* End XCBuildConfiguration section */
816861

817862
/* Begin XCConfigurationList section */
863+
AE72641D19F4302E000AE2ED /* Build configuration list for PBXAggregateTarget "Documentation" */ = {
864+
isa = XCConfigurationList;
865+
buildConfigurations = (
866+
AE72641B19F4302E000AE2ED /* Debug */,
867+
AE72641C19F4302E000AE2ED /* Release */,
868+
);
869+
defaultConfigurationIsVisible = 0;
870+
};
818871
AEC1220719728C850035B864 /* Build configuration list for PBXProject "RestCommClient" */ = {
819872
isa = XCConfigurationList;
820873
buildConfigurations = (

RestCommClient/RestCommClient/RCConnection.h

+9-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@
1111
#import "RCConnectionDelegate.h"
1212
#import "SipManager.h"
1313

14+
/** @file RCConnection.h */
15+
1416
/**
15-
Connection State
17+
* Connection State
1618
*/
1719
typedef enum
1820
{
19-
RCConnectionStatePending = 0, /** Connection is in state pending */
20-
RCConnectionStateConnecting, /** Connection is in state connecting */
21-
RCConnectionStateConnected, /** Connection is in state connected */
22-
RCConnectionStateDisconnected /** Connection is in state disconnected */
21+
RCConnectionStatePending = 0, /**< Connection is in state pending */
22+
RCConnectionStateConnecting, /**< Connection is in state connecting */
23+
RCConnectionStateConnected, /**< Connection is in state connected */
24+
RCConnectionStateDisconnected /**< Connection is in state disconnected */
2325
} RCConnectionState;
2426

2527

@@ -77,7 +79,7 @@ extern NSString* const RCConnectionIncomingParameterCallSIDKey;
7779
- (void)accept;
7880

7981
/**
80-
* Ignore connection
82+
* Ignore connection (not implemented)
8183
*/
8284
- (void)ignore;
8385

@@ -92,7 +94,7 @@ extern NSString* const RCConnectionIncomingParameterCallSIDKey;
9294
- (void)disconnect;
9395

9496
/**
95-
* Send DTMF tones over a connection that is in state 'RCConnectionStateConnected'
97+
* Send DTMF tones over a connection that is in state 'RCConnectionStateConnected' (not implemented)
9698
*
9799
* @param digits A string of digits that will be sent
98100
*/

RestCommClient/RestCommClient/RCConnectionDelegate.h

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
/** @file RCConnectionDelegate.h */
12+
1113
@class RCConnection;
1214

1315
/**

RestCommClient/RestCommClient/RCDevice.h

+15-14
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
#import "RCConnectionDelegate.h"
1313
#import "SipManager.h"
1414

15+
/** @file RCDevice.h */
16+
1517
/**
16-
Device State
18+
* Device State
1719
*/
1820
typedef enum {
19-
RCDeviceStateOffline = 0, /** Device is offline */
20-
RCDeviceStateReady, /** Device is ready to make and receive connections */
21-
RCDeviceStateBusy /** Device is busy */
21+
RCDeviceStateOffline = 0, /**< Device is offline */
22+
RCDeviceStateReady, /**< Device is ready to make and receive connections */
23+
RCDeviceStateBusy /**< Device is busy */
2224
} RCDeviceState;
2325

2426
extern NSString* const RCDeviceCapabilityIncomingKey;
@@ -29,36 +31,35 @@ extern NSString* const RCDeviceCapabilityApplicationSIDKey;
2931
extern NSString* const RCDeviceCapabilityApplicationParametersKey;
3032
extern NSString* const RCDeviceCapabilityClientNameKey;
3133

32-
3334
@class RCConnection;
3435

3536
/**
3637
* Represents an abstraction of a communication device able to make and receive calls, send and receive messages etc
3738
*/
38-
@interface RCDevice : NSObject <SipManagerDeviceDelegate,NSURLConnectionDelegate>
39+
@interface RCDevice : NSObject<SipManagerDeviceDelegate, NSURLConnectionDelegate>
3940
/**
4041
* Device state
4142
*/
4243
@property (nonatomic, readonly) RCDeviceState state;
44+
4345
/**
4446
* Device capabilities
4547
*/
46-
4748
@property (nonatomic, readonly) NSDictionary* capabilities;
49+
4850
/**
4951
* Delegate that will be receiving RCDevice events
5052
*/
51-
5253
@property (nonatomic, assign) id<RCDeviceDelegate> delegate;
54+
5355
/**
5456
* Sound for incoming connections enabled
5557
*/
56-
5758
@property (nonatomic) BOOL incomingSoundEnabled;
59+
5860
/**
5961
* Sound for outgoing connections enabled
6062
*/
61-
6263
@property (nonatomic) BOOL outgoingSoundEnabled;
6364

6465
/**
@@ -82,14 +83,14 @@ extern NSString* const RCDeviceCapabilityClientNameKey;
8283
- (void)listen;
8384

8485
/**
85-
* Stop listening for incoming connections
86+
* Stop listening for incoming connections (not implemented)
8687
*/
8788
- (void)unlisten;
8889

8990
/**
9091
* Update Capability Token
9192
*
92-
* @param capabilityToken New Capability Token
93+
* @param capabilityToken New Capability Token (not implemented)
9394
*/
9495
- (void)updateCapabilityToken:(NSString*)capabilityToken;
9596

@@ -112,7 +113,7 @@ extern NSString* const RCDeviceCapabilityClientNameKey;
112113
- (void)sendMessage:(NSString*)message to:(NSDictionary*)receiver;
113114

114115
/**
115-
* Disconnect all connections
116+
* Disconnect all connections (not implemented)
116117
*/
117118
- (void)disconnectAll;
118119

@@ -122,5 +123,5 @@ extern NSString* const RCDeviceCapabilityClientNameKey;
122123
* @param params Dictionary of key/value pairs of the parameters that will be updated
123124
*/
124125
- (void) updateParams:(NSDictionary*)params;
126+
@end
125127

126-
@end

RestCommClient/RestCommClient/RCDevice.m

-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ - (void)sendMessage:(NSString*)message to:(NSDictionary*)parameters
111111
- (void)disconnectAll
112112
{
113113
NSLog(@"[RCDevice disconnectAll]");
114-
115114
}
116115

117116
#pragma mark SipManager Delegate methods

RestCommClient/RestCommClient/RCDeviceDelegate.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright (c) 2014 TeleStax. All rights reserved.
77
//
88

9+
/** @file RCDeviceDelegate.h */
10+
911
@class RCDevice;
1012
@class RCConnection;
1113
@class RCPresenceEvent;
@@ -14,6 +16,7 @@
1416
* RCDevice notifies its delegate for events defined in this delegate protocol
1517
*/
1618
@protocol RCDeviceDelegate<NSObject>
19+
1720
@required
1821
/**
1922
* Device stoped listening for incoming connections
@@ -54,4 +57,5 @@
5457
* @param message Instant message
5558
*/
5659
- (void)device:(RCDevice *)device didReceiveIncomingMessage:(NSString *)message;
57-
@end
60+
@end
61+

0 commit comments

Comments
 (0)