更新翻译

Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
jlspcdd1227dd 2023-03-27 09:50:16 +00:00 committed by Gitee
parent 13b903d572
commit 7eee1866ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 54 additions and 54 deletions

View File

@ -369,7 +369,7 @@ $ sudo apt-get install libkysdk-hardware libkysdk-hardware-dev
Get the manufacturer name and device model of the specified network card
<table style="width: auto;"><tbody><tr><td colSpan="1" rowSpan="1" width="67">submodule</td><td colSpan="1" rowSpan="1" width="82">Programming language</td><td colSpan="2" rowSpan="1" width="312">statement</td><td colSpan="1" rowSpan="1" width="98">describe</td></tr><tr><td colSpan="1" rowSpan="3" width="67">Get network card information</td><td colSpan="1" rowSpan="3" width="82">C</td><td colSpan="2" rowSpan="1" width="312">extern int kdk_nc_get_vendor_and_product(const char *nc, char *vendor, char *product);</td><td colSpan="1" rowSpan="1" width="98">获取指定网卡的厂商名称和设备型号</td></tr><tr><td colSpan="1" rowSpan="1" width="127">Parameter Description</td><td colSpan="1" rowSpan="1" width="184">Return value description</td><td colSpan="1" rowSpan="1" width="98"></td></tr><tr><td colSpan="1" rowSpan="1" width="127">ncNetwork card name, such as eno1vendor接受厂商名称的缓冲区product接受设备型号的缓冲区</td><td colSpan="1" rowSpan="1" width="184">0 : 成功1 : 失败</td><td colSpan="1" rowSpan="1" width="98"></td></tr></tbody></table>
<table style="width: auto;"><tbody><tr><td colSpan="1" rowSpan="1" width="67">submodule</td><td colSpan="1" rowSpan="1" width="82">Programming language</td><td colSpan="2" rowSpan="1" width="312">statement</td><td colSpan="1" rowSpan="1" width="98">describe</td></tr><tr><td colSpan="1" rowSpan="3" width="67">Get network card information</td><td colSpan="1" rowSpan="3" width="82">C</td><td colSpan="2" rowSpan="1" width="312">extern int kdk_nc_get_vendor_and_product(const char *nc, char *vendor, char *product);</td><td colSpan="1" rowSpan="1" width="98">Get the manufacturer name and device model of the specified network card</td></tr><tr><td colSpan="1" rowSpan="1" width="127">Parameter Description</td><td colSpan="1" rowSpan="1" width="184">Return value description</td><td colSpan="1" rowSpan="1" width="98"></td></tr><tr><td colSpan="1" rowSpan="1" width="127">ncNetwork card name, such as eno1vendor接受厂商名称的缓冲区product接受设备型号的缓冲区</td><td colSpan="1" rowSpan="1" width="184">0 : 成功1 : 失败</td><td colSpan="1" rowSpan="1" width="98"></td></tr></tbody></table>
list of recycled strings
@ -645,7 +645,7 @@ target_link_libraries(kypackage-test kypackage)
Check whether the package with the specified package name is installed correctly
<table style="width: auto;"><tbody><tr><td colSpan="1" rowSpan="1" width="67">submodule</td><td colSpan="1" rowSpan="1" width="81">Programming language</td><td colSpan="2" rowSpan="1" width="313">statement</td><td colSpan="1" rowSpan="1" width="94">describe</td></tr><tr><td colSpan="1" rowSpan="3" width="67">获取包列表信息</td><td colSpan="1" rowSpan="3" width="81">C</td><td colSpan="2" rowSpan="1" width="313">extern int kdk_package_is_installed(const char *name, const char *version)</td><td colSpan="1" rowSpan="1" width="94">检测指定包名的软件包是否正确安装</td></tr><tr><td colSpan="1" rowSpan="1" width="137">Parameter Description</td><td colSpan="1" rowSpan="1" width="176">Return value description</td><td colSpan="1" rowSpan="1" width="94"></td></tr><tr><td colSpan="1" rowSpan="1" width="137">name软件包名version版本号大部分情况下为NULL预留为snap做准备</td><td colSpan="1" rowSpan="1" width="176">int 成功返回0失败返回错误码</td><td colSpan="1" rowSpan="1" width="94"></td></tr></tbody></table>
<table style="width: auto;"><tbody><tr><td colSpan="1" rowSpan="1" width="67">submodule</td><td colSpan="1" rowSpan="1" width="81">Programming language</td><td colSpan="2" rowSpan="1" width="313">statement</td><td colSpan="1" rowSpan="1" width="94">describe</td></tr><tr><td colSpan="1" rowSpan="3" width="67">Get package list information</td><td colSpan="1" rowSpan="3" width="81">C</td><td colSpan="2" rowSpan="1" width="313">extern int kdk_package_is_installed(const char *name, const char *version)</td><td colSpan="1" rowSpan="1" width="94">检测指定包名的软件包是否正确安装</td></tr><tr><td colSpan="1" rowSpan="1" width="137">Parameter Description</td><td colSpan="1" rowSpan="1" width="176">Return value description</td><td colSpan="1" rowSpan="1" width="94"></td></tr><tr><td colSpan="1" rowSpan="1" width="137">name软件包名version版本号大部分情况下为NULL预留为snap做准备</td><td colSpan="1" rowSpan="1" width="176">int 成功返回0失败返回错误码</td><td colSpan="1" rowSpan="1" width="94"></td></tr></tbody></table>
### **3.1.4** Get resource information
@ -1599,56 +1599,56 @@ int decimals, bool *ok, Qt::WindowFlags flags)
| statement | describe |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| void setInputMode(InputMode mode); | 设置输入模式 |
| InputMode inputMode() const; | 获取输入模式 |
| void setLabelText(const QString &text); | 设置标签文本 |
| QString labelText() const; | 获取标签文本 |
| void setOption(InputDialogOption option, bool on = true); | 设置选项 |
| bool testOption(InputDialogOption option) const; | 测试选项 |
| void setOptions(InputDialogOptions options); | 设置选项 |
| InputDialogOptions options() const; | 获取输入框选项 |
| void setTextValue(const QString &text); | 设置文本值 |
| QString textValue() const; | 获取文本值 |
| void setTextEchoMode(QLineEdit::EchoMode mode); | 设置文本模式 |
| QLineEdit::EchoMode textEchoMode() const; | 获取文本模式 |
| void setComboBoxEditable(bool editable); | 设置组合框可编辑 |
| bool isComboBoxEditable() const; | 返回组合框是否可以编辑 |
| void setComboBoxItems(const QStringList &items); | 设置组合框项目 |
| QStringList comboBoxItems() const; | 返回组合框列表 |
| void setIntValue(int value); | 设置int类型的值 |
| int intValue() const; | 获取int类型的值 |
| void setIntMinimum(int min); | 设置int类型的最低值 |
| int intMinimum() const; | 获取int最低值 |
| void setIntMaximum(int max); | 设置int类型最大值 |
| int intMaximum() const; | 获取int最大值 |
| void setIntRange(int min, int max); | 设置int范围 |
| void setIntStep(int step); | 设置int步数 |
| int intStep() const; | 获取int步数 |
| void setDoubleValue(double value); | 设置double值 |
| double doubleValue() const; | 获取double值 |
| void setDoubleMinimum(double min); | 设置double最小值 |
| double doubleMinimum() const; | 获取double最小值 |
| void setDoubleMaximum(double max); | 设置double最大值 |
| double doubleMaximum() const; | 获取double最大值 |
| void setDoubleRange(double min, double max); | 设置double范围 |
| void setDoubleDecimals(int decimals); | 设置两个小数 |
| int doubleDecimals() const; | 返回小数位数 |
| void setOkButtonText(const QString &text); | 设置确认按钮文本 |
| QString okButtonText() const; | 获取确认按钮文本 |
| void setCancelButtonText(const QString &text); | 设置取消按钮文本 |
| QString cancelButtonText() const; | 获取取消按钮文本 |
| void open(QObject *receiver, const char *member); | 此函数将其信号之一连接到接收器和成员指定的插槽。特定信号取决于在成员中指定的参数。 |
| void setVisible(bool visible) override; | 设置是否可见 |
| QSize minimumSizeHint() const override; | 最小尺寸提示 |
| QSize sizeHint() const override; | 尺寸提示 |
| static QString getText(QWidget *parent,const QString &label,QLineEdit::EchoMode echo = QLineEdit::Normal,const QString &text = String(), bool *ok = nullptr,Qt::WindowFlags flags = Qt::WindowFlags(),Qt::InputMethodHints inputMethodHints = Qt::ImhNone); | 获取文本 |
| static QString getMultiLineText(QWidget *parent,const QString &label,const QString &text = QString(), bool *ok = nullptr,Qt::WindowFlags flags = Qt::WindowFlags(),Qt::InputMethodHints inputMethodHints = Qt::ImhNone); | 获取多行文本 |
| static QString getItem(QWidget *parent,const QString &label,const QStringList &items, int current = 0, bool editable = true,bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(),Qt::InputMethodHints inputMethodHints = Qt::ImhNone); | 获取项目 |
| static int getInt(QWidget *parent,const QString &label, int value = 0,int minValue = -2147483647, int maxValue = 2147483647,int step = 1, bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()) | 获取int型文本 |
| static double getDouble(QWidget *parent,const QString &label,double value = 0, double minValue = -2147483647,double maxValue = 2147483647, int decimals = 1, bool *ok = nullptr,Qt::WindowFlags flags = Qt::WindowFlags()); | 获取double类型文本 |
| void setDoubleStep(double step); | 设置double步数 |
| double doubleStep() const; | 获取double步数 |
| void setPlaceholderText(const QString &); | 设置PlaceholderText的文本内容自1.2.0.12启用) |
| void setInputMode(InputMode mode); | set input mode |
| InputMode inputMode() const; | get input mode |
| void setLabelText(const QString &text); | set label text |
| QString labelText() const; | get label text |
| void setOption(InputDialogOption option, bool on = true); | Setting Options |
| bool testOption(InputDialogOption option) const; | test options |
| void setOptions(InputDialogOptions options); | Setting Options |
| InputDialogOptions options() const; | Get input box options |
| void setTextValue(const QString &text); | set text value |
| QString textValue() const; | get text value |
| void setTextEchoMode(QLineEdit::EchoMode mode); | set text mode |
| QLineEdit::EchoMode textEchoMode() const; | get text mode |
| void setComboBoxEditable(bool editable); | Set the combo box to be editable |
| bool isComboBoxEditable() const; | Return whether the combo box can be edited |
| void setComboBoxItems(const QStringList &items); | Set combo box item |
| QStringList comboBoxItems() const; | Return combo box list |
| void setIntValue(int value); | Set the value of type int |
| int intValue() const; | Get the value of type int |
| void setIntMinimum(int min); | Set the lowest value of type int |
| int intMinimum() const; | Get the lowest value of int |
| void setIntMaximum(int max); | Set the maximum value of int type |
| int intMaximum() const; | Get the maximum value of int |
| void setIntRange(int min, int max); | set int range |
| void setIntStep(int step); | set int steps |
| int intStep() const; | Get int steps |
| void setDoubleValue(double value); | set double value |
| double doubleValue() const; | get double value |
| void setDoubleMinimum(double min); | Set the double minimum value |
| double doubleMinimum() const; | Get the minimum value of double |
| void setDoubleMaximum(double max); | Set the maximum value of double |
| double doubleMaximum() const; | Get the maximum value of double |
| void setDoubleRange(double min, double max); | set double range |
| void setDoubleDecimals(int decimals); | set two decimals |
| int doubleDecimals() const; | returns the number of decimal places |
| void setOkButtonText(const QString &text); | Set confirm button text |
| QString okButtonText() const; | Get the confirm button text |
| void setCancelButtonText(const QString &text); | Set cancel button text |
| QString cancelButtonText() const; | get cancel button text |
| void open(QObject *receiver, const char *member); | This function connects one of its signals to the receiver and the slot specified by the member. The specific signal depends on the parameters specified in the member. |
| void setVisible(bool visible) override; | Whether the setting is visible |
| QSize minimumSizeHint() const override; | Min Size Tips |
| QSize sizeHint() const override; | size tips |
| static QString getText(QWidget *parent,const QString &label,QLineEdit::EchoMode echo = QLineEdit::Normal,const QString &text = String(), bool *ok = nullptr,Qt::WindowFlags flags = Qt::WindowFlags(),Qt::InputMethodHints inputMethodHints = Qt::ImhNone); | get text |
| static QString getMultiLineText(QWidget *parent,const QString &label,const QString &text = QString(), bool *ok = nullptr,Qt::WindowFlags flags = Qt::WindowFlags(),Qt::InputMethodHints inputMethodHints = Qt::ImhNone); | get multiline text |
| static QString getItem(QWidget *parent,const QString &label,const QStringList &items, int current = 0, bool editable = true,bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(),Qt::InputMethodHints inputMethodHints = Qt::ImhNone); | get item |
| static int getInt(QWidget *parent,const QString &label, int value = 0,int minValue = -2147483647, int maxValue = 2147483647,int step = 1, bool *ok = nullptr, Qt::WindowFlags flags = Qt::WindowFlags()) | get int type text |
| static double getDouble(QWidget *parent,const QString &label,double value = 0, double minValue = -2147483647,double maxValue = 2147483647, int decimals = 1, bool *ok = nullptr,Qt::WindowFlags flags = Qt::WindowFlags()); | Get double type text |
| void setDoubleStep(double step); | Set the number of double steps |
| double doubleStep() const; | Get the number of double steps |
| void setPlaceholderText(const QString &); | Set the text content of PlaceholderText (enabled since 1.2.0.12) |
| QString placeholderText() const; | Get the text content of PlaceholderText (enabled since 1.2.0.12) |
@ -2476,9 +2476,9 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
| submodule | Programming language | statement | describe |
|-----------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| d-bus module | C++ | static QList<QVariant> callMethod(QString serviceName, QString objectPath, QString interfaceName, QString methodName, QList<QVariant> args = QList<QVariant>()); | 函数调用 |
| d-bus module | C++ | static QList<QVariant> callMethod(QString serviceName, QString objectPath, QString interfaceName, QString methodName, QList<QVariant> args = QList<QVariant>()); | function call |
| | | Parameter Description | Return value description |
| | | serviceName : Service Name | 函数返回值 |
| | | serviceName : Service Name | function return value |
| | | objectPath : object path | |
| | | interfaceName : interface name | |
| | | methodName : Function name | |