John.Wiley.and.Sons.Rapid.Mobile.Enterprise.Development.for.Symbian.OS.An.Introduction.to.OPL.Application.Design.and.Programming.May.2005.eBook-LinG (779881), страница 44
Текст из файла (страница 44)
Series 5, 9210)CONST KFontArialBold8&=268435951CONST KFontArialBold11&=268435952CONST KFontArialBold13&=268435953CONST KFontArialNormal8&= 268435954CONST KFontArialNormal11&= 268435955CONST KFontArialNormal13&= 268435956CONST KFontArialNormal15&= 268435957CONST KFontArialNormal18&= 268435958CONST KFontArialNormal22&= 268435959CONST KFontArialNormal27&= 268435960CONST KFontArialNormal32&= 268435961CONST.OPH LISTINGCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTKFontTimesBold8&=KFontTimesBold11&=KFontTimesBold13&=KFontTimesNormal8&=KFontTimesNormal11&=KFontTimesNormal13&=KFontTimesNormal15&=KFontTimesNormal18&=KFontTimesNormal22&=KFontTimesNormal27&=KFontTimesNormal32&=CONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTKFontCourierBold8&= 268436062KFontCourierBold11&= 268436063KFontCourierBold13&= 268436064KFontCourierNormal8&=268436065KFontCourierNormal11&=268436066KFontCourierNormal13&=268436067KFontCourierNormal15&=268436068KFontCourierNormal18&=268436069KFontCourierNormal22&=268436070KFontCourierNormal27&=268436071KFontCourierNormal32&=268436072CONST KFontCalc13n&=CONST KFontCalc18n&=CONST KFontCalc24n&=268435962268435963268435964268435965268435966268435967268435968268435969268435970268435971268435972268435493268435494268435495CONSTCONSTCONSTCONSTKFontMon18n&=KFontMon18b&=KFontMon9n&=KFontMon9b&=268435497268435498268435499268435500CONSTCONSTCONSTCONSTKFontTiny1&=KFontTiny2&=KFontTiny3&=KFontTiny4&=268435501268435502268435503268435504CONST KFontEiksym15&=268435661CONST KFontSquashed&=CONST KFontDigital35&=268435701268435752remrem The following font consts are for Series 60 devices onlyrem e.g.
Nokia 7650remCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTKFontS60LatinPlain12&=&10000001KFontS60LatinBold12&=&10000002KFontS60LatinBold13&=&10000003KFontS60LatinBold17&=&10000004KFontS60LatinBold19&=&10000005KFontS60NumberPlain5&=&10000006KFontS60ClockBold30&=&10000007KFontS60LatinClock14&=&10000008KFontS60Custom&=&10000009KFontS60ApacPlain12&=&1000000cKFontS60ApacPlain16&=&1000000d275276CONST.OPH LISTINGremrem The following font consts are for UIQ devices onlyrem e.g. Sony Ericsson P800remCONST KFontUiqSwissABeta&=&017B4B0Dremrem End of font info.remremrem I/O ACCESSremrem For IOOPENrem Mode category 1CONST KIoOpenModeOpen%=$0000CONST KIoOpenModeCreate%=$0001CONST KIoOpenModeReplace%=$0002CONST KIoOpenModeAppend%=$0003CONST KIoOpenModeUnique%=$0004rem Mode category 2CONST KIoOpenFormatBinary%=$0000CONST KIoOpenFormatText%=$0020rem Mode category 3CONST KIoOpenAccessUpdate%=$0100CONST KIoOpenAccessRandom%=$0200CONST KIoOpenAccessShare%=$0400remrem APPLICATION CREATIONremrem For FLAGSCONST KFlagsAppFileBased%=1CONST KFlagsAppIsHidden%=2rem Language code for CAPTIONCONST KMaxLangsSupported%=33CONST KLangEnglish%=1CONST KLangFrench%=2CONST KLangGerman%=3CONST KLangSpanish%=4CONST KLangItalian%=5CONST KLangSwedish%=6CONST KLangDanish%=7CONST KLangNorwegian%=8CONST KLangFinnish%=9CONST KLangAmerican%=10CONST KLangSwissFrench%=11CONST KLangSwissGerman%=12CONST KLangPortuguese%=13CONST KLangTurkish%=14CONST KLangIcelandic%=15CONST KLangRussian%=16CONST KLangHungarian%=17CONST KLangDutch%=18CONST.OPH LISTINGCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTCONSTKLangBelgianFlemish%=19KLangAustralian%=20KLangBelgianFrench%=21KLangAustrian%=22KLangNewZealand%=23KLangInternationalFrench%=24KLangCzech%=25KLangSlovak%=26KLangPolish%=27KLangSolvenian%=28KLangTaiwanChinese%=29KLangHongKongChinese%=30KLangPRCChinest%=31KLangJapanese%=32KLangThai%=33rem MIME priority valuesCONST KDataTypePriorityUserSpecified%=KMaxInt%CONST KDataTypePriorityHigh%=10000CONST KDataTypePriorityNormal%=0CONST KDataTypePriorityLow%=-10000CONST KDataTypePriorityLastResort%=-20000CONST KDataTypePriorityNotSupported%=KMinInt%remrem END OF CONST.OPHrem277Appendix 3Symbian Developer NetworkA look at the resources, tools, SDKs and support that is available to theSymbian developer online.A3.1 Symbian OS Software Development KitsSDKs are built based on a particular reference platform (sometimes knownas a ‘reference design’) for Symbian OS.
A reference platform providesa distinct UI and an associated set of system applications for such tasksas messaging, browsing, telephony, multimedia, and contact/calendarmanagement. These applications typically make use of generic application engines provided by Symbian OS. Reference platforms intended tosupport the installation of third-party applications written in native C++have to be supported by an SDK that defines this reference platform, or atleast a particular version of it. Since Symbian OSv6.0, four such referenceplatforms have been introduced, resulting in four flavors of SDK that canbe found at the websites listed here:• UIQ (www.symbian.com/developer)• Nokia Series 90 (www.forum.nokia.com)• Nokia Series 60 (www.forum.nokia.com)• Nokia Series 80 (www.forum.nokia.com)Prior to this, SDKs were targeted at specific devices, such as the PsionnetPad.
Symbian no longer supports these legacy SDKs, but they are stillavailable from Psion Teklogix at www.psionteklogix.com.For the independent software developer, the most important thing toknow in targeting a particular phone is its associated reference platform.Then you need to know the Symbian OS version the phone is based on.This knowledge defines to a large degree the target phone as a platform forindependent software development.
You can then decide which SDK youneed to obtain. In most cases you will be able to target – with a single280SYMBIAN DEVELOPER NETWORKversion of your application – all phones based on the same referenceplatform and Symbian OS version working with this SDK. The SymbianOS System Definition papers give further details of possible differencesbetween phones based on a single SDK:• Symbian OS System Definitionwww.symbian.com/developer/techlib/papers/SymbOS def/symbian os sysdef.pdf• Symbian OS System Definition (in detail, inc Symbian OS v8.0)www.symbian.com/developer/techlib/papers/SymbOS cat/SymbianOS cat.htmlA3.2 Getting a UID for your ApplicationA UID is a 32-bit number, which you get as you need from Symbian.
EveryUIKON application should have its own UID. This allows Symbian OSto distinguish files associated with that application from files associatedwith other applications. UIDs are also used in other circumstances, suchas to identify streams within a store, and to identify one or more of anapplication’s views.Getting a UID is simple enough. Just send email to uid@symbiandevnet.com, titled ‘UID request’, and requesting clearly how many UIDs youwant – 10 is a reasonable first request. Assuming your email includesyour name and return email address, that’s all the information Symbianneeds. Within 24 hours, you’ll have your UIDs.If you’re impatient, or you want to do some experimentation beforeusing real UIDs, you can allocate your own UIDs from a range thatSymbian has reserved for this purpose: 0x01000000–0x0fffffff.
However,you should never release any programs with UIDs in this range.Don’t build different Symbian OS applications with the same application UID – even the same test UID – on your emulator or SymbianOS machine. If you do, the system will only recognize one of them,and you won’t be able to launch any of the others.A3.3 Symbian OS Developer ToolsAs well as the following tools offerings from Symbian DevNet partners,Symbian DevNet provides a number of free and open source tools:www.symbian.com/developer/downloads/tools.htmlAppForgeDevelop Symbian Applications Using Visual Basic and AppForge.
AppForge development software integrates directly into Microsoft VisualSYMBIAN OS DEVELOPER TOOLS281Basic, enabling you to immediately begin writing multi-platform applications using the Visual Basic development language, debugging tools, andinterface you already know.www.appforge.comBorlandBorland offers C++BuilderX Mobile Edition and JBuilder Mobile Editionas well as the more recent Borland Mobile Studio for developers thatwant to develop rapidly on Symbian OS using C++, Java or both.
Thesemulti-platform IDEs offer on target debugging, GUI RAD, and a unifyingIDE for Symbian OS SDKs and compilers.www.borland.comForum NokiaIn addition to a wide range of SDKs, Forum Nokia also offers variousdevelopment tools to download, including the Nokia Developer Suite forJ2ME, which plugs into Borland’s JBuilder MobileSet or Sun’s Sun OneStudio integrated development environment.www.forum.nokia.comMetrowerksMetrowerks offer the following products supporting Symbian OS development:• CodeWarrior Development Tools for Symbian OS Professional Edition• CodeWarrior Development Tools for Symbian OS Personal Edition• CodeWarrior Wireless Developer Kits for Symbian OSwww.metrowerks.comSun MicrosystemsSun provides a range of tools for developing Java 2 Micro Editionapplications, including the J2ME Wireless Toolkit and Sun One StudioMobile Edition.http://java.sun.comTexas InstrumentsDevelopment Tools for the OMAP Platform Easy-to-use software development environments are available today for OMAP application developers,OMAP Media Engine developers, as well as device manufacturers.282SYMBIAN DEVELOPER NETWORKTool suites that include familiar third-party tools and TI’s own industry leading eXpressDSP DSP tools are available, allowing developers toeasily develop software across the entire family of OMAP processors.http://focus.ti.comSymbian DevNet ToolsSymbian DevNet offers the following tools as an unsupported resource toall developers:• Symbian OS SDK add-onswww.symbian.com/developer/downloads/tools.html• Symbian OS v5 SDK patches and tools archivewww.symbian.com/developer/downloads/archive.htmlA3.4 Support ForumsThe Symbian DevNet offers two types of support forum:• Support newsgroupswww.symbian.com/developer/public/index.html• Support forum archivewww.symbian.com/developer/prof/index.htmlSymbian DevNet partners also offer support for developers:Sony Ericsson Developer WorldAs well as tools and SDKs, Sony Ericsson Developer World provides arange of services including newsletters and support packages for developers working with the latest Sony Ericsson products, such as the SymbianOS powered P900.http://developer.sonyericsson.comForum NokiaAs well as tools and SDKs, Forum Nokia provides newsletters, the Knowledge Network, fee-based case-solving, a Knowledge Base of resolvedsupport cases, discussion archives, and a wide range of C++ and Javabased technical papers of relevance to developers targeting Symbian OS.forum.nokia.com/main.htmlSun Microsystems Developer ServicesIn addition to providing a range of tools and SDKs, Sun also providesa wide variety of developer support services including free forums,newsletters, and a choice of fee-based support programs.• Forumshttp://forum.java.sun.comDEVELOPER COMMUNITY LINKS283• Support and newslettershttp://developer.java.sun.com/subscriptionA3.5 Symbian OS Developer TrainingSymbian’s Technical Training team and Training Partners offer public andon-site developer courses around the globe.• Course dates and availabilitywww.symbian.com/developer/trainingEarly bird discount : Symbian normally offers a 20% discount on allbookings confirmed up to 1 month before the start of any course.