Wiley.Developing.Software.for.Symbian.OS.2nd.Edition.Dec.2007 (779887), страница 81
Текст из файла (страница 81)
. .concepts 66–8, 86–90,115–18, 135–6loading methods 144virtual declarations 66–7Pop 106–14, 202–3, 262–8,315–21, 374–7pop-up fields 364–5, 398–401POP3 accounts 8, 326–7see also emailsPopAndDestroy 106–14, 180,184–6, 202–3, 274, 314–16port addressesconcepts 325–57IP (Internet Protocol) 325–57well-known server-sideaddresses 326–7POSIX 64, 330PowerMgmt 224–5PPP module 88–9pre-emptive multithreading,concepts 65, 247, 250–1pre-version 9 SDK build targets135prefixes, naming conventions95–6, 119–20PreLayoutDynInitL 394–401printf 161–5, 188, 194prioritiesactive objects 260processes 284threads 290–1Priority 284–5private data, data-caging concepts91, 226, 231–2private directory 151–60, 227,231–2private keys 233–5, 246PRJ PLATFORMS 131–2processessee also applicationsarguments 279–81chunks 293–7code chunks 73–4concepts 64–5, 72–9,277–86, 292–7critical sections 301definition 65, 277–8E32Main 119, 163–4,278–86, 367–77end-signaling method 285–6examples 278fixed processes 76–7429inter-process communications77–9, 281–2, 292–7launching method 278–80,289memory 72–7, 292–7MMP files 278–86, 365–411multiple processes 140,277–86, 321names 281–3performance issues 76–7platform security 2, 71–2, 76,90–1priorities 284processes-running queries282–3protection 71–2, 76Rendezvous 301–2, 310RProcess 97–100, 119,279–86, 292–7, 301–2,309–10running 279–80, 289shared memory 292–7status checks 285–6switched processes 73–7, 82,286terminations 284–5virtual memory map 73–7, 286wildcard searches 282programming basics 93–122,247–75, 323–57, 359–411asynchronous functions247–75basic data types 94–5C++ in Symbian OS 93–4,102–3descriptors 165–215, 292–3,307DLLs 114–18exception handling 101–14executables 118–19GUI applications 38–56,359–411libraries 114–18naming conventions 68, 95–6,119–21Symbian OS classes 95–100TCP/IP applications 323–57progress bars 407PROGRESSINFO 407430project build files, concepts54–6, 115–18, 126–60project definitions 54–6,115–18, 119, 126–31,141–9, 163–4, 278–86,385–7see also MMP filesconcepts 126–31, 141–9,278–86definition 126–7DLLs 141–9project management tools,Windows development tools24–6protectionMMU role 71–2, 76processes 71–2, 76semaphores 298–9protocol 330–1protocol modulessee also Bluetooth.
. .;infrared. . .; TCP/IPcommunications architecture86–9, 323–57protocols, interface classes98–100ProtServ 224–5proxy servers, WAP 8PRT files 86–9Psion 12–13Ptr 196–7, 200–3PtrZ 196–7Public Key Infrastructure (PKI)233public keys 233–5, 246Publisher Ids 236, 241–3publisher option, Symbian Signed240–3push email 21PushL 106–14, 119–20, 121,207–8, 262–8, 273–4,314–21, 374–7qikapplication.h 41–4qikappui.h 41–4QIK COMMAND 46–56, 382,392–405QIK COMMAND LIST 46–56,382, 392–6INDEXQikCommand.rh 45–56QIK CONTAINER... 392–6QIK CONTROL 390–6QIK CONTROL COLLECTION389–96qikctl.lib 56QIK DIALOG 388–405qikdlh.lib 403qikdocument.h 41–4qikon.rh 45–56QIK SLOT CONTENT 393–6QIK SYSTEM BUILDING BLOCK393–6QIK VIEW 46–56, 380–3QIK VIEW CONFIGURATIONS45–56, 375–7, 380–3QIK VIEW PAGES 46–56,380–3, 394–6Quartz 15see also UIQQueryWinL 402quick start guide, Symbian OSdevelopment environment23–61QVGA 360–4QWERTY keyboards 18–19, 362,364R (resource) classes, concepts96–100, 109, 120, 279radio 3–11, 64–5radio buttons 408Random Access Memory (RAM)see also memory.
. .capacity specifications 70–1concepts 70–1, 74–5, 294–7RArray 209–13R AVKON SOFTKEYS OKCANCEL 404R AVKON SOFTKEYS OPTIONSEXIT 44–56, 383R AVKON SOFTKEYS YES NO403RBuf 168–70, 180, 184–6see also heap descriptorsRChunk 72, 293–7see also chunksRConnection 221–3, 227, 357RCriticalSection 301RDebug 141, 273–5Read 97–100, 200–3, 292–7Read Only Memory (ROM) 11,70–7, 124–5, 138–41, 217see also memory; z: drivecapacity specifications 70–1concepts 70–7, 124–5, 138–9executed-in-place code 70–7ReadDeviceData 224–5,230–1ReadL 318–20ReadUserData 221–3, 230–1real-time operating system (RTOS)80–1ReAlloc 181–3reallyclean 128RecvFrom 340–1, 344–5RecvOneOrMore 340–1,345–57reference platforms, Symbian OS13–15, 359–65registration files 48–9, 366–7,384–5relocated data, concepts 73–7removable memory cardssee also memory. .
.concepts 71MMC storage media 16–22, 71Remove 212, 215Rendezvous 301–2, 310Replace 257request semaphores, asynchronousfunctions 248–75, 300–1requisite lines, installation 156–7Research in Motion (RIM) 21see also BlackBerryReset 200–3, 206, 212, 310–21Resize 200–3resource classesconcepts 96–100, 120example 97–8resource directory 151, 231–2resource filessee also RSS filesconcepts 44–56, 128–31,141–4, 365–7, 377–411definition 46, 377–8format 253–4INDEXlanguage support 385–7localization 366–7, 385–7,409–11registration files 48–9, 366–7,384–5SimpleEx example 380–3string-reading tips 386–7RESOURCE keyword, resource files378–80, 405–6resource-limitations, smartphones11–12RestoreL 370–7Resume 279–81, 288–91return codes, errors 101RFile 69–70, 97–100, 109–10,113–14, 115, 303–4see also file serverRFs 226–7, 232, 303–4see also file serverRHandleBase 299–300,307–10RHandleBase::Duplicate299–300RHostResolver 335–57see also socketsRight 190RIM see Research in MotionRLibrary 117–18, 144see also dynamic link librariesRLS files 385–7, 388–9, 411RMessage 305–21RMutex 301robustness needs, smartphones11–12ROM see Read Only Memoryroot certificates, Symbian Signed236–7RPointerArray 209–13RProcess 97–100, 119, 224,279–86, 292–7, 301–2,309–10see also processesRProcess::Create 279–80RProcess::Logon 285–6RSC files 366–7, 386–7RSemaphore 97–100, 297–302RSessionBase 304–21, 335see also client–server.
. .concepts 304–21, 335methods 304–6, 320–1r SimpleEx dialog 398–401r SimpleEx form 398–401r SimpleEx menu 45–56RSocket 97–100, 115, 304–5,335–57see also socketsRSocketServ 335–57see also socketsRSS files 39–56, 164, 365–7,377–411see also resource filesRSS SIGNATURE resource45–56, 380–3RTextBuff 307–10RThread 97–100, 247, 254–3,287–97, 301–2see also threadsRThread::Create 288–91RThread::Kill 291–2RThread::Logon 292RThread::Open 289–90RTimer 260–1, 262–8, 271–2RTOS see real-time operatingsystemrun area, virtual memory map73–7, 286RUNBOTH (RB) 156RunConsoleL 163–4RunDlgLD 395–6, 402–5RunError 251–2, 253–4,258–9RUNINSTALL (RI) 156RunL 82, 249–75, 292, 304–5,311–12, 342–57see also active schedulerconcepts 249–75, 304–5,311–12, 342–57implementation 253, 262–8,346–57RUNREMOVE (RR) 156RUNWAITEND (RW) 156RVCT compiler 132–5S60 14–20, 29–30, 31–56,83–5, 113–14, 138–40,151–60, 353–6, 359–416see also CAkn...431characteristics 363–5classes 40–56, 367–411control structures 405–9data input 364–5, 387–8,397–405dialogs 364–5, 387–405editions 14–15emulator 24–5, 32–8, 56–8,138–40forms 397–401GUI architecture 14–20,38–56, 83–5, 359–411header file 39–44, 151–60icons and captions 409–11package file 59–61, 151–60panics 113–14project build file 54–6,128–31quick-start developmentexamples 24–7, 35–56resource file 44–56, 128–31,387–405screens 363–5SDK 26–7, 35–56, 123–60stock dialogs 401–5view class 52–4, 374–7, 409S60Doc 126S60Ex 125Samsung 13–15, 20, 22, 364Blackjack 20SGH-i400 15, 364SGH-i520 364Symbian ownership 13–14sandbox see run areaSave 397–401SaveFormDataL 397–401Scalable Vector Graphics Tiny(SVG-T) 366, 410–11screens 13–22, 83–5, 137–8,303–4, 359–411see also graphical user interfaceframeworkconcepts 13–22, 83–5,137–8, 303–4, 359–411platforms 13–22, 359–65Series 60 (S60) 363–5specifications 16–22UIQ 360–3SD memory cards 17, 71432SDKs see software developmentkitsSecure Identifier (SID), platformsecurity 129, 131, 232,237–8SECUREID 129, 131, 151, 232,238security issues see platform securitysegmented dynamic buffers,concepts 199–203, 206–8self-certification procedures,Symbian Signed 243self-signed applications 234–7,324see also signed.
. .semaphoressee also synchronizationasynchronous functions248–75, 300–1concepts 77–9, 82, 97–100,248–9, 297–302creation 299–300opening 299–300protection uses 298–9Symbian OS 300–1uses 248–9, 298–9, 300–1Send 306–21, 339–57Sendo X 26–7SendReceive 306–21SendTo 340–1serial cable connection 9serial communications server,communications architecture86–9Series 60 see S60 (S60) 14–20,29–30, 32–56, 83–5,113–14, 138–40, 151–60,353–6, 359–411Series 80 (Nokia) 15, 18–19, 22,26–7, 364serverssee also file. . .; font andbitmap.
. .; socket. . .;window. . .active objects 303–4, 311–12,313–21asynchronous functions303–4, 311–12, 313–21,335–57INDEXclient–server model 68–70,83–5, 292–3, 303–21,326–7concepts 68–70, 83–5,292–3, 303–21definition 303–4ETEL server 86–9, 90examples 306–21execution flow 68–70, 303–4GUI 303–4implementation 312–21kernel server 77–9message-processing example316–18pointers 316–19serial communications server86–9service-invoking methods310–12, 349–53shutdown issues 320–1, 334sockets 86–9, 97–100, 115,304–5, 323–4, 326–57starting 307–10, 313–16TCP/IP 326–57TextBuffServ example306–21transient servers 320–1types 68–9, 77–9, 83–5,303–4window server 83–5, 303–4servers-side code, sockets328–57ServiceError 318ServiceL 306–21sessions, client–server model304–21SetActive 253–7, 263–8,270–5, 311–12, 349–57SetAddress 338–57SetArrayL 408SetItemDimmed 401SetLength 197, 215SetMax 197SetPenColor 396SetPort 338–57SetPriority 284, 290–1SetRect 374–7SetReserveL 200–3SetState 408SetTextL 406SetType 282–3shared code, concepts 65–8shared memory, concepts 65–8,114–18, 292–7Sharp 22Short Messaging Service (SMS)7–8, 12, 16–22, 64–5,220–1, 239, 356SHUTDOWNAPPS (SH) 152–60SID see Secure IdentifierSiemens 14–15SX1 26–7Symbian ownership 13–14Signal 298–302see also synchronizationsigned applications 30, 60–1, 91,160, 218–46, 324see also platform securityconcepts 232–46developer certificates 236,244–6DLLs 233–4, 239freeware option 240–1installation issues 236–7publisher option 240–3SIS files 233–5, 239–46trusted/untrusted certificates235–6types of signing 234–7UIDs/SIDs 237–8signsis 160, 234–5, 242, 246SIM see Subscriber IdentificationModulesimple/compound controls,contrasts 393–4SimpleEx 38–56, 58, 151–60,262–8, 353–6, 365–411active objects example 262–8,353–6class-hierarchy diagrams 42–4Draw 374–7overview 39–40SimpleEx app.cpp 49–50, 56SimpleEx.cpp 49–50SimpleEx Doc.cpp 50–2SimpleEx.hrh 45–56, 382SimpleEx.mmp 54–6, 128–31,385–7INDEXSimpleEx.pkg 59–61SimpleEx reg.rss 48–56SimpleEx.rss 44–56, 380–3SimpleEx.sis 60–1SimpleEx UI.cpp 50–2,265–8SimpleEx View.cpp 52–4,267–8, 374–7single-shot grant notifications,capabilities 222–3SIS files 23–5, 39–56, 59–61,149–60, 233–5, 239–46,365–411see also installationconcepts 23–5, 39–56,59–61, 149–60, 239–41,365–411creation 150–1embedded sis files 156language support 157–60,386–7signed applications 233–5,239–46SISAPP 153–60SISX files 59–61Size 171, 200–3smartphonessee also mobile phonesbenefits 2–3browsing 3–4, 8–9, 16–22communication methods 3–11concepts 1–22, 359–60connectivity features 1, 9–10,16–22, 64–5, 86–90features 1–9hardware limitations 359–60historical background 2–3, 11LBS 10–11manufacturers 12–15messaging 7–8, 16–22, 64–5,323–4, 356network protocols 3–11, 12,16–22, 88–9, 323–57operating systems 1, 11–15PDAs 3–4, 7, 9–10, 20–2resource-limitations 11–12robustness needs 11–12SMS see Short Messaging Servicesocket 330–1, 337socketssee also RSocket servers;TCP/IPactive objects 335–57asynchronous functions335–57BSD socket 86–9, 323–4,328–34C++ 323–4, 329–57classes 97–100, 115, 304–5,334–57client-side code 328–34communications architecture86–9concepts 86–9, 97–100, 115,304–5, 323–4, 326–57connection 332–4, 335–57creation 328–34, 337–57destination addresses 338–9examples 329–57network programming 326–57receiving data 333–4, 340–1,344–5remote web servers 339–40sending data 333–4, 339–40,344–57servers-side code 328–34shutdown issues 334Symbian OS API 334–57TCP/IP applications 323–57weather-information example345–57softkey items 360–3resource files 44–56,380–405softwaresee also applications;development.