亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qassistantclient.cpp

?? qt-x11-opensource-src-4.1.4.tar.gz源碼
?? CPP
字號:
/******************************************************************************** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.**** This file is part of the Qt Assistant of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://www.trolltech.com/products/qt/opensource.html**** If you are unsure which license is appropriate for your use, please** review the following information:** http://www.trolltech.com/products/qt/licensing.html or contact the** sales department at sales@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#include "qassistantclient.h"#include <qtcpsocket.h>#include <qtextstream.h>#include <qtimer.h>#include <qfileinfo.h>#include <qmap.h>class QAssistantClientPrivate{    friend class QAssistantClient;    QStringList arguments;};static QMap<const QAssistantClient*,QAssistantClientPrivate*> *dpointers = 0;static QAssistantClientPrivate *data( const QAssistantClient *client, bool create=false ){    if( !dpointers )        dpointers = new QMap<const QAssistantClient*,QAssistantClientPrivate*>;    QAssistantClientPrivate *d = (*dpointers)[client];    if( !d && create ) {        d = new QAssistantClientPrivate;        dpointers->insert( client, d );    }    return d;}/*!    \class QAssistantClient    \brief The QAssistantClient class provides a means of using Qt    Assistant as an application's help tool.    \inmodule QtAssistant    \ingroup helpsystem    In order to make Qt Assistant act as a customized help tool for    your application, you must provide your application with a    QAssistantClient object in addition to a \l    {assistant-manual.html#profiles}{Qt Assistant Document Profile}    (\c .adp file) and the associated documentation.    Note that the QAssistantClient class is not included in the Qt    library. To use it you must add the following line to your pro    file:    \code        CONFIG += assistant    \endcode    A QAssistantClient instance can open or close Qt Assistant    whenever it is required.    Once you have created a QAssistantClient instance, specifying the    path to the Qt Assistant executable, using Qt Assistant is    simple: You can either call the openAssistant() slot to show the    defined start page of the documentation, or you can call the    showPage() slot to show a particular help page. When you call    openAssistant() and showPage(), Qt Assistant will be launched if    it isn't already running. When Qt Assistant is running, the    isOpen() function returns true.    When calling showPage() the Qt Assistant instance will also be    brought to the foreground if its hidden. The showPage() slot can    be called multiple times, while calling openAssistant() several    times without closing the application in between, will have no    effect.    You can close Qt Assistant at any time using the closeAssistant()    slot. When you call openAssistant(), or you call showPage()    without a previous call to openAssistant(), the assistantOpened()    signal is emitted. Similarly when closeAssistant() is called,    assistantClosed() is emitted. In either case, if an error occurs,    error() is emitted.    One QAssistantClient instance interacts with one Qt Assistant    instance, so every time you call openAssistant(), showPage() or    closeAssistant() they are applied to the particular Qt Assistant    instance associated with the QAssistantClient.    Qt Assistant's documentation set can be altered using the command    line arguments that are passed to the application when it is    launched. When started without any options, Qt Assistant displays    a default set of documentation. When Qt is installed, the default    documentation set in Qt Assistant contains the Qt reference    documentation as well as the tools that come with Qt, such as \QD    and \c qmake.    Use the setArguments() function to specify the command line    arguments. You can add or remove documentation from Qt Assistant    by adding and removing the relevant content files: The command    line arguments are \c {-addContentFile file.dcf} and \c    {-removeContentFile file.dcf} respectively. You can make Qt    Assistant run customized documentation sets that are separate from    the Qt documentation, by specifying a profile: \c {-profile    myapplication.adp}. The profile format can also be used to alter    several of Qt Assistant's properties such as its title and    startpage.    The Documentation Content File (\c .dcf) and Qt Assistant    Documentation Profile (\c .adp) formats are documented in the \l    {assistant-manual.html}{Qt Assistant Manual}.    \sa {Qt Assistant Manual}*//*!    \fn void QAssistantClient::assistantOpened()    This signal is emitted when Qt Assistant is opened and the    client-server communication is set up.    \sa openAssistant(), showPage()*//*!    \fn void QAssistantClient::assistantClosed()    This signal is emitted when the connection to Qt Assistant is    closed. This happens when the user exits Qt Assistant, if an    error in the server or client occurs, or if closeAssistant() is    called.    \sa closeAssistant()*//*!    \fn void QAssistantClient::error( const QString &message )    This signal is emitted if Qt Assistant cannot be started, or if an    error occurs during the initialization of the connection between    Qt Assistant and the calling application. The \a message provides an    explanation of the error.*//*!    Constructs an assistant client with the given \a parent.    The \a path specifies the path to the Qt Assistant executable.    If \a path is an empty string the system path (\c{%PATH%} or \c $PATH)    is used.*/QAssistantClient::QAssistantClient( const QString &path, QObject *parent )    : QObject( parent ), host ( "localhost" ){    if ( path.isEmpty() )        assistantCommand = "assistant";    else {        QFileInfo fi( path );        if ( fi.isDir() )            assistantCommand = path + "/assistant";        else            assistantCommand = path;    }#if defined(Q_OS_MAC)    assistantCommand += ".app/Contents/MacOS/assistant";#endif    socket = new QTcpSocket( this );    connect( socket, SIGNAL(connected()),            SLOT(socketConnected()) );    connect( socket, SIGNAL(disconnected()),            SLOT(socketConnectionClosed()) );    connect( socket, SIGNAL(error(QAbstractSocket::SocketError)),             SLOT(socketError()) );    opened = false;    proc = new QProcess( this );    port = 0;    pageBuffer = "";    connect( proc, SIGNAL(readyReadStandardError()),             this, SLOT(readStdError()) );    connect( proc, SIGNAL(error(QProcess::ProcessError)),        this, SLOT(procError(QProcess::ProcessError)) );}/*!    Destroys the assistant client object.*/QAssistantClient::~QAssistantClient(){    if ( proc->state() == QProcess::Running )        proc->terminate();    if( dpointers ) {        QAssistantClientPrivate *d = (*dpointers)[ this ];        if ( d ) {            dpointers->remove(this);            delete d;            if( dpointers->isEmpty() ) {                delete dpointers;                dpointers = 0;            }        }    }}/*!    Opens Qt Assistant, i.e. sets up the client-server communication    between the application and Qt Assistant, and shows the start page    specified by the current \l {assistant-manual.html#profiles}{Qt    Assistant Document Profile}. If there is no specfied profile, and    Qt is installed, the default start page is the Qt Reference    Documentation's index page.    If the connection is already established, this function does    nothing. Use the showPage() function to show another page. If an    error occurs, the error() signal is emitted.    \sa showPage(), assistantOpened()*/void QAssistantClient::openAssistant(){    if ( proc->state() == QProcess::Running )        return;    QStringList args;    args.append("-server");    if( !pageBuffer.isEmpty() ) {        args.append( "-file" );        args.append( pageBuffer );    }    QAssistantClientPrivate *d = data( this );    if( d ) {        QStringList::ConstIterator it = d->arguments.begin();        while( it!=d->arguments.end() ) {            args.append( *it );            ++it;        }    }    connect( proc, SIGNAL(readyReadStandardOutput()),        this, SLOT(readPort()) );    proc->start(assistantCommand, args);}void QAssistantClient::procError(QProcess::ProcessError err){    switch (err)    {    case QProcess::FailedToStart:        emit error( tr( "Failed to start Qt Assistant." ) );        break;    case QProcess::Crashed:        emit error( tr( "Qt Assistant crashed." ) );        break;    default:        emit error( tr( "Error while running Qt Assistant." ) );    }}void QAssistantClient::readPort(){    QString p = proc->readAllStandardOutput();    quint16 port = p.toUShort();    if ( port == 0 ) {        emit error( tr( "Cannot connect to Qt Assistant." ) );        return;    }    socket->connectToHost( host, port );    disconnect( proc, SIGNAL(readyReadStandardOutput()),                this, SLOT(readPort()) );}/*!    Closes the Qt Assistant instance.    \sa openAssistant(), assistantClosed()*/void QAssistantClient::closeAssistant(){    if ( !opened )        return;    proc->terminate();    if (!proc->waitForFinished(2000)) {        // If the process hasn't died after 2 seconds,        // we kill it, causing it to exit immediately.        proc->kill();    }}/*!    Brings Qt Assistant to the forground showing the given \a page.    The \a page parameter is a filename (e.g. \c myhelpfile.html).    If Qt Assistant hasn't been opened yet, this function will call    the openAssistant() slot with the specified page as the start    page.    \sa openAssistant()*/void QAssistantClient::showPage( const QString &page ){    if ( !opened ) {        pageBuffer = page;        openAssistant();        pageBuffer.clear();        return;    }    QTextStream os( socket );    os << page << "\n";}/*!    \property QAssistantClient::open    \brief whether Qt Assistant is open*/bool QAssistantClient::isOpen() const{    return opened;}void QAssistantClient::socketConnected(){    opened = true;    if ( !pageBuffer.isEmpty() )        showPage( pageBuffer );    emit assistantOpened();}void QAssistantClient::socketConnectionClosed(){    opened = false;    emit assistantClosed();}void QAssistantClient::socketError(){    QAbstractSocket::SocketError err = socket->error();    if (err == QTcpSocket::ConnectionRefusedError)        emit error( tr( "Could not connect to Assistant: Connection refused" ) );    else if (err == QTcpSocket::HostNotFoundError)        emit error( tr( "Could not connect to Assistant: Host not found" ) );    else if (err != QTcpSocket::RemoteHostClosedError)        emit error( tr( "Communication error" ) );}void QAssistantClient::readStdError(){    QString errmsg = proc->readAllStandardError();    if (!errmsg.isEmpty())        emit error( errmsg.simplified() );}/*!    \fn void QAssistantClient::setArguments(const QStringList &arguments)    Sets the command line \a arguments that are passed to Qt Assistant    when it is launched.    The command line arguments can be used to alter Qt Assistant's    documentation set. When started without any options, Qt Assistant    displays a default set of documentation. When Qt is installed, the    default documentation set in Qt Assistant contains the Qt    reference documentation as well as the tools that come with Qt,    such as Qt Designer and qmake.    \sa {assistant-manual.html#customizing-qt-assistant}{Customizing    Qt Assistant}*/void QAssistantClient::setArguments( const QStringList &args ){    QAssistantClientPrivate *d = data( this, true );    d->arguments = args;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久精品网| 欧美tk—视频vk| 久久99精品久久久久久国产越南 | 午夜影视日本亚洲欧洲精品| 精品粉嫩aⅴ一区二区三区四区 | 久久精品亚洲乱码伦伦中文| 欧美私模裸体表演在线观看| 国产盗摄精品一区二区三区在线| 亚洲成人精品一区| **欧美大码日韩| 久久这里只精品最新地址| 欧美最新大片在线看| 成人av在线电影| 国产一区视频网站| 久久精品噜噜噜成人av农村| 一级特黄大欧美久久久| 亚洲国产精品av| 精品久久人人做人人爰| 欧美日韩国产小视频| 91麻豆国产精品久久| 91日韩在线专区| 国产不卡视频一区| 韩国av一区二区三区在线观看| 午夜精品久久久久久久久久久| 一区二区欧美视频| 亚洲欧美激情一区二区| 中文字幕高清不卡| 国产日韩精品久久久| 精品盗摄一区二区三区| 日韩欧美一区二区视频| 91精品国产色综合久久久蜜香臀| 欧美色电影在线| 日本道精品一区二区三区| 91色综合久久久久婷婷| 99久久精品免费观看| 国产成都精品91一区二区三| 国产一区二区导航在线播放| 久久精品国产网站| 久久国产尿小便嘘嘘| 美国毛片一区二区三区| 老鸭窝一区二区久久精品| 精品在线一区二区三区| 韩国欧美国产一区| 国产在线不卡一卡二卡三卡四卡| 国产资源在线一区| 国产成人午夜精品5599| 成人精品鲁一区一区二区| 成人av在线影院| 91麻豆高清视频| 欧美这里有精品| 欧美日韩一级片在线观看| 制服丝袜亚洲播放| 日韩欧美亚洲一区二区| 久久久亚洲精华液精华液精华液 | 欧美午夜在线观看| 欧美精品久久久久久久久老牛影院| 欧美日韩亚洲综合在线| 日韩一区二区三区av| 精品国产免费久久| 日本一区二区视频在线| 一区2区3区在线看| 日韩国产一二三区| 国产一区二区成人久久免费影院| 不卡电影免费在线播放一区| 欧美色综合影院| 精品国产一区二区三区忘忧草| 亚洲午夜在线视频| 亚洲大片精品永久免费| 九九九精品视频| 91在线视频免费观看| 欧美四级电影在线观看| 欧美成人乱码一区二区三区| 国产欧美一区视频| 亚洲一区免费观看| 毛片基地黄久久久久久天堂| 成人黄色大片在线观看| 91国产免费看| 久久午夜色播影院免费高清| 亚洲精品国产a| 激情五月播播久久久精品| 成人av免费网站| 欧美成人伊人久久综合网| 亚洲欧洲日本在线| 老色鬼精品视频在线观看播放| 成人激情校园春色| 欧美精品久久一区二区三区| 日本一区二区视频在线| 日日夜夜免费精品视频| 高清在线观看日韩| 91精品在线观看入口| 国产精品成人免费| 蜜桃视频第一区免费观看| av色综合久久天堂av综合| 欧美mv和日韩mv国产网站| 亚洲人成精品久久久久| 国产麻豆视频精品| 欧美日韩视频在线第一区| 久久精品无码一区二区三区| 天天综合网天天综合色| 99这里都是精品| 精品久久久久香蕉网| 一个色综合av| 99在线精品免费| 2欧美一区二区三区在线观看视频| 亚洲国产aⅴ天堂久久| 97精品国产露脸对白| 久久久九九九九| 日本免费在线视频不卡一不卡二| 色先锋资源久久综合| 欧美韩国日本一区| 激情综合色综合久久综合| 欧美日韩免费电影| 亚洲精品国产一区二区精华液| 成人免费高清视频| 久久精品人人做人人爽97| 美女视频免费一区| 欧美日本精品一区二区三区| 亚洲精品你懂的| 成人蜜臀av电影| 国产色产综合产在线视频 | 在线观看欧美日本| **性色生活片久久毛片| 白白色 亚洲乱淫| 欧美高清一级片在线观看| 国产乱子伦一区二区三区国色天香| 日韩一区二区三区视频在线| 日韩av一区二区三区四区| 欧美日韩成人高清| 亚洲一区成人在线| 欧美日韩精品免费| 国产一区二区美女诱惑| 欧美一级高清大全免费观看| 蜜臀av一级做a爰片久久| 欧美一区在线视频| 日韩电影免费在线观看网站| 欧美久久久一区| 天堂精品中文字幕在线| 欧美一区日本一区韩国一区| 日日摸夜夜添夜夜添国产精品| 欧美日韩国产片| 亚洲一区二区在线视频| 欧美吻胸吃奶大尺度电影 | 极品少妇一区二区| 精品少妇一区二区三区| 国产精品一区在线观看乱码 | 日韩综合在线视频| 欧美一区二区三区四区在线观看| 麻豆成人综合网| 精品国产乱码久久久久久图片 | 欧美精品色一区二区三区| 五月婷婷激情综合| 日韩欧美亚洲一区二区| 国产高清在线精品| 中文字幕亚洲一区二区av在线 | 日韩欧美一区二区三区在线| 久久er99热精品一区二区| 久久久精品tv| 99精品欧美一区| 日韩精品一卡二卡三卡四卡无卡| 欧美xxxx老人做受| 成a人片亚洲日本久久| 亚洲线精品一区二区三区| 欧美一区二区免费观在线| 国产麻豆精品一区二区| 亚洲美女免费在线| 日韩一级片网址| 99re成人精品视频| 午夜精品在线看| 久久久精品国产99久久精品芒果| 色老汉av一区二区三区| 免费成人美女在线观看.| 国产精品天美传媒| 欧美三区在线视频| 国产一级精品在线| 亚洲精品免费播放| 日韩视频免费直播| 99久久免费国产| 裸体在线国模精品偷拍| 成人免费一区二区三区视频| 69p69国产精品| av在线这里只有精品| 日韩精品福利网| 一区二区中文字幕在线| 日韩一区二区三区电影| 国产不卡一区视频| 蜜桃av一区二区| 一二三四社区欧美黄| 久久美女高清视频| 欧美日韩国产123区| 国产99久久久国产精品免费看| 水野朝阳av一区二区三区| 中文字幕不卡在线| 欧美一级在线免费| 91麻豆123| 成人一区二区三区| 欧美bbbbb| 亚洲超碰精品一区二区| 国产精品青草综合久久久久99| 日韩女优视频免费观看| 欧美视频在线一区|