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

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

?? qfile.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
}/*!    \fn void QFile::setEncodingFunction(EncoderFn function)    \nonreentrant    Sets the \a function for encoding Unicode file names. The    default encodes in the locale-specific 8-bit encoding.    \sa encodeName(), setDecodingFunction()*/voidQFile::setEncodingFunction(EncoderFn f){    if (!f)        f = locale_encode;    QFilePrivate::encoder = f;}/*!    \typedef QFile::DecoderFn    This is a typedef for a pointer to a function with the following    signature:    \code        QString myDecoderFunc(const QByteArray &localFileName);    \endcode    \sa setDecodingFunction()*//*!    \fn void QFile::setDecodingFunction(DecoderFn function)    \nonreentrant    Sets the \a function for decoding 8-bit file names. The    default uses the locale-specific 8-bit encoding.    \sa setEncodingFunction(), decodeName()*/voidQFile::setDecodingFunction(DecoderFn f){    if (!f)        f = locale_decode;    QFilePrivate::decoder = f;}/*!    \overload    Returns true if the file specified by fileName() exists; otherwise    returns false.    \sa fileName(), setFileName()*/boolQFile::exists() const{    // 0x1000000 = QAbstractFileEngine::Refresh, forcing an update    return (fileEngine()->fileFlags(QAbstractFileEngine::FlagsMask                                    | QAbstractFileEngine::FileFlag(0x1000000)) & QAbstractFileEngine::ExistsFlag);}/*!    Returns true if the file specified by \a fileName exists; otherwise    returns false.*/boolQFile::exists(const QString &fileName){    return QFileInfo(fileName).exists();}/*!    \fn QString QFile::symLinkTarget() const    \since 4.2    \overload    Returns the absolute path of the file or directory a symlink (or shortcut    on Windows) points to, or a an empty string if the object isn't a symbolic    link.    This name may not represent an existing file; it is only a string.    QFile::exists() returns true if the symlink points to an existing file.    \sa fileName() setFileName()*//*!    \obsolete    Use symLinkTarget() instead.*/QStringQFile::readLink() const{    return fileEngine()->fileName(QAbstractFileEngine::LinkName);}/*!    \fn static QString QFile::symLinkTarget(const QString &fileName)    \since 4.2    Returns the absolute path of the file or directory referred to by the    symlink (or shortcut on Windows) specified by \a fileName, or returns an    empty string if the \a fileName does not correspond to a symbolic link.    This name may not represent an existing file; it is only a string.    QFile::exists() returns true if the symlink points to an existing file.*//*!    \obsolete    Use symLinkTarget() instead.*/QStringQFile::readLink(const QString &fileName){    return QFileInfo(fileName).readLink();}/*!    Removes the file specified by fileName(). Returns true if successful;    otherwise returns false.    The file is closed before it is removed.    \sa setFileName()*/boolQFile::remove(){    Q_D(QFile);    if (d->fileName.isEmpty()) {        qWarning("QFile::remove: Empty or null file name");        return false;    }    close();    if(error() == QFile::NoError) {        if(fileEngine()->remove()) {            unsetError();            return true;        }        d->setError(QFile::RemoveError, errno);    }    return false;}/*!    \overload    Removes the file specified by the \a fileName given.    Returns true if successful; otherwise returns false.    \sa remove()*/boolQFile::remove(const QString &fileName){    return QFile(fileName).remove();}/*!    Renames the file currently specified by fileName() to \a newName.    Returns true if successful; otherwise returns false.    If a file with the name \a newName already exists, rename() returns false    (i.e., QFile will not overwrite it).    The file is closed before it is renamed.    \sa setFileName()*/boolQFile::rename(const QString &newName){    Q_D(QFile);    if (d->fileName.isEmpty()) {        qWarning("QFile::rename: Empty or null file name");        return false;    }    if (QFile(newName).exists()) {        // ### Race condition. If a file is moved in after this, it /will/ be        // overwritten. On Unix, the proper solution is to use hardlinks:        // return ::link(old, new) && ::remove(old);        d->setError(QFile::RenameError, QLatin1String("Destination file exists"));        return false;    }    close();    if(error() == QFile::NoError) {        if (fileEngine()->rename(newName)) {            unsetError();            return true;        }        QFile in(fileName());        QFile out(newName);        if (in.open(QIODevice::ReadOnly)) {            if(out.open(QIODevice::WriteOnly | QIODevice::Truncate)) {                bool error = false;                char block[1024];                while (!in.atEnd()) {                    qint64 read = in.read(block, 1024);                    if (read == -1) {                        d->setError(QFile::RenameError, in.errorString());                        error = true;                        break;                    }                    if (read != out.write(block, read)) {                        d->setError(QFile::RenameError, out.errorString());                        error = true;                        break;                    }                }                if(!error)                    in.remove();                return !error;            }        }        d->setError(QFile::RenameError, out.isOpen() ? in.errorString() : out.errorString());    }    return false;}/*!    \overload    Renames the file \a oldName to \a newName. Returns true if    successful; otherwise returns false.    If a file with the name \a newName already exists, rename() returns false    (i.e., QFile will not overwrite it).    \sa rename()*/boolQFile::rename(const QString &oldName, const QString &newName){    return QFile(oldName).rename(newName);}/*!    Creates a link named \a linkName that points to the file currently specified by fileName().    What a link is depends on the underlying filesystem    (be it a shortcut on Windows or a symbolic link on Unix). Returns    true if successful; otherwise returns false.    \sa setFileName()*/boolQFile::link(const QString &linkName){    Q_D(QFile);    if (d->fileName.isEmpty()) {        qWarning("QFile::link: Empty or null file name");        return false;    }    QFileInfo fi(linkName);    if(fileEngine()->link(fi.absoluteFilePath())) {        unsetError();        return true;    }    d->setError(QFile::RenameError, errno);    return false;}/*!    \overload    Creates a link named \a linkName that points to the file \a fileName. What a link is    depends on the underlying filesystem (be it a shortcut on Windows    or a symbolic link on Unix). Returns true if successful; otherwise    returns false.    \sa link()*/boolQFile::link(const QString &fileName, const QString &linkName){    return QFile(fileName).link(linkName);}/*!    Copies the file currently specified by fileName() to a file called    \a newName.  Returns true if successful; otherwise returns false.    Note that if a file with the name \a newName already exists,    copy() returns false (i.e. QFile will not overwrite it).    The source file is closed before it is copied.    \sa setFileName()*/boolQFile::copy(const QString &newName){    Q_D(QFile);    if (d->fileName.isEmpty()) {        qWarning("QFile::copy: Empty or null file name");        return false;    }    close();    if(error() == QFile::NoError) {        if(fileEngine()->copy(newName)) {            unsetError();            return true;        } else {            bool error = false;            if(!open(QFile::ReadOnly)) {                error = true;                QString errorMessage = QLatin1String("Cannot open %1 for input");                d->setError(QFile::CopyError, errorMessage.arg(d->fileName));            } else {                QTemporaryFile out;                if(!out.open()) {                    close();                    error = true;                    d->setError(QFile::CopyError, QLatin1String("Cannot open for output"));                } else {                    char block[1024];                    while(!atEnd()) {                        qint64 in = read(block, 1024);                        if(in == -1)                            break;                        if(in != out.write(block, in)) {                            d->setError(QFile::CopyError, QLatin1String("Failure to write block"));                            error = true;                            break;                        }                    }                    if(!error && !out.rename(newName)) {                        error = true;                        QString errorMessage = QLatin1String("Cannot create %1 for output");                        d->setError(QFile::CopyError, errorMessage.arg(newName));                    }                }            }            if(!error) {                QFile::setPermissions(newName, permissions());                unsetError();                return true;            }        }    }    return false;}/*!    \overload    Copies the file \a fileName to \a newName. Returns true if successful;    otherwise returns false.    If a file with the name \a newName already exists, copy() returns false    (i.e., QFile will not overwrite it).    \sa rename()*/boolQFile::copy(const QString &fileName, const QString &newName){    return QFile(fileName).copy(newName);}/*!    Returns true if the file can only be manipulated sequentially;    otherwise returns false.    Most files support random-access, but some special files may not.    \sa QIODevice::isSequential()*/bool QFile::isSequential() const{    Q_D(const QFile);    return d->fileEngine && d->fileEngine->isSequential();}/*!    Opens the file using OpenMode \a mode.    The \a mode must be QIODevice::ReadOnly, QIODevice::WriteOnly, or    QIODevice::ReadWrite. It may also have additional flags, such as    QIODevice::Text and QIODevice::Unbuffered.    \sa QIODevice::OpenMode*/bool QFile::open(OpenMode mode){    Q_D(QFile);    if (isOpen()) {        qWarning("QFile::open: File already open");        return false;    }    if (mode & Append)        mode |= WriteOnly;    unsetError();    if ((mode & (ReadOnly | WriteOnly)) == 0) {        qWarning("QIODevice::open: File access not specified");        return false;    }    if (fileEngine()->open(mode)) {        setOpenMode(mode);        if (mode & Append)            seek(size());        return true;    }    QFile::FileError err = fileEngine()->error();    if(err == QFile::UnspecifiedError)        err = QFile::OpenError;    d->setError(err, fileEngine()->errorString());    return false;}/*! \fn QFile::open(OpenMode, FILE*)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美中文字幕一二三区视频| 欧美xxx久久| 日韩一级黄色大片| 中文在线一区二区| 视频在线观看一区二区三区| 不卡av电影在线播放| 欧美电影在线免费观看| 国产精品家庭影院| 国产乱码精品1区2区3区| 欧美视频第二页| 又紧又大又爽精品一区二区| 国产成人av影院| 日韩欧美成人一区二区| 亚洲www啪成人一区二区麻豆| 成人久久18免费网站麻豆| 欧美一级欧美一级在线播放| 亚洲精品国产无套在线观| eeuss影院一区二区三区| 精品第一国产综合精品aⅴ| 亚洲国产日韩在线一区模特| 91美女蜜桃在线| 国产精品第一页第二页第三页| 国产精品99久久久久久久vr| 欧美另类变人与禽xxxxx| 一区二区三区中文在线| 97精品视频在线观看自产线路二 | 久久99精品国产91久久来源| 欧美三区在线观看| 亚洲最色的网站| 色94色欧美sute亚洲线路一久| 久久精品视频一区二区| 国产伦精品一区二区三区视频青涩| 日韩一级完整毛片| 韩国一区二区三区| 亚洲精品在线一区二区| 国产精品一区久久久久| 亚洲精品在线三区| 国产精品一线二线三线| 国产精品对白交换视频| 色乱码一区二区三区88| 亚洲国产另类精品专区| 欧美日韩在线三区| 日韩精品视频网站| 26uuu亚洲| 成人在线视频一区| 综合欧美亚洲日本| 欧美写真视频网站| 美女网站一区二区| 国产亚洲综合在线| 99久久免费视频.com| 亚洲国产欧美另类丝袜| 日韩欧美亚洲一区二区| 国产乱码一区二区三区| 国产精品夫妻自拍| 欧美亚洲国产bt| 蜜桃视频一区二区三区| 国产精品色在线| 欧美三级电影网| 亚洲图片你懂的| 911国产精品| 岛国精品在线观看| 亚洲一级二级三级在线免费观看| 日韩视频一区在线观看| 成人白浆超碰人人人人| 偷拍日韩校园综合在线| 久久毛片高清国产| 欧美午夜精品久久久| 精品一区二区三区免费视频| 成人免费在线视频观看| 在线电影欧美成精品| 国产精品 欧美精品| 亚洲国产乱码最新视频| 久久综合网色—综合色88| 91视频在线看| 国产麻豆精品在线观看| 亚洲成va人在线观看| 国产欧美视频在线观看| 宅男噜噜噜66一区二区66| 成人av电影免费在线播放| 奇米影视7777精品一区二区| 国产精品高潮久久久久无| 91精品国产高清一区二区三区| 成人性视频网站| 麻豆91在线播放免费| 亚洲一区在线看| 一区在线观看视频| 精品久久久久久久久久久久久久久| 97精品超碰一区二区三区| 激情av综合网| 日韩va亚洲va欧美va久久| 亚洲精品国产无套在线观| 国产欧美日韩不卡| 精品精品国产高清a毛片牛牛| 在线观看欧美日本| 99精品偷自拍| 国产69精品久久777的优势| 激情综合色综合久久| 午夜精品视频一区| 亚洲高清免费在线| 亚洲精品中文在线观看| 中文字幕 久热精品 视频在线| 精品成人一区二区三区四区| 欧美美女黄视频| 欧美日韩一区二区三区高清| 色哟哟一区二区在线观看| 97精品久久久午夜一区二区三区| 国产91精品精华液一区二区三区 | 一本到不卡精品视频在线观看| 国产经典欧美精品| 国产精品99久久久久久似苏梦涵| 精品伊人久久久久7777人| 裸体健美xxxx欧美裸体表演| 久久精品国产**网站演员| 免费成人性网站| 狠狠色丁香婷婷综合久久片| 久久99国内精品| 国产一区美女在线| 国产成人免费在线观看| 成人小视频在线| 91亚洲男人天堂| 91浏览器入口在线观看| 色美美综合视频| 欧美日韩一区二区电影| 欧美久久高跟鞋激| 日韩你懂的在线播放| 精品久久国产字幕高潮| 久久久国产精品午夜一区ai换脸| 欧美高清在线精品一区| 久久综合网色—综合色88| 欧美激情一区二区三区四区| 亚洲欧美自拍偷拍色图| 一区二区三区欧美| 免费看精品久久片| 国产中文字幕精品| 成人高清视频在线| 欧美色图片你懂的| 欧美大片顶级少妇| 国产片一区二区| 亚洲一线二线三线视频| 老色鬼精品视频在线观看播放| 国产99久久久国产精品潘金网站| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 69av一区二区三区| 久久久噜噜噜久噜久久综合| 亚洲欧美日韩在线| 亚洲成人先锋电影| 国产精品亚洲第一| 欧美在线短视频| 国产亚洲一区二区三区四区| 国产精品每日更新在线播放网址| 一区二区三区精品| 六月丁香婷婷久久| 9i看片成人免费高清| 欧美精品 日韩| 国产精品成人免费| 免费看黄色91| 在线免费观看成人短视频| 久久综合色婷婷| 亚洲国产一区二区视频| 国产美女精品在线| 欧美精品久久99久久在免费线| 国产欧美日韩卡一| 青青草原综合久久大伊人精品优势| 岛国精品一区二区| 日韩精品一区二区三区视频在线观看 | 亚洲成av人片在www色猫咪| 韩国v欧美v日本v亚洲v| 在线观看91精品国产入口| wwwwxxxxx欧美| 日产精品久久久久久久性色| 94色蜜桃网一区二区三区| 精品国产精品一区二区夜夜嗨| 伊人性伊人情综合网| 盗摄精品av一区二区三区| 精品欧美一区二区久久| 亚洲成在线观看| 在线亚洲+欧美+日本专区| 国产精品麻豆网站| 国产成人精品网址| 精品免费国产一区二区三区四区| 亚洲成人精品一区| 在线视频欧美区| 亚洲精品videosex极品| jizz一区二区| 中文字幕中文字幕在线一区| 国产一区二区不卡在线| 精品国产乱码久久| 美女www一区二区| 日韩一区二区三区在线观看| 午夜不卡在线视频| 欧美日韩国产中文| 亚洲电影一区二区三区| 欧美在线free| 亚洲一区二区视频在线| 91成人在线精品| 亚洲一区二区高清| 欧美日韩一区二区三区高清| 性久久久久久久久| 欧美一区午夜精品| 麻豆一区二区99久久久久|