• 大小: 80KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: 其他
  • 标签: Qt4  serialport  

资源简介

Qt4第三方库qextserialport

资源截图

代码片段和文件信息

/****************************************************************************
** Copyright (c) 2000-2003 Wayne Roth
** Copyright (c) 2004-2007 Stefan Sander
** Copyright (c) 2007 Michal Policht
** Copyright (c) 2008 Brandon Fosdick
** Copyright (c) 2009-2010 Liam Staskawicz
** Copyright (c) 2011 Debao Zhang
** All right reserved.
** Web: http://code.google.com/p/qextserialport/
**
** Permission is hereby granted free of charge to any person obtaining
** a copy of this software and associated documentation files (the
** “Software“) to deal in the Software without restriction including
** without limitation the rights to use copy modify merge publish
** distribute sublicense and/or sell copies of the Software and to
** permit persons to whom the Software is furnished to do so subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be
** included in all copies or substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND
** EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
** LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION
** OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION
** WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**
****************************************************************************/

#include “qextserialenumerator.h“
#include “qextserialenumerator_p.h“

#include 
#include taType>
#include 

QextSerialEnumeratorPrivate::QextSerialEnumeratorPrivate(QextSerialEnumerator *enumrator)
    :q_ptr(enumrator)
{
    platformSpecificInit();
}

QextSerialEnumeratorPrivate::~QextSerialEnumeratorPrivate()
{
    platformSpecificDestruct();
}

/*!
  \class QextPortInfo

  \brief The QextPortInfo class containing port information.

  Structure containing port information.

  \code
  QString portName;   ///< Port name.
  QString physName;   ///< Physical name.
  QString friendName; ///< Friendly name.
  QString enumName;   ///< Enumerator name.
  int vendorID;       ///< Vendor ID.
  int productID;      ///< Product ID
  \endcode
 */

/*! \class QextSerialEnumerator

    \brief The QextSerialEnumerator class provides list of ports available in the system.
  
    \section1 Usage
    To poll the system for a list of connected devices simply use getPorts().  Each
    QextPortInfo structure will populated with information about the corresponding device.
  
    \bold Example
    \code
    QList ports = QextSerialEnumerator::getPorts();
    foreach (QextPortInfo port ports) {
        // inspect port...
    }
    \endcode
  
    To enable event-driven notification of device connection events first cal

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1919  2017-05-15 15:55  src\.svn\all-wcprops

     文件         33  2017-05-15 15:55  src\.svn\dir-prop-base

     文件       2539  2017-05-19 15:27  src\.svn\entries

     文件       5682  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator.cpp.svn-base

     文件       2718  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator.h.svn-base

     文件       7355  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator_linux.cpp.svn-base

     文件      12970  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator_osx.cpp.svn-base

     文件       4247  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator_p.h.svn-base

     文件       2222  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator_unix.cpp.svn-base

     文件      12152  2017-05-15 15:55  src\.svn\text-base\qextserialenumerator_win.cpp.svn-base

     文件      32622  2017-05-15 15:55  src\.svn\text-base\qextserialport.cpp.svn-base

     文件       7245  2017-05-15 15:55  src\.svn\text-base\qextserialport.h.svn-base

     文件       1249  2017-05-15 15:55  src\.svn\text-base\qextserialport.pri.svn-base

     文件       2641  2017-05-15 15:55  src\.svn\text-base\qextserialport_global.h.svn-base

     文件       7382  2017-05-15 15:55  src\.svn\text-base\qextserialport_p.h.svn-base

     文件      15106  2017-05-15 15:55  src\.svn\text-base\qextserialport_unix.cpp.svn-base

     文件      14871  2017-05-15 15:55  src\.svn\text-base\qextserialport_win.cpp.svn-base

     文件       5682  2017-05-15 15:55  src\qextserialenumerator.cpp

     文件       2718  2017-05-15 15:55  src\qextserialenumerator.h

     文件       7355  2017-05-15 15:55  src\qextserialenumerator_linux.cpp

     文件      12970  2017-05-15 15:55  src\qextserialenumerator_osx.cpp

     文件       4247  2017-05-15 15:55  src\qextserialenumerator_p.h

     文件       2222  2017-05-15 15:55  src\qextserialenumerator_unix.cpp

     文件      12152  2017-05-15 15:55  src\qextserialenumerator_win.cpp

     文件      32622  2017-05-15 15:55  src\qextserialport.cpp

     文件       7245  2017-05-15 15:55  src\qextserialport.h

     文件       1249  2017-05-15 15:55  src\qextserialport.pri

     文件       2641  2017-05-15 15:55  src\qextserialport_global.h

     文件       7382  2017-05-15 15:55  src\qextserialport_p.h

     文件      15106  2017-05-15 15:55  src\qextserialport_unix.cpp

............此处省略13个文件信息

评论

共有 条评论