Disable fastaddressbook

This commit is contained in:
Yann Diorcet 2012-09-20 11:07:03 +02:00
parent b7b80681ad
commit 0c3cc9b5c7
3 changed files with 13 additions and 4 deletions

View file

@ -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;

View file

@ -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

View file

@ -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];
}