diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-2751DBB8-D882-5803-9881-1C1F7B4FE413.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-2751DBB8-D882-5803-9881-1C1F7B4FE413.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,42 @@ + + + + + +IRPrinting: +Infrared Printing +
Download

Click on the following link to download +the example: ServerClientSide.zip

Download some additional files +required by the example: CommonFiles

Click: browse to view the example code.

View the additional +files: browse.
+
Description

IRPrinting illustrates the use of the Serial Communications Server for +infra-red communications, such as to an IrDA-capable printer. See the IrDA +Serial Overview for more information.

The example:

    +
  • Creates a connection +to the Comms server

  • +
  • Loads the Comms server +module that supports infra-red (“IrCOMM”)

  • +
  • Opens a port

  • +
  • Writes a short message +to the port

  • +
  • Closes the port

  • +
  • Closes the Comms server

  • +

The write operation times out with an error after four seconds if +it is not successful, as will occur if no receiver is present.

+
Class Summary

RComm: serial port

RCommServ: +Comms server

+
Build

The source code includes the two project +files needed for building: bld.inf and the .mmp file.

The Symbian platform build process describes +how to build this application, which results in an executable called \epoc32\release\<target>\<urel +or udeb>\IRPRINTING.EXE.

+
Usage

Run the executable IRPRINTING.EXE.

Executables +for the emulator targets wins and winscw can +be run on your PC. Executables for ARM targets must be copied to your target +platform before being run.

+
\ No newline at end of file