mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Disable fastaddressbook
This commit is contained in:
parent
b7b80681ad
commit
0c3cc9b5c7
3 changed files with 13 additions and 4 deletions
|
|
@ -43,6 +43,7 @@ extern NSString *const kLinphoneMainViewChange;
|
|||
/* MODIFICATION: Add buschjaeger configuration event */
|
||||
extern NSString *const kLinphoneConfigurationUpdate;
|
||||
extern NSString *const kLinphoneConfigurationPath;
|
||||
extern NSString *const kLinphonePEMPath;
|
||||
/**/
|
||||
extern NSString *const kLinphoneAddressBookUpdate;
|
||||
extern NSString *const kLinphoneLogsUpdate;
|
||||
|
|
@ -146,8 +147,9 @@ typedef struct _LinphoneManagerSounds {
|
|||
/* MODIFICATION: Add NSUSerdefault settings */
|
||||
- (BOOL)reconfigureLinphone;
|
||||
/**/
|
||||
|
||||
/* MODIFICATION: Disable addressbook
|
||||
@property (readonly) FastAddressBook* fastAddressBook;
|
||||
*/
|
||||
@property Connectivity connectivity;
|
||||
@property (readonly) const char* frontCamId;
|
||||
@property (readonly) const char* backCamId;
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ NSString *const kLinphoneRegistrationUpdate = @"LinphoneRegistrationUpdate";
|
|||
/* MODIFICATION: Add buschjaeger configuration event */
|
||||
NSString *const kLinphoneConfigurationUpdate = @"LinphoneConfigurationUpdate";
|
||||
NSString *const kLinphoneConfigurationPath = @"buschjaeger.ini";
|
||||
NSString *const kLinphonePEMPath = @"certificates";
|
||||
/**/
|
||||
NSString *const kLinphoneAddressBookUpdate = @"LinphoneAddressBookUpdate";
|
||||
NSString *const kLinphoneMainViewChange = @"LinphoneMainViewChange";
|
||||
|
|
@ -87,7 +88,9 @@ extern void libmsbcg729_init();
|
|||
@synthesize configuration;
|
||||
/**/
|
||||
@synthesize database;
|
||||
/* MODIFICATION: Disable addressbook
|
||||
@synthesize fastAddressBook;
|
||||
*/
|
||||
@synthesize pushNotificationToken;
|
||||
@synthesize sounds;
|
||||
@synthesize logs;
|
||||
|
|
@ -244,8 +247,9 @@ struct codec_name_pref_table codec_pref_table[]={
|
|||
if(sounds.message) {
|
||||
AudioServicesDisposeSystemSoundID(sounds.message);
|
||||
}
|
||||
|
||||
/* MODIFICATION: Disable addressbook
|
||||
[fastAddressBook release];
|
||||
*/
|
||||
[self closeDatabase];
|
||||
[logs release];
|
||||
|
||||
|
|
@ -661,7 +665,9 @@ static LinphoneCoreVTable linphonec_vtable = {
|
|||
, [factoryConfig cStringUsingEncoding:[NSString defaultCStringEncoding]]
|
||||
,self);
|
||||
|
||||
fastAddressBook = [[FastAddressBook alloc] init];
|
||||
/* MODIFICATION: Disable addressbook
|
||||
fastAddressBook = [[FastAddressBook alloc] init];
|
||||
*/
|
||||
|
||||
linphone_core_set_root_ca(theLinphoneCore, lRootCa);
|
||||
// Set audio assets
|
||||
|
|
|
|||
|
|
@ -69,10 +69,11 @@
|
|||
- (void)touchUp:(id) sender {
|
||||
NSString *address = [addressField text];
|
||||
NSString *displayName = nil;
|
||||
/* MODIFICATION: Disable addressbook
|
||||
ABRecordRef contact = [[[LinphoneManager instance] fastAddressBook] getContact:address];
|
||||
if(contact) {
|
||||
displayName = [FastAddressBook getContactDisplayName:contact];
|
||||
}
|
||||
}*/
|
||||
[[LinphoneManager instance] call:address displayName:displayName transfer:FALSE];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue