README-en.md
1# applications_call
2
3## 1 Introduction
4
5 Based on the capabilities of the system platform, design and develop call applications, providing voice calls, video calls, call settings, mobile network settings, SIM card management settings, emergency dialing, and functions for adding personal emergency information. Build models from different perspectives and design the architecture of the call application to ensure security, resilience, reliability, privacy, etc. while satisfying basic functions.
6
7### 1.2 Introduction to Architecture Diagram:
8
9![img](./figures/callui_en.png)
10
11The application adopts a multi-module design as a whole, which is used to handle the business logic and data management of the call application and the interface display. Each module follows the division principle of the above architecture.
12The functions of each module are as follows:
13
14* FA-UI: Interface display responsible for handling and user interaction
15* Public Module: responsible for the processing of public methods, assisting in the display of the connected interface, the interaction of business logic and data management
16* Adapter Module: responsible for business logic and data management
17
18The important classes and their functions in each layer of the application are shown in the following table
19
20| Module | Function | Class Name | Function |
21| ---- | ---- | ---- | ---- |
22| FA-UI | Interface Display | Voice Calls FA | Mainly provides user interface related to voice calls |
23| FA-UI | Interface Display | video Calls FA | Mainly provide video call related user interface |
24| FA-UI | Interface display | SIMCard Management FA | SIM card related user interaction management interface |
25| FA-UI | Interface Display | Emergency Dialing FA | Emergency Dialing User Interface |
26| FA-UI | Interface display | Call Settings FA | User interaction interface related to call settings |
27| FA-UI | Interface Display | Personal Emergency Information FA | Personal Emergency Number User Interface |
28| FA-UI | Interface Display | Mobile NetWork Settings FA | Mobile NetWork Settings User Interface |
29| Public Module | Common Components and Methods | Common Components | Processing Classes for Public Components |
30| Adapter Module | Business Processing Interface | Dial Module | Handling Dial-related Functions |
31| Adapter Module | Business Processing Interface | Status Monitoring Module | Monitor Business Status Module |
32
33## 2. Directories
34```
35/applications_call
36├── callui
37│ └── src
38│ └── main
39│ ├── ets
40│ ├── default
41│ ├── assets
42│ ├── common
43│ ├── components
44│ ├── configs
45│ ├── constant
46│ ├── utils
47│ ├── model
48│ ├── pages
49| ├── app.ets
50│ ├── ServiceAbility
51│ ├── callManagerService.ets
52│ ├── service.ts
53│ ├── telephonyApi.ets
54│ ├── resources
55| ├── base
56| ├── zh_CN
57│ ├── config.json
58├── doc
59| ├── image
60| ├── Instructions.md
61├── mobiledatasettings
62│ └── src
63│ └── main
64│ ├── ets
65│ ├── default
66│ ├── pages
67│ ├── resources
68| ├── base
69| ├── zh_CN
70│ ├── config.json
71├── figures
72│ └── callui_en.png
73├── signature
74│ └── com.ohos.callui.p7b
75├── LICENSE
76├── build.gradle
77```
78
79## 3. Instructions for use
80
81* See instructions for use ([Instructions for use](doc/Instructions.md))
82
83## 4. Related positions
84
85* system applications
86
87[**applications_call**](https://gitee.com/openharmony/applications_call)
88
README.md
1# applications_call
2
3## 1. 简介
4
5### 1.1 内容介绍:
6
7 基于系统平台能力,设计和开发通话应用,提供语音通话、视频通话、通话设置、移动网络设置、SIM卡管理设置、紧急拨号以及添加个人紧急信息的功能。从不同视角构建模型,设计通话应用的架构,确保在满足基本功能的同时,确保安全、韧性、可靠、隐私等。
8
9
10
11### 1.2 架构图介绍:
12
13![img](./figures/callui_en.png)
14应用整体采用了多模块设计的方式,用于处理通话应用的业务逻辑与数据管理以及界面显示,每个模块都遵循上述架构的划分原则。
15各模块的作用分别如下:
16* FA-UI:负责处理和用户交互的界面显示
17* Public Module:负责公共方法的处理,辅助连通界面显示,业务逻辑和数据管理的交互
18* Adapter Module:负责业务逻辑和数据管理
19
20应用各层中重要类及其功能如下表所示
21
22| 模块 | 功能 | 类名 | 作用 |
23| ---- | ---- | ---- | ---- |
24| FA-UI | 界面显示 | Voice Calls FA | 主要提供语音通话相关用户交互界面 |
25| FA-UI | 界面显示 | video Calls FA | 主要提供视频通话相关用户交互界面 |
26| FA-UI | 界面显示 | SIMCard Management FA | SIM卡相关用户交互管理界面 |
27| FA-UI | 界面显示 | Emergency Dialing FA | 紧急拨号用户交互界面 |
28| FA-UI | 界面显示 | Call Settings FA | 通话设置相关用户交互的界面 |
29| FA-UI | 界面显示 | Personal Emergency Information FA | 个人设置紧急号码用户交互界面 |
30| FA-UI | 界面显示 | Mobile NetWork Settings FA | 移动网络设置用户交互界面 |
31| Public Module | 公共组件和方法 | Common Components | 公共组件的处理类 |
32| Adapter Module | 业务处理接口 | Dial Module | 处理拨号相关的功能 |
33| Adapter Module | 业务处理接口| Status Monitoring Module | 监听业务状态模块 |
34
35
36## 2. 目录
37
38```
39/applications_call
40├── callui # 通话应用主Ability,提供拉起应用入口
41│ └── src
42│ └── main
43│ ├── ets # ets代码目录
44│ ├── default
45│ ├── assets # 图片资源
46│ ├── common # 公共组件或方法配置目录
47│ ├── components # 公共组件
48│ ├── configs # 应用配置对象目录
49│ ├── constant # 应用常量对象目录
50│ ├── utils # 公共方法
51│ ├── model # Model层代码目录
52│ ├── pages # 通话页面目录
53| ├── app.ets # 全局ets逻辑和应用生命周期管理文件
54│ ├── ServiceAbility # 服务ability
55│ ├── callManagerService.ets # ServiceAbility方法
56│ ├── service.ts # ServiceAbility方法
57│ ├── telephonyApi.ets # ServiceAbility方法
58│ ├── resources # 资源配置文件存放目录
59| ├── base # 默认图片资源,字体大小,颜色资源存放目录
60| ├── zh_CN # 中文语言场景资源内容存放目录
61│ ├── config.json # 全局配置文件
62├── doc # 使用说明目录
63| ├── image # 使用说明图片资源
64| ├── Instructions.md # 使用说明
65├── mobiledatasettings # 移动数据设置
66│ └── src
67│ └── main
68│ ├── ets # ets代码目录
69│ ├── default
70│ ├── pages # 移动数据页面目录
71│ ├── resources # 资源配置文件存放目录
72| ├── base # 默认图片资源,字体大小,颜色资源存放目录
73| ├── zh_CN # 中文语言场景资源内容存放目录
74│ ├── config.json # 全局配置文件
75├── figures # 架构图目录
76│ └── callui_en.png # 架构设计图
77├── signature # 签名证书文件目录
78│ └── com.ohos.callui.p7b # 签名文件
79├── LICENSE # 许可证
80├── build.gradle # 全局编译配置文件
81```
82
83
84
85## 3. 使用说明
86
87* 参见使用说明([使用说明](doc/Instructions.md))
88
89
90
91## 4. 相关仓
92
93* 系统应用
94
95[**applications_call**](https://gitee.com/openharmony/applications_call)
96
97
98
99