index.qdoc 6.23 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
/*!
    \page index.html
    \title QextSerialPort Manual

    \section1 Overview
      QextSerialPort provides an interface to old fashioned serial ports for
      Qt-based applications. It currently supports Mac OS X, Windows, Linux, FreeBSD. 

      From QextSerialPort 1.2-beta on, license of the project has been changed to MIT.

      \list
         \o Revision 0.9.x is Qt 2 & 3 compatible.
         \o Revision 1.x.x is Qt 4 compatible.
         \o From revision 1.2beta1 on, Qt 5 support is added.
      \endlist

        
    \section1 Classes
      \list
      \o \l QextSerialPort encapsulates a serial port on both POSIX and Windows systems.
      \o \l QextSerialEnumerator enumerates ports currently available in the system.
      \endlist
    
    \section1 Getting Started


    \section2 Usage(1): Source Code Only

 The package contains a qextserialport.pri file that allows you to integrate the component into programs that use qmake for the build step.

      Download the source code.
      Put the source code in any directory you like. For example, 3rdparty:

      \code
       |-- project.pro
       |-- ....
       |-- 3rdparty\
       |     |-- qextserialport\
       |     |
      \endcode

      Add following line to your qmake project file:
      \code
      include(pathToPri/qextserialport.pri)
      \endcode

      Then, using QextSerialPort in your code
      \code
      #include "qextserialport.h"
      ... 
      MyClass::MyClass()
      {
          port = new QextSerialPort("COM1");
          connect(port, SIGNAL(readyRead()), this, SLOT(onDataAvailable()));
          port->open();
      }
  
      void MyClass::onDataAvailable()
      {
          QByteArray data = port->readAll();
          processNewData(usbdata);
      }
      \endcode

    \section2 Usage(2): shared library
      Although QextSerialPort can be directly compiled into your application, You may prefer
      to use QextSerailPort as an library, which is very easy too.

     1. Download the source code, and put it in any location you like.
    
     2. Goto the top level directory ,run following command to generate library.
    
          \code
          qmake
          sudo make install (or nmake install)
          \endcode
    
     3. Add following line to your project's file
    
          \code
          CONFIG += extserialport
          \endcode
    
     4. Using QextSerialPort in your code. Enjoy it!
    
          \code
          #include "qextserialport.h"
          ....
          QextSerialPort * port = new QextSerialPort();
          ....
          \endcode

    \section2 Usage(3): Static library

        Someone prefer to use QextSerailPort as static library.

        Open the project file: qextserialport.pro, add uncomment follow line

          \code
           # CONFIG += qesp_static
          \endcode

        Then follow the same steps as shared library

          \code
           qmake
           sudo make install
          \endcode

        The static library, the header files, and the feature file will be installed to your system.

        Add following line to your qmake's project file:

          \code
          CONFIG += extserialport
          \endcode
    
      \section1 Platform Special

      \section2 For MacX: Build as framework

      Open the project file: *qextserialport.pro*, and uncomment follow line

          \code
           # CONFIG += qesp_mac_framework
          \endcode

      Then follow the same steps as shared library, Goto the top level directory , and run

          \code
           qmake
           sudo make install
          \endcode
 
      The framework which includes libraries and the header files, and the feature file will be installed to your system.

      Add following line to your qmake's project file:

          \code
           CONFIG += extserialport
          \endcode

      \section2 For Linux: Enable udev

       Open the project file: *qextserialport.pro*, uncomment follow line

          \code
           #linux*:CONFIG += qesp_linux_udev
          \endcode

       Note, If you are using the usage(1), Add following line before include the qextserialport.pri file. 
          \code
           CONFIG += qesp_linux_udev
          \endcode


     \section2 Build documents
      \code
        make docs
      \endcode

    \section1 Examples
      \list
      \o \l examples/enumerator
      \o \l examples/qespta
      \o \l examples/uartassistant
      \endlist

    \section1 Resources
        \section2  Nokia(Trolltech)
        \list
          \o  \l {http://doc.trolltech.com/qq/qq12-iodevice.html} {Writing a Custom I/O Device}
          \o  \l {http://doc.trolltech.com/3.3/qiodevice.html} {Qt 3.3: QIODevice Class Reference}
          \o  \l {http://doc.trolltech.com/4.7/qiodevice.html} {Qt 4.7: QIODevice Class Reference}
        \endlist
        \section2  MSDN
        \list
          \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_resources.asp} {Communications Resources}
           \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/about_communications_resources.asp} {About Communications Resources}
           \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/using_communications_resources.asp}{Using Communications Resources}
           \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_functions.asp} {Communications Functions}
           \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_structures.asp} {Communications Structures}
        \endlist
        \section2  TLDP
        \list
           \o \l {http://www.tldp.org/HOWTO/Serial-HOWTO.html}{Serial HOWTO}
           \o \l {http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/}{Serial Programming HOWTO}
        \endlist
        \section2  Other
        \list
           \o \l {http://www.easysw.com/~mike/serial/serial.html} {Serial Programming Guide for POSIX Operating Systems}
        \endlist

*/

/*!
  \page classes.html
  \generatelist annotatedclasses
*/