Download presentation
Presentation is loading. Please wait.
Published byJoleen Horn Modified over 9 years ago
1
Introduction to Symbian C++ Programming Huang, Chi-Chia 2009.02.05 1Context-Aware Group, Intelligent Agents Lab, NTU Based on Symbian OS Basics Workbook 3.1
2
Outline Setting up development environment Basic concept of Symbian C++ Porting to Cell phone Context-Aware Group, Intelligent Agents Lab2
3
Development Environment Java runtime environment Carbide C++ – Download from Forum.Nokia.comForum.Nokia.com – Account needed ActivePerl – Active Perl 5.6.1 build 631 SDK – S60 3rd Edition, Feature Pack 1 – Download from Forum.Nokia.comForum.Nokia.com – Account needed Context-Aware Group, Intelligent Agents Lab3
4
Carbide C++ Context-Aware Group, Intelligent Agents Lab4
5
Carbide C++ Context-Aware Group, Intelligent Agents Lab5
6
Carbide C++ Context-Aware Group, Intelligent Agents Lab6
7
Carbide C++ Context-Aware Group, Intelligent Agents Lab7
8
Carbide C++ Context-Aware Group, Intelligent Agents Lab8
9
Carbide C++ Context-Aware Group, Intelligent Agents Lab9
10
Carbide C++ Context-Aware Group, Intelligent Agents Lab10
11
Carbide C++ Context-Aware Group, Intelligent Agents Lab11
12
Carbide C++ Context-Aware Group, Intelligent Agents Lab12
13
Carbide C++ Context-Aware Group, Intelligent Agents Lab13
14
Emulator Context-Aware Group, Intelligent Agents Lab14
15
Basic Concept of Symbian C++ Stack and Heap Leaves Two Phase construction Active Object Context-Aware Group, Intelligent Agents Lab15
16
Stack and Heap Stack – Object are delete automatically – Default size is 8kb Heap – Object must deleted by programmer using delete Example Context-Aware Group, Intelligent Agents Lab16
17
Leaves Leaves are used instead of C++ exception When there is a resource failure, the code “leave” The new operator has been overload to leave if insufficient memory is available – Use new (ELeave) Functions that can leave should end in “L” Context-Aware Group, Intelligent Agents Lab17
18
Two Phase Construction C++ constructor must never leave as the destructor will not be called Context-Aware Group, Intelligent Agents Lab18
19
Active Object Events are scheduled by the active scheduler Events are handled by active object Each application has an active scheduler The active scheduler runs in a loop in the application’s main loop Active objects have a: – TRequestStatus bas class member, iStatus, that is passed inro asynchronous functions – RunL() Function that is called when the action completes – DoCancel() function that is called when the action is cancelled Context-Aware Group, Intelligent Agents Lab19
20
Context-Aware Group, Intelligent Agents Lab20
21
Active Object Context-Aware Group, Intelligent Agents Lab21
22
Porting to Cell Phone Context-Aware Group, Intelligent Agents Lab22
23
Porting to Cell Phone Context-Aware Group, Intelligent Agents Lab23
24
Porting to Cell Phone Context-Aware Group, Intelligent Agents Lab24
25
Porting to Cell Phone Context-Aware Group, Intelligent Agents Lab25
26
Porting to Cell Phone Context-Aware Group, Intelligent Agents Lab26
27
Porting to Cell Phone Symbian Signed Context-Aware Group, Intelligent Agents Lab27
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.