Tuesday, May 12, 2009

Setup Carbide.c++ and S60 SDK FP2

-

We are going to use Carbide.c++ and S60 SDK FP2.



Download and install Carbide.c++ Express Edition from:

http://www.forum.nokia.com/Resources_and_Information/Tools/IDEs/Carbide.c++/

This requires ActivePerl too. Do Install it.

Download and install Nokia S60 SDK FP2 from:

http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html

Get yourself familiar with the IDE UI.

You could also import, build and compile the Symbian OS Basics Workbook Lab exercise one.

-

Monday, May 11, 2009

Symbian OS Fundamental Types

-

Today started working on Symbian OS Fundamental Types.

"The Symbian OS Fundamental types and how they are related to C++ built-ins."

Please refer to:
a. The Fundamentals of Symbian OS Curriculam v2.1 Section 4.
b. Symbian OS Basics Workbook v3.1 Page 85 ( Acroread page 90 - onwards. )


The Symbian OS has FIVE fundamental BASIC types:
1. Integers
2. Text
3. Boolean
4. Float
5. TAny
6. enums

Symbian Class naming convention defines four fundamental types of classes:
1. T Classes (declared on stack)
2. C Classes (declared dynamically on heap)
3. R Classes (access shared resources)
4. M Classes (define an interface)

Variables:
1. Class Member variable names start with 'i'
2. Arguments start with 'a'
3. Local variables start with 'lower letter'
4. Constants start with 'K'
5. Avoid globals, but start with 'capital letter' when used.

Functions:
1. Name indicates what they do
2. 'Set' and 'Get|NONE' prefix for data access function names
3. If the function deletes an object, suffix "D"
4. If the function "Leaves", suffix "L"
5. If the function "places an item in cleanup stack", suffix "C"

Casting:
Native C++ operators are used for casting.

That's the fundamentals of fundamental Symbian OS Types.

I wish I could dig them deeper, but tomorrow.

Tomorrow: I want to start with Carbide.C++.

-