symbian学习杂记(主要服务器及API介绍)

本文介绍了嵌入式系统中八个关键服务器及其提供的API:内核服务器、文件服务器、窗口服务器、字体和位图服务器、电话服务器、套接字服务器、通信服务器和消息服务器。这些服务器分别负责核心操作、文件管理、图形界面、通信等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、内核服务器

该服务器的优先权最高,并且控制着从其他进程对硬件和内存的访问,它的用户端API有:

1) RTimer: 提供异步时间服务。

2) RThread: 提供线程访问和创建。

3) RSemaphore: 允许线程间的同步。

二、文件服务器

该服务器提供对文件系统的访问。这些API允许文件和目录的创建、重命名和删除,以及对文件的读、写操作,具体如下:

1) RFs: 提供对文件服务器的会话,可以完成驱动器、目录和文件的高层操作。

2) RFile: 允许文件的创建、读取和写入。

3) RDir: 读取目录的入口点。

三、窗口服务器 应用程序框架使用窗口服务器来处理按键事件和屏幕绘制,它的API有:

1) RWindow: 用于对屏幕进行绘制,但是在开发中使用不多,用得较多的是对于CCoeControl::Draw()的覆写。

2) RAnim: 用于对服务器端的动画通信,它在同一线程中的优先级较高。

3) CWindowGc:图行上下文,提供了对屏幕进行绘制的函数。

四、字体和位图服务器

该服务器在客户端共享字体和位图,它的API有:

1) RFbsSession: 负责字体和位图服务器的会话管理,但是在应用程序中不常使用。

2) CFbsBitmap: 进行位图处理。

3) CFbsDevice: 用于进行位图绘制的图像设备。

五、电话服务器

负责设备的电话操作,它的客户端API有:

1) RTelServer: 提供对电话服务器的最基本接入。电话扩展模块(TSY)的载入可以实现对设备电话功能的使用。

2) RPhone: 提供对设备上指定电话的操作。

3) RLine: 提供对电话中某一线路的操作。

4) RCall: 提供某一线路上的拨号/接听操作。

六、套接字(Socket)服务器

提供通过媒介进行TCP/IP和UDP套接字连接的功能。它包含的API有:

1) RSocketServ: 连接到套接字服务器,并且发现可用协议。

2) RSocket: 提供与另一套接字连接、接收和发送数据的功能。

3) RHostResolver: 进行DNS(动态域名服务)操作,获取远程设备的地址。

七、通信服务器

允许开发者通过电缆或红外进行串行通信。它的API有:

1) RCommServ: 提供与通信服务器的会话。

2) RComm: 提供通过串行端口进行通信的必要函数。

八、消息服务器

可以保存消息数据,并且获取对MMS、SMS、OBEX和E-mail的操作,它的客户端API有:

1) CMsvSession: 实现与消息服务器的会话,并且提供对消息存储的接入,以及消息服务器的相关提示操作。

2) CMsvEntry: 提供对消息存储的接入点。

3) CBaseMtm: 提供高层的接口,用来接入和操作消息服务器接入点。

塞班60 PYTHON API The Python for S60 Platform (Python for S60) simplifies application development and provides a scripting solution for the Symbian C++ APIs. This document is for Python for S60 release 1.3.13 that is based on Python 2.2.2. The documentation for Python for S60 includes three documents: • Getting Started with Python for S60 Platform [5] contains information on how to install Python for S60 and how to write your first program. • This document contains API and other reference material. • Programming with Python for S60 Platform [6] contains code examples and programming patterns for S60 devices that can be used as a basis for programs. Python for S60 as installed on a S60 device consists of: • Python execution environment, which is visible in the application menu of the device and has been written in Python on top of Python for S60 Platform (see S60 SDK documentation [4]) • Python interpreter DLL • Standard and proprietary Python library modules • S60 UI application framework adaptation component (a DLL) that connects the scripting domain components to the S60 UI • Python Installer program for installing Python files on the device, which consists of: – Recognizer plug-in – Symbian application written in Python The Python for S60 developer discussion board [9] on the Forum Nokia Web site is a useful resource for finding out information on specific topics concerning Python for S60. You are welcome to give feedback or ask questions about Python for S60 through this discussion board. 1.1 Scope This document includes the information required by developers to create applications that use Python for S60, and some advice on extending the platform. 1.2 Audience This guide is intended for developers looking to create programs that use the native features and resources of the S60 phones. The reader should be familiar with the Python
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值