| 552 | | - (void)addPopUpAdress:(int)type sens:(int)sens str:(NSString*)str |
| 553 | | { |
| 554 | | if(sens==0) { |
| 555 | | if(type==0) |
| 556 | | [inDataPopB addItemWithTitle:str] ; |
| 557 | | else if(type==1) |
| 558 | | [inAudioPopB addItemWithTitle:str] ; |
| 559 | | else if(type==2) |
| 560 | | [inVideoPopB addItemWithTitle:str] ; |
| 561 | | } |
| 562 | | else { |
| 563 | | if(type==0) |
| 564 | | [outDataPopB addItemWithTitle:str] ; |
| 565 | | else if(type==1) |
| 566 | | [outAudioPopB addItemWithTitle:str] ; |
| 567 | | else if(type==2) |
| 568 | | [outVideoPopB addItemWithTitle:str] ; |
| 569 | | } |
| 570 | | } |
| 571 | | - (void)removePopUpAdress:(int)type sens:(int)sens str:(NSString*)str |
| 572 | | { |
| 573 | | bool fV = ([inVideoPopB indexOfItemWithTitle:str]!=-1) ; |
| 574 | | bool fA = ([inAudioPopB indexOfItemWithTitle:str]!=-1) ; |
| 575 | | bool fD = ([inDataPopB indexOfItemWithTitle:str]!=-1) ; |
| 576 | | |
| 577 | | if(sens==0) { |
| 578 | | if(type==0 && fD) |
| 579 | | [inDataPopB removeItemWithTitle:str] ; |
| 580 | | else if(type==1 && fA) |
| 581 | | [inAudioPopB removeItemWithTitle:str] ; |
| 582 | | else if(type==2 && fV) |
| 583 | | [inVideoPopB removeItemWithTitle:str] ; |
| 584 | | } |
| 585 | | else { |
| 586 | | if(type==0 && fD) |
| 587 | | [outDataPopB removeItemWithTitle:str] ; |
| 588 | | else if(type==1 && fA) |
| 589 | | [outAudioPopB removeItemWithTitle:str] ; |
| 590 | | else if(type==2 && fV) |
| 591 | | [outVideoPopB removeItemWithTitle:str] ; |
| 592 | | } |
| 593 | | } |
| 594 | | |