한국어

스마트폰앱

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


SideMenuTableView.m
/*
 * Copyright (c) 2010-2020 Belledonne Communications SARL.
 *
 * This file is part of linphone-iphone
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#import "linphone/core_utils.h"

#import "SideMenuTableView.h"
#import "Utils.h"

#import "PhoneMainView.h"
#import "StatusBarView.h"
#import "ShopView.h"
#import "LinphoneManager.h"
#import "RecordingsListView.h"

@implementation SideMenuEntry

- (id)initWithTitle:(NSString *)atitle image:(UIImage *)image tapBlock:(SideMenuEntryBlock)tapBlock {
if ((self = [super init])) {
        img = image;
title = atitle;
onTapBlock = tapBlock;
}
return self;
}

@end

@implementation SideMenuTableView

- (void)viewDidLoad {
[super viewDidLoad];

// remove separators between empty items, cf
// http://stackoverflow.com/questions/1633966/can-i-force-a-uitableview-to-hide-the-separator-between-empty-cells
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
}

- (void)viewWillAppear:(BOOL)animated {
linphone_core_stop_dtmf_stream(LC);
[super viewWillAppear:animated];

_sideMenuEntries = [[NSMutableArray alloc] init];

[_sideMenuEntries
addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"Assistant", nil)
                                                 image:[UIImage imageNamed:@"menu_assistant.png"]
  tapBlock:^() {
[PhoneMainView.instance
changeCurrentView:AssistantView.compositeViewDescription];
  }]];
BOOL mustLink = ([LinphoneManager.instance lpConfigIntForKey:@"must_link_account_time"] > 0);
BOOL hasAccount = linphone_core_get_account_list(LC) != NULL;
if (mustLink && hasAccount) {
[_sideMenuEntries
addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"Link my account", nil)
                                                     image:[UIImage imageNamed:@"menu_link_account.png"]
  tapBlock:^() {
[PhoneMainView.instance
changeCurrentView:AssistantLinkView.compositeViewDescription];
  }]];
}

    
/*[_sideMenuEntries
addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"Settings", nil)
                                                 image:[UIImage imageNamed:@"menu_options.png"]
  tapBlock:^() {
[PhoneMainView.instance
changeCurrentView:SettingsView.compositeViewDescription];
  }]];*/ //comment added by moon
    [_sideMenuEntries
     addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"Recordings", nil)
                                              image:[UIImage imageNamed:@"menu_recordings.png"]
                                           tapBlock:^() {
                                               [PhoneMainView.instance
                                                changeCurrentView:RecordingsListView.compositeViewDescription];
                                           }]];
InAppProductsManager *iapm = LinphoneManager.instance.iapManager;
if (iapm.enabled){
[_sideMenuEntries
addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"Shop", nil)
                                                     image:nil
  tapBlock:^() {
[PhoneMainView.instance
changeCurrentView:ShopView.compositeViewDescription];
  }]];
}
[_sideMenuEntries addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"About", nil)
                                                               image:[UIImage imageNamed:@"menu_about.png"]
tapBlock:^() {
  [PhoneMainView.instance
  changeCurrentView:AboutView.compositeViewDescription];

}]];
}

#pragma mark - Table View Controller
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { //섹션 갯수
return 2;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { //섹션에 들어갈 로우갯수
if (section == 0) {
BOOL hasDefault = (linphone_core_get_default_account(LC) != NULL);
// default account is shown in the header already
size_t count = bctbx_list_size(linphone_core_get_account_list(LC));
return MAX(0, (int)count - (hasDefault ? 1 : 0));
} else {
return [_sideMenuEntries count];
}
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ///cell 을 만든다 디자인
UITableViewCell *cell = [[UITableViewCell alloc] init];

// isLcInitialized called here because this is called when going in bg after LC destroy
if (indexPath.section == 0 && [LinphoneManager isLcInitialized]) {
// do not display default account here, it is already in header view
int idx = linphone_core_get_default_account(LC) ? bctbx_list_index(linphone_core_get_account_list(LC), linphone_core_get_default_account(LC))
: HUGE_VAL;
LinphoneAccount *account = bctbx_list_nth_data(linphone_core_get_account_list(LC), (int)indexPath.row + (idx <= indexPath.row ? 1 : 0)); //1이면 디펄트이외 어카운트존재 표시
if (account) {
            
            linphone_address_get_username(linphone_account_params_get_identity_address(linphone_account_get_params(account)));

/*cell.textLabel.text = [NSString stringWithUTF8String:linphone_account_params_get_identity(linphone_account_get_params(account))];*/

            NSString *username = [NSString stringWithUTF8String:linphone_address_get_username(linphone_account_params_get_identity_address(linphone_account_get_params(account)))];//added by moon
            cell.textLabel.text =  [username stringByAppendingString:@"  second number"]; //added by moon
cell.imageView.image = [StatusBarView imageForState:linphone_account_get_state(account)];
} else {
LOGE(@"Invalid index requested, no proxy for row %d", indexPath.row);
}
cell.transform = CGAffineTransformMakeScale(-1.0, 1.0);
cell.textLabel.transform = CGAffineTransformMakeScale(-1.0, 1.0);
cell.imageView.transform = CGAffineTransformMakeScale(-1.0, 1.0);
cell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"color_G.png"]];
} else {
SideMenuEntry *entry = [_sideMenuEntries objectAtIndex:indexPath.row];
cell.imageView.image = entry->img;
cell.textLabel.text = entry->title;
}
return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {//n번째 임의의 셀을 터치하면 setting뷰로넘어간다
[tableView deselectRowAtIndexPath:indexPath animated:NO];

if (indexPath.section == 0) {
[PhoneMainView.instance changeCurrentView:SettingsView.compositeViewDescription];
} else {
SideMenuEntry *entry = [_sideMenuEntries objectAtIndex:indexPath.row];
LOGI(@"Entry %@ has been tapped", entry->title);
if (entry->onTapBlock == nil) {
LOGF(@"Entry %@ has no onTapBlock!", entry->title);
} else {
entry->onTapBlock();
}
}
[PhoneMainView.instance.mainViewController hideSideMenu:YES];
}

@end

조회 수 :
13040
등록일 :
2022.06.16
23:19:35 (*.128.199.207)
엮인글 :
http://webs.co.kr/index.php?document_srl=3348765&act=trackback&key=584
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3348765
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜
35 linphone _MSFactory admin 12942   2022-08-29
 
34 linphone-iphone CallKit reportIncomingCall code analyze admin 13101   2022-07-16
 
33 linphone-iphone SettingsView settingsStore removeAccount admin 12986   2022-06-22
 
32 Linphone-iphone AssistantView code analysis admin 12689   2022-06-22
 
31 linphone-iphone IASKSettingsReader .plist-> locateSettingsFile -> setSettingsBundle save admin 13119   2022-06-20
 
30 linphone-iphone IASKSettingsReader IASKSpecifier code analysis admin 13004   2022-06-19
 
29 Linphone-iphone SettingsView code analysis admin 12920   2022-06-18
 
28 linphone-iphone call number call button code analysis admin 13026   2022-06-18
 
27 linphone-iphone/Settings/InAppSettings.bundle/ plist file list code analysis admin 12674   2022-06-16
 
» linphone-iphone sourcecode SideMenuTableView code analysis admin 13040   2022-06-16
SideMenuTableView.m /* * Copyright (c) 2010-2020 Belledonne Communications SARL. * * This file is part of linphone-iphone * * This program is free software: you can redistribute it and/or modify * it...  
25 linphone-iphone sourcecode SideMenuView code analysis admin 12986   2022-06-14
 
24 linphone-iphone popup_password_request popup code analysis admin 13084   2022-06-12
 
23 linphone-iphone account code analysis admin 12971   2022-06-11
 
22 Pjsip 설명 정리 동작 함수 admin 18273   2019-09-09
 
21 Basic registration test sourec code admin 18222   2019-05-06
 
20 mDNS 덕분에 SIP 네트워크 배포가 쉬워졌습니다. admin 18211   2018-09-01
 
19 스마트폰 070 장점 국내전화 국제전화 로밍요금 해결 꼭 사용해보세요 admin 20852   2018-01-07
 
18 카카오톡PC에서 사용하는 오픈소스 라이브러리 admin 23061   2017-12-01
 
17 해외 로잉 무료 스마트폰 휴대폰 070 인터넷폰 인터넷전화 국내 해외 가입 상사 주재원 교민 유학생 여행 등 file admin 42122   2015-02-28
 
16 070가입 않고 국내 유선 무선 집전화 휴대폰 전화 해외 국내에서 전화 수신 받는 방법 admin 533571   2015-02-28
 
15 using a g729 codec in SipDroid Add G729 to Sipdroid admin 30579   2014-12-28
 
14 Compiling linphone 3.7.0 on Debian Wheezy admin 31983   2014-10-21
 
13 opus-codec Opus Interactive Audio Codec admin 31598   2014-10-10
 
12 HD-Voice의 정체 admin 33323   2014-10-09
 
11 Acrobits 아이폰 용 sip 프로그램 Softphone 070인터넷전화 수신 잘되는 client 무료 admin 44254   2014-06-02
 
10 스마트폰 무제한 무료통화 앱 WIFI 2G 3G 4G LTE VOIP mVOIP SIP 요금절약 admin 83858   2014-05-31
 
9 스마트폰 070 인터넷전화 무료통화 앱 WIFI 5G 4G LTE SIP 요금절약 file admin 91346   2014-02-11
 
8 mVoIP 보다 VoLTE가 좋은 점 admin 33258   2013-11-21
 
7 Sipdroid wiki and english manuall file admin 78910   2013-11-09
 
6 TCP Connection Test Program file admin 84548   2013-09-28