한국어

스마트폰앱

온누리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

조회 수 :
8496
등록일 :
2022.06.16
23:19:35 (*.128.199.207)
엮인글 :
http://webs.co.kr/index.php?document_srl=3348765&act=trackback&key=7f8
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3348765
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
35 070가입 않고 국내 유선 무선 집전화 휴대폰 전화 해외 국내에서 전화 수신 받는 방법 admin 2015-02-28 526781
34 스마트폰 앱 안드로이드 아이폰 인터넷전화 무료전화 070 FAX to Email 수신 admin 2013-02-13 125906
33 스마트폰 070 인터넷전화 무료통화 앱 WIFI 5G 4G LTE SIP 요금절약 file admin 2014-02-11 85983
32 TCP Connection Test Program file admin 2013-09-28 75962
31 스마트폰 무제한 무료통화 앱 WIFI 2G 3G 4G LTE VOIP mVOIP SIP 요금절약 admin 2014-05-31 74850
30 Sipdroid wiki and english manuall file admin 2013-11-09 72839
29 070 인터넷전화 온누리 070 가입 사용방법 (휴대폰) admin 2013-04-18 57465
28 Android 폰 에서 Sipdroid 설치 및 설정 전화걸기 사용방법 MVOIP admin 2012-08-12 52170
27 Acrobits 아이폰 용 sip 프로그램 Softphone 070인터넷전화 수신 잘되는 client 무료 admin 2014-06-02 39326
26 해외 로잉 무료 스마트폰 휴대폰 070 인터넷폰 인터넷전화 국내 해외 가입 상사 주재원 교민 유학생 여행 등 file admin 2015-02-28 37090
25 스마트폰 앱 및 인터넷전화 요금 휴대폰 45원/분 유선 35원 3분 admin 2013-02-07 33093
24 Third party open source sip stacks library for Android over B4A 오픈소스 라이브러리 admin 2013-09-23 31040
23 HD-Voice의 정체 admin 2014-10-09 29151
22 mVoIP 보다 VoLTE가 좋은 점 admin 2013-11-21 28318
21 Compiling linphone 3.7.0 on Debian Wheezy admin 2014-10-21 27734
20 opus-codec Opus Interactive Audio Codec admin 2014-10-10 27389
19 using a g729 codec in SipDroid Add G729 to Sipdroid admin 2014-12-28 26324
18 카카오톡PC에서 사용하는 오픈소스 라이브러리 admin 2017-12-01 18679
17 스마트폰 070 장점 국내전화 국제전화 로밍요금 해결 꼭 사용해보세요 admin 2018-01-07 16386
16 Pjsip 설명 정리 동작 함수 admin 2019-09-09 13921
15 Basic registration test sourec code admin 2019-05-06 13645
14 mDNS 덕분에 SIP 네트워크 배포가 쉬워졌습니다. admin 2018-09-01 13645
13 linphone-iphone IASKSettingsReader .plist-> locateSettingsFile -> setSettingsBundle save admin 2022-06-20 8642
12 linphone-iphone CallKit reportIncomingCall code analyze admin 2022-07-16 8559
11 linphone-iphone popup_password_request popup code analysis admin 2022-06-12 8532
» linphone-iphone sourcecode SideMenuTableView code analysis admin 2022-06-16 8496
9 linphone-iphone SettingsView settingsStore removeAccount admin 2022-06-22 8485
8 linphone _MSFactory admin 2022-08-29 8479
7 linphone-iphone call number call button code analysis admin 2022-06-18 8440
6 linphone-iphone IASKSettingsReader IASKSpecifier code analysis admin 2022-06-19 8421