pax_global_header00006660000000000000000000000064141140703270014511gustar00rootroot0000000000000052 comment=d0a66abaecc820d87d03e788b72802eaa59723e1 dde-network-utils-5.4.13/000077500000000000000000000000001411407032700151645ustar00rootroot00000000000000dde-network-utils-5.4.13/.gitignore000066400000000000000000000000501411407032700171470ustar00rootroot00000000000000build*/ *.pro.user* .vscode/* bin/ *.qm dde-network-utils-5.4.13/.gitlab-ci.yml000066400000000000000000000002271411407032700176210ustar00rootroot00000000000000include: - remote: 'https://gitlab.deepin.io/dev-tools/letmeci/raw/master/gitlab-ci/dde.yml' variables: CPPCHECK: "true" CODESPELL: "true"dde-network-utils-5.4.13/.packit.yaml000066400000000000000000000011531411407032700174010ustar00rootroot00000000000000# See the documentation for more information: # https://packit.dev/docs/configuration/ specfile_path: rpm/deepin-network-utils.spec # add or remove files that should be synced synced_files: - rpm/deepin-network-utils.spec - .packit.yaml upstream_package_name: dde-network-utils # downstream (Fedora) RPM package name downstream_package_name: deepin-network-utils actions: fix-spec-file: | bash -c "sed -i -r \"0,/Version:/ s/Version:(\s*)\S*/Version:\1${PACKIT_PROJECT_VERSION}/\" rpm/deepin-network-utils.spec" post-upstream-clone: | cp rpm/dde-network-utils.spec rpm/deepin-network-utils.spec dde-network-utils-5.4.13/.project000066400000000000000000000002761411407032700166400ustar00rootroot00000000000000{ "type": "homebrew" | "opensource", "3rdparty": [], "ignore": ["*.md", "./debian", "*.pro", "*.ts"], "license": ["LICENSE"], "importantFile": ["dde-network-utils/*.h"] }dde-network-utils-5.4.13/.tx/000077500000000000000000000000001411407032700156755ustar00rootroot00000000000000dde-network-utils-5.4.13/.tx/config000066400000000000000000000003751411407032700170720ustar00rootroot00000000000000[main] host = https://www.transifex.com minimum_perc = 80 mode = developer [deepin-desktop-environment.dde-network-utils] file_filter = translations/dde-network-utils_.ts source_file = translations/dde-network-utils.ts source_lang = en type = QT dde-network-utils-5.4.13/CHANGELOG.md000066400000000000000000000036231411407032700170010ustar00rootroot00000000000000 ## 0.1.4 (2019-04-15) #### Bug Fixes * connectivity allways NotFull if startup without NotFull ([d5ee0029](d5ee0029)) ## 0.1.3 (2019-04-10) ## 0.1.2 (2019-04-04) #### Features * check network connectivity ([5c044c86](5c044c86)) ## 0.1.1 (2019-03-27) ## 0.1.0 (2019-03-11) #### Features * distribute active connections to devices ([1aeb456c](1aeb456c)) ## 0.0.9 (2019-01-25) #### Features * there could be multiple active connections for a device ([1077a641](1077a641)) #### Bug Fixes * macaddress ([fca6c689](fca6c689)) ## 0.0.8.2 (2018-12-25) #### Bug Fixes * crash when get size of QQueue ([c7b99d90](c7b99d90)) ## 0.0.8.1 (2018-12-10) #### Bug Fixes * device state string typo ([d535744c](d535744c)) ## 0.0.8 (2018-12-03) #### Features * more detailed device status string ([238b2711](238b2711)) ## 0.0.7 (2018-11-09) #### Bug Fixes * active connection info of device may not set ([ade29a08](ade29a08)) ### 0.0.6 (2018-10-25) #### Bug Fixes * active connection identify ([345cccbf](345cccbf)) * get connection uuid by ap's ssid ([8cec5877](8cec5877)) ## 0.0.5 (2018-09-10) #### Bug Fixes * new device connections is empty ([f15fd1d9](f15fd1d9)) * devices list changed signal ([6f95ea9b](6f95ea9b)) ### 0.0.4 (2018-07-31) ### 0.0.3 (2018-07-20) ### 0.0.2 (2018-07-20) #### Bug Fixes * add ts ([362c1164](362c1164)) * spelling mistake ([4f031ae5](4f031ae5)) * missing install files ([48b5871c](48b5871c)) * **wireless:** active ap is empty after connection is activated ([1e4bcc09](1e4bcc09)) ### 0.0.1 dde-network-utils-5.4.13/LICENSE000066400000000000000000001045131411407032700161750ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . dde-network-utils-5.4.13/README.md000066400000000000000000000115101411407032700164410ustar00rootroot00000000000000# dde-network-utils dde-network-utils 是对 dde-daemon 的网络模块所提供的 DBus 数据的一个再封装。由于原始 DBus 数据中存在许多信息杂糅、经常要处理字符串及 Json 数据解析等问题,再加上网络模块涉及有设备信息、代理信息、网络连接信息等许多信息的处理与聚集关联,单一只靠 DBus 已经无法高效、合理的处理它们。同时由于 DBus 调用固有的延迟及低可靠性等问题,也需要有一个中间层来作为缓冲。 # 基本模块 - NetworkModel 作为网络信息的数据模型,提供网络数据的 getter 方法与状态通知信号。 - NetworkWorker 作为网络后端的抽象,提供网络控制动作的 setter 方法,并主动同步数据到 model。 - NetworkDevice 作为网络设备的抽象。 - WiredDevice 有线网络设备 - WirelessDevice 无线网络设备 ## NetworkModel NetworkModel 是上层应用访问网络数据的第一入口,它保存了网络相关的所有信息,主要有两个方面: - 全局网络信息 - 全局网络状态 - 网络代理状态 - 设备无关的网络连接状态 - 网络设备列表 - 有线设备及其关联的连接列表 - 无线设备及其关联的 AP 列表 NetworkModel 类的主要公共接口提供了设备列表和各个设备无关的网络属性的获取,并实现了这些属性在变化时的 changed 信号。其中,设备相关的属性及信息被分发到了各个设备中进行具体处理,全局及公用的一些属性放在本类中管理。 由于网络模块的复杂性及后端接口的局限,目前网络模块需要小心的一点是不同类型信息之前的聚合处理,例如如何将网络连接、已激活的网络连接、有线及无线设备信息之间相互关联进来。**每个网络连接即对应着一个真实的 NetworkManager 的配置文件,它的唯一字段是 UUID**,注意这里说的网络连接不要和无线设备中AccessPoint的概念混淆。而同时在设备中,每个设备也有自己的 UUID。但需要注意的是,在目前的后端数据模型中,UUID 仅仅只能用来匹配网络连接和已激活的网络连接,如果想知道设备上的连接信息,需要通过设备的 MAC 地址和配置文件中所关联的 MAC 地址做比对。此处还需要注意的是设备的 MAC 地址分为克隆 MAC 地址和真实 MAC 地址。 ## NetworkWorker NetworkWorker 是上层业务逻辑实现网络控制的唯一途径。底层通过 DBus 调用 dde-daemon 所提供的网络配置接口。本类主要是进行了接口抽象,并做了一些基本的预处理以方便上层业务进行网络控制。同时,handle 了来自后端的数据变化,在进行简单的加工后注入到 NetworkModel 里并通过 NetworkModel 的 notify 事件向上传递。 NetworkWorker 中有一类 queryXxx 的方法,用来提供给上层业务一个主动刷新各种数据的方法,最终这些 queryXxx 方法会被转化成底层 DBus 调用执行,结果会注入回 NetworkModel 中,通过 notify 事件再反馈到 UI 层。 需要注意的是,在正常的业务逻辑过程中,queryXxx 是不应该出现的,NetworkModel 会自动处理所有动态信息,这些接口应该只在界面初始化刷新时,可能需要被调用一次。 ## NetworkDevice NetworkDevice 是对网络设备的一个基本抽象,作为设备管理的基本单元。一些与设备相关的属性和其对应的处理信号被封装在了设备内部,以提供更好的 OOP 接口。 NetworkDevice 对应了机器上的每个真实网络设备,它具有自己的基本硬件信息和网络状态信息,提供了此网卡的工作状态信息及状态转换信号。 ### WiredDevice 由 NetworkDevice 派生出来的有线网络设备,增加了有线网络特有的 ActiveConnection 等属性。 ### WirelessDevice 由 NetworkDevice 派生出来的无线网络设备,增加了如热点信息、AP 列表信息等无线网络特有的信息。 在WirelessDevice中,网络连接和无线网络连接的概念都有,那么同时,已激活网络连接(ActiveConnection)和已激活无线网络连接(ActiveApInfo)的概念也有,需要注意区分。一个网络连接如`NetworkModel`一节中所介绍的那样代表了NetworkManager的一个配置文件,而无线网络连接则**没有**对应的NetworkManager的配置文件。另外每一个网络连接可以提供UUID,ipv4,ipv6,网关等信息,每一个无线网络连接可以提供path(唯一标识),ssid(无线网名称),secret(是否加密),strength(信号强度)等信息。 # Roadmap dde-daemon 所提供的后端逻辑已经有些过时了,将来可以尝试直接连接 NetworkManager 的 DBus 接口进行网络控制,通过重构 NetworkWorker 或者添加新的抽象层来将后端接口迁移到更底层的控制逻辑上。 dde-network-utils-5.4.13/dde-network-utils.pro000066400000000000000000000004731411407032700212730ustar00rootroot00000000000000TEMPLATE = subdirs SUBDIRS += $$PWD/dde-network-utils/dde-network-utils.pro \ $$PWD/tests/dde-network-utils/tst_dde-network-utils.pro # Automating generation .qm files from .ts files CONFIG(release, debug|release) { !system($$PWD/translate_generation.sh): error("Failed to generate translation") } dde-network-utils-5.4.13/dde-network-utils/000077500000000000000000000000001411407032700205455ustar00rootroot00000000000000dde-network-utils-5.4.13/dde-network-utils/NetworkDevice000066400000000000000000000000331411407032700232350ustar00rootroot00000000000000#include "networkdevice.h" dde-network-utils-5.4.13/dde-network-utils/NetworkModel000066400000000000000000000000321411407032700230750ustar00rootroot00000000000000#include "networkmodel.h" dde-network-utils-5.4.13/dde-network-utils/NetworkWorker000066400000000000000000000000331411407032700233070ustar00rootroot00000000000000#include "networkworker.h" dde-network-utils-5.4.13/dde-network-utils/WiredDevice000066400000000000000000000000311411407032700226540ustar00rootroot00000000000000#include "wireddevice.h" dde-network-utils-5.4.13/dde-network-utils/WirelessDevice000066400000000000000000000000341411407032700234020ustar00rootroot00000000000000#include "wirelessdevice.h" dde-network-utils-5.4.13/dde-network-utils/connectivitychecker.cpp000066400000000000000000000070511411407032700253170ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2019 Deepin Technology Co., Ltd. * * Author: listenerri * * Maintainer: listenerri * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "connectivitychecker.h" #include #include #include #include #include //当没有进行配置的时候, 则访问我们官网 static const QStringList CheckUrls { "https://www.uniontech.com", }; #define TIMERINTERVAL (60 * 1000) // 一分钟 #define TIMEOUT (30 * 1000) // 30s超时 using namespace dde::network; ConnectivityChecker::ConnectivityChecker(QObject *parent) : QObject(parent) { if (QGSettings::isSchemaInstalled("com.deepin.dde.network-utils")) { m_settings = new QGSettings("com.deepin.dde.network-utils", "/com/deepin/dde/network-utils/", this); m_checkUrls = m_settings->get("network-checker-urls").toStringList(); connect(m_settings, &QGSettings::changed, [ = ] (const QString key) { if (key == "network-checker-urls") { m_checkUrls = m_settings->get("network-checker-urls").toStringList(); } }); } m_checkConnectivityTimer = new QTimer(this); m_checkConnectivityTimer->setInterval(TIMERINTERVAL); connect(m_checkConnectivityTimer, &QTimer::timeout, this, &ConnectivityChecker::startCheck); m_checkConnectivityTimer->start(); } void ConnectivityChecker::startCheck() { QNetworkAccessManager nam; if (m_checkUrls.isEmpty()) { m_checkUrls = CheckUrls; } for (auto url : m_checkUrls) { QScopedPointer reply(nam.head(QNetworkRequest(QUrl(url)))); qDebug() << "Check connectivity using url:" << url; // Do not use waitForReadyRead to block thread, // the QNetworkReply is not implement this virtual method // and it will just return false immediately // reply->waitForReadyRead(-1); // Blocking, about 30 second to timeout QTimer timer; timer.setSingleShot(true); QEventLoop synchronous; connect(&timer, &QTimer::timeout, &synchronous, &QEventLoop::quit); connect(&nam, &QNetworkAccessManager::finished, &synchronous, &QEventLoop::quit); timer.start(TIMEOUT); synchronous.exec(); reply->close(); //网络状态码中, 大于等于200, 小于等于206的都是网络正常 if (timer.isActive()) { timer.stop(); if (reply->error() == QNetworkReply::NoError && (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() >= 200 && reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() <= 206)) { qDebug() << "Connected to url:" << url; Q_EMIT checkFinished(true); return; } } else { qDebug() << "Timeout"; } } Q_EMIT checkFinished(false); } dde-network-utils-5.4.13/dde-network-utils/connectivitychecker.h000066400000000000000000000025731411407032700247700ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2019 Deepin Technology Co., Ltd. * * Author: listenerri * * Maintainer: listenerri * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CONNECTIVITYCHECKER_H #define CONNECTIVITYCHECKER_H #include #include #include class QGSettings; namespace dde { namespace network { class ConnectivityChecker : public QObject { Q_OBJECT public: explicit ConnectivityChecker(QObject *parent = nullptr); Q_SIGNALS: void checkFinished(bool connectivity) const; public Q_SLOTS: void startCheck(); private: QGSettings *m_settings; QStringList m_checkUrls; QTimer *m_checkConnectivityTimer; }; } // namespace network } // namespace dde #endif // CONNECTIVITYCHECKER_H dde-network-utils-5.4.13/dde-network-utils/dde-network-utils.pro000066400000000000000000000024661411407032700246600ustar00rootroot00000000000000QT -= gui QT += dbus network TARGET = dde-network-utils TEMPLATE = lib CONFIG += link_pkgconfig c++11 create_pc create_prl no_install_prl no_keywords link_pkgconfig PKGCONFIG += dframeworkdbus gsettings-qt DEFINES += DDENETWORKUTILS_LIBRARY QT_DEPRECATED_WARNINGS SOURCES += \ $$PWD/networkmodel.cpp \ $$PWD/networkworker.cpp \ $$PWD/networkdevice.cpp \ $$PWD/wirelessdevice.cpp \ $$PWD/wireddevice.cpp \ $$PWD/connectivitychecker.cpp HEADERS += \ $$PWD/networkmodel.h \ $$PWD/networkworker.h \ $$PWD/networkdevice.h \ $$PWD/wirelessdevice.h \ $$PWD/wireddevice.h \ $$PWD/connectivitychecker.h includes.files += *.h includes.files += \ $$PWD/NetworkModel \ $$PWD/NetworkWorker \ $$PWD/NetworkDevice \ $$PWD/WirelessDevice \ $$PWD/WiredDevice isEmpty(PREFIX) { PREFIX = /usr } target.path = $$PREFIX/lib includes.path = $$PREFIX/include/libddenetworkutils qm_files.path = $${PREFIX}/share/dde-network-utils/translations/ qm_files.files = ../translations/*.qm TRANSLATIONS = translations/dde-control-center.ts QMAKE_PKGCONFIG_NAME = libddenetworkutils QMAKE_PKGCONFIG_DESCRIPTION = libddenetworkutils QMAKE_PKGCONFIG_INCDIR = $$includes.path QMAKE_PKGCONFIG_LIBDIR = $$target.path QMAKE_PKGCONFIG_DESTDIR = pkgconfig INSTALLS += includes target qm_files dde-network-utils-5.4.13/dde-network-utils/networkdevice.cpp000066400000000000000000000133401411407032700241230ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "networkdevice.h" #include "networkmodel.h" #include #include #include #include #define MaxQueueSize 4 using namespace dde::network; NetworkDevice::NetworkDevice(const DeviceType type, const QJsonObject &info, QObject *parent) : QObject(parent), m_type(type), m_status(Unknown), m_deviceInfo(info), m_enabled(true) { updateDeviceInfo(info); } void NetworkDevice::setDeviceStatus(const int status) { DeviceStatus stat = Unknown; switch (status) { case 10: stat = Unmanaged; break; case 20: stat = Unavailable; break; case 30: stat = Disconnected; break; case 40: stat = Prepare; break; case 50: stat = Config; break; case 60: stat = NeedAuth; break; case 70: stat = IpConfig; break; case 80: stat = IpCheck; break; case 90: stat = Secondaries; break; case 100: stat = Activated; break; case 110: stat = Deactivation; break; case 120: stat = Failed; break; } if (m_status != stat) { m_status = stat; enqueueStatus(m_status); Q_EMIT statusChanged(m_status); Q_EMIT statusChanged(statusString()); Q_EMIT statusQueueChanged(m_statusQueue); } } // prepre-status, pre-status, now-status void NetworkDevice::enqueueStatus(NetworkDevice::DeviceStatus status) { if (m_statusQueue.size() == MaxQueueSize) { m_statusQueue.dequeue(); } m_statusQueue.enqueue(status); } const QString NetworkDevice::statusString() const { switch (m_status) { case Unmanaged: case Unavailable: case Disconnected: return tr("Disconnected"); case Prepare: case Config: return tr("Connecting"); case NeedAuth: return tr("Authenticating"); case IpConfig: case IpCheck: return tr("Obtaining Address"); case Activated: return tr("Connected"); case Deactivation: return tr("Disconnected"); case Failed: return tr("Failed"); default:; } return QString(); } const QString NetworkDevice::statusStringDetail() const { if (!m_enabled) { return tr("Device disabled"); } if (m_status == DeviceStatus::Activated && NetworkModel::connectivity() != Connectivity::Full) { return tr("Connected but no Internet access"); } if (obtainIpFailed()) { //确认 没有获取IP显示未连接状态(DHCP服务关闭) return tr("Not connected"); } switch (m_status) { case Unknown: case Unmanaged: case Unavailable: { switch (m_type) { case DeviceType::None: return QString(); case DeviceType::Wired: return tr("Network cable unplugged"); default:; } } case Disconnected: return tr("Not connected"); case Prepare: case Config: return tr("Connecting"); case NeedAuth: return tr("Authenticating"); case IpConfig: case IpCheck: case Secondaries: return tr("Obtaining IP address"); case Activated: return tr("Connected"); case Deactivation: return tr("Disconnected"); case Failed: return tr("Failed"); default:; } return QString(); } NetworkDevice::~NetworkDevice() { Q_EMIT removed(); } bool NetworkDevice::obtainIpFailed() const { if (m_statusQueue.isEmpty()) { return false; } // 判断为获取IP地址失败需要以下条件 return (m_statusQueue.size() == MaxQueueSize && m_statusQueue.at(MaxQueueSize - 1) == DeviceStatus::Disconnected // 最后(当前)一个状态为未连接 && m_statusQueue.at(MaxQueueSize - 2) == DeviceStatus::Failed // 上一个状态为失败 && m_statusQueue.contains(DeviceStatus::Config) // 包含Config和IpConfig && m_statusQueue.contains(DeviceStatus::IpConfig)); } void NetworkDevice::setEnabled(const bool enabled) { if (m_enabled != enabled) { m_enabled = enabled; m_statusQueue.clear(); Q_EMIT enableChanged(m_enabled); } } const QString NetworkDevice::path() const { return m_deviceInfo.value("Path").toString(); } const QString NetworkDevice::realHwAdr() const { return m_deviceInfo.value("HwAddress").toString(); } const QString NetworkDevice::usingHwAdr() const { const auto &hwAdr = m_deviceInfo.value("HwAddress").toString(); const auto &clonedAdr = m_deviceInfo.value("ClonedAddress").toString(); return clonedAdr.isEmpty() ? hwAdr : clonedAdr; } const QString NetworkDevice::interfaceName() const { return m_deviceInfo.value("Interface").toString(); } void NetworkDevice::updateDeviceInfo(const QJsonObject &devInfo) { m_deviceInfo = devInfo; setDeviceStatus(m_deviceInfo.value("State").toInt()); } dde-network-utils-5.4.13/dde-network-utils/networkdevice.h000066400000000000000000000061761411407032700236010ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef NETWORKDEVICE_H #define NETWORKDEVICE_H #include #include #include #include namespace dde { namespace network { class NetworkDevice : public QObject { Q_OBJECT friend class NetworkModel; public: enum DeviceType { None, Wired, Wireless, }; enum DeviceStatus { Unknown = 0, Unmanaged = 10, Unavailable = 20, Disconnected = 30, Prepare = 40, Config = 50, NeedAuth = 60, IpConfig = 70, IpCheck = 80, Secondaries = 90, Activated = 100, Deactivation = 110, Failed = 120, }; public: virtual ~NetworkDevice(); bool enabled() const { return m_enabled; } bool obtainIpFailed() const; DeviceType type() const { return m_type; } DeviceStatus status() const { return m_status; } QQueue statusQueue() const { return m_statusQueue; } const QString statusString() const; const QString statusStringDetail() const; const QJsonObject info() const { return m_deviceInfo; } const QString path() const; const QString realHwAdr() const; const QString usingHwAdr() const; const QString interfaceName() const; Q_SIGNALS: void removed() const; void statusChanged(DeviceStatus stat) const; void statusChanged(const QString &statStr) const; void statusQueueChanged(const QQueue &statusQueue) const; void enableChanged(const bool enabled) const; void sessionCreated(const QString &sessionPath) const; private Q_SLOTS: void setEnabled(const bool enabled); void updateDeviceInfo(const QJsonObject &devInfo); protected: explicit NetworkDevice(const DeviceType type, const QJsonObject &info, QObject *parent = nullptr); private Q_SLOTS: void setDeviceStatus(const int status); void enqueueStatus(DeviceStatus status); private: const DeviceType m_type; DeviceStatus m_status; QQueue m_statusQueue; QJsonObject m_deviceInfo; bool m_enabled; }; } // namespace network } // namespace dde #endif // NETWORKDEVICE_H dde-network-utils-5.4.13/dde-network-utils/networkmodel.cpp000066400000000000000000000502051411407032700237650ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "networkmodel.h" #include "networkdevice.h" #include "wirelessdevice.h" #include "wireddevice.h" #include #include #include #include using namespace dde::network; #define CONNECTED 2 Connectivity NetworkModel::m_Connectivity(Connectivity::Full); QStringList NetworkModel::m_deviceInterface; NetworkDevice::DeviceType parseDeviceType(const QString &type) { if (type == "wireless") { return NetworkDevice::Wireless; } if (type == "wired") { return NetworkDevice::Wired; } return NetworkDevice::None; } NetworkModel::NetworkModel(QObject *parent) : QObject(parent) , m_lastSecretDevice(nullptr) , m_connectivityChecker(new ConnectivityChecker) , m_connectivityCheckThread(new QThread(this)) { connect(this, &NetworkModel::needCheckConnectivitySecondary, m_connectivityChecker, &ConnectivityChecker::startCheck); connect(m_connectivityChecker, &ConnectivityChecker::checkFinished, this, &NetworkModel::onConnectivitySecondaryCheckFinished); m_connectivityChecker->moveToThread(m_connectivityCheckThread); } NetworkModel::~NetworkModel() { qDeleteAll(m_devices); qDebug() << "quit thread"; m_connectivityCheckThread->quit(); m_connectivityCheckThread->wait(); } const QString NetworkModel::connectionUuidByPath(const QString &connPath) const { return connectionByPath(connPath).value("Uuid").toString(); } const QString NetworkModel::connectionNameByPath(const QString &connPath) const { return connectionByPath(connPath).value("Id").toString(); } const QJsonObject NetworkModel::connectionByPath(const QString &connPath) const { for (const auto &list : m_connections) { for (const auto &cfg : list) { if (cfg.value("Path").toString() == connPath) return cfg; } } return QJsonObject(); } const QJsonObject NetworkModel::activeConnObjectByUuid(const QString &uuid) const { for (const auto &info : m_activeConns) { if (info.value("Uuid").toString() == uuid) return info; } return QJsonObject(); } const QString NetworkModel::connectionUuidByApInfo(const QJsonObject &apInfo) const { for (const auto &list : m_connections) { for (const auto &cfg : list) { if (cfg.value("Ssid").toString() == apInfo.value("Ssid").toString()) return cfg.value("Uuid").toString(); } } return QString(); } const QString NetworkModel::activeConnUuidByInfo(const QString &devPath, const QString &id) const { for (const auto &info : m_activeConns) { if (info.value("Id").toString() != id) continue; if (info.value("Devices").toArray().contains(devPath)) return info.value("Uuid").toString(); } return QString(); } const QJsonObject NetworkModel::connectionByUuid(const QString &uuid) const { for (const auto &list : m_connections) { for (const auto &cfg : list) { if (cfg.value("Uuid").toString() == uuid) return cfg; } } return QJsonObject(); } void NetworkModel::onActivateAccessPointDone(const QString &devPath, const QString &apPath, const QString &uuid, const QDBusObjectPath path) { for (auto const dev : m_devices) { if (dev->type() != NetworkDevice::Wireless || dev->path() != devPath) continue; if (path.path().isEmpty()) { Q_EMIT static_cast(dev)->activateAccessPointFailed(apPath, uuid); return; } } } void NetworkModel::onVPNEnabledChanged(const bool enabled) { if (m_vpnEnabled != enabled) { m_vpnEnabled = enabled; Q_EMIT vpnEnabledChanged(m_vpnEnabled); } } void NetworkModel::onProxiesChanged(const QString &type, const QString &url, const uint port) { const ProxyConfig config = { port, type, url, "", "" }; const ProxyConfig old = m_proxies[type]; if (old.url != config.url || old.port != config.port) { m_proxies[type] = config; Q_EMIT proxyChanged(type, config); } } void NetworkModel::onAutoProxyChanged(const QString &proxy) { if (m_autoProxy != proxy) { m_autoProxy = proxy; Q_EMIT autoProxyChanged(m_autoProxy); } } void NetworkModel::onProxyMethodChanged(const QString &proxyMethod) { if (m_proxyMethod != proxyMethod) { m_proxyMethod = proxyMethod; Q_EMIT proxyMethodChanged(m_proxyMethod); } } void NetworkModel::onProxyIgnoreHostsChanged(const QString &hosts) { if (hosts != m_proxyIgnoreHosts) { m_proxyIgnoreHosts = hosts; Q_EMIT proxyIgnoreHostsChanged(m_proxyIgnoreHosts); } } void NetworkModel::onDevicesChanged(const QString &devices) { const QJsonObject data = QJsonDocument::fromJson(devices.toUtf8()).object(); QSet devSet; bool changed = false; m_deviceInterface.clear(); for (auto it(data.constBegin()); it != data.constEnd(); ++it) { const auto type = parseDeviceType(it.key()); const auto list = it.value().toArray(); if (type == NetworkDevice::None) continue; for (auto const &l : list) { const auto info = l.toObject(); const QString path = info.value("Path").toString(); bool managed = info.value("Managed").toBool(); QString interface = info.value("Interface").toString(); if (!m_deviceInterface.contains(interface)) m_deviceInterface << interface; if (!managed) { qDebug() << "device: " << path << "ignored due to unmanged"; continue; } // 根据标志位InterfaceFlags判断网络连接是否有效 if (type != NetworkDevice::Wireless) { if (!info.value("InterfaceFlags").isUndefined()) { int flag = info.value("InterfaceFlags").toInt(); if (!(flag & NM_DEVICE_INTERFACE_FLAG_UP)) { continue; } } } if (!devSet.contains(path)) { devSet << path; } NetworkDevice *d = device(path); if (d == nullptr) { changed = true; switch (type) { case NetworkDevice::Wireless: d = new WirelessDevice(info, this); break; case NetworkDevice::Wired: d = new WiredDevice(info, this); break; default:; } m_devices.append(d); if (d != nullptr) { // init device enabled status Q_EMIT requestDeviceStatus(d->path()); } } else { d->updateDeviceInfo(info); } } } // remove unexist device QList removeList; for (auto const d : m_devices) { if (!devSet.contains(d->path())) removeList << d; } for (auto const r : removeList) { m_devices.removeOne(r); r->deleteLater(); } if (!removeList.isEmpty()) { changed = true; } // qDeleteAll(removeList); if (changed) { Q_EMIT deviceListChanged(m_devices); } } void NetworkModel::onConnectionListChanged(const QString &conns) { // m_connections 保存了所有从 NetworkManager 获取到的 connection // m_connections 是一个以连接的类型为键(wired,wireless,vpn,pppoe,etc.), 以此类型的所有连接组成的 list 为值的 map // commonConnections 的结构与 m_connection 一样, 但 commenConnection 只保存 "HwAddress" 属性为空的连接, // 一个连接可以通过 "HwAddress" 属性 一对一的与设备关联起来, 因此: // "HwAddress" 属性为空表示此连接所有设备都可以使用, 不为空则表示此连接只属于 "HwAddress" 指定的设备, 其他设备不应该拥有此连接 // deviceConnections 是一个以连接的 "HwAddress" 属性为键, 以一个 map 为值的 map // 其子 map 的结构也与 m_connection 相同 // 这表示 deviceConnections 中的一个键值对代表了一个设备, 及其独有的各种类型的连接 QMap> commonConnections; QMap>> deviceConnections; QMap> wiredCommonConnections; QMap>> wiredDeviceConnections; // 解析所有的 connection const QJsonObject connsObject = QJsonDocument::fromJson(conns.toUtf8()).object(); for (auto it(connsObject.constBegin()); it != connsObject.constEnd(); ++it) { const auto &connList = it.value().toArray(); const auto &connType = it.key(); if (connType.isEmpty()) continue; m_connections[connType].clear(); for (const auto &connObject : connList) { const QJsonObject &connection = connObject.toObject(); m_connections[connType].append(connection); const auto &hwAddr = connection.value("HwAddress").toString(); if (hwAddr.isEmpty()) { commonConnections[connType].append(connection); } else { deviceConnections[hwAddr][connType].append(connection); } const auto &interface = connection.value("IfcName").toString(); if (interface.isEmpty()) { wiredCommonConnections[connType].append(connection); } else { wiredDeviceConnections[interface][connType].append(connection); } } } // 将 connections 分配给具体的设备 for (NetworkDevice *dev : m_devices) { const QString &hwAddr = dev->realHwAdr(); const QMap> &connsByType = deviceConnections.value(hwAddr); const QString &inter = dev->interfaceName(); const QMap> &connsByInter = wiredDeviceConnections.value(inter); QList destConns; switch (dev->type()) { case NetworkDevice::Wired: { destConns += wiredCommonConnections.value("wired"); destConns += connsByInter.value("wired"); WiredDevice *wdDevice = static_cast(dev); wdDevice->setConnections(destConns); break; } case NetworkDevice::Wireless: { destConns += commonConnections.value("wireless"); destConns += connsByType.value("wireless"); WirelessDevice *wsDevice = static_cast(dev); wsDevice->setConnections(destConns); destConns.clear(); destConns += commonConnections.value("wireless-hotspot"); destConns += connsByType.value("wireless-hotspot"); wsDevice->setHotspotConnections(destConns); break; } default: break; } } Q_EMIT connectionListChanged(); } void NetworkModel::onActiveConnInfoChanged(const QString &conns) { m_activeConnInfos.clear(); QMap activeConnInfo; QMap activeHotspotInfo; // parse active connections info and save it by DevicePath QJsonArray activeConns = QJsonDocument::fromJson(conns.toUtf8()).array(); for (const auto &info : activeConns) { const auto &connInfo = info.toObject(); const auto &type = connInfo.value("ConnectionType").toString(); const auto &devPath = connInfo.value("Device").toString(); activeConnInfo.insertMulti(devPath, connInfo); m_activeConnInfos << connInfo; if (type == "wireless-hotspot") { activeHotspotInfo.insert(devPath, connInfo); } } // update device active connection for (auto *dev : m_devices) { const auto &devPath = dev->path(); switch (dev->type()) { case NetworkDevice::Wired: { WiredDevice *d = static_cast(dev); d->setActiveConnectionsInfo(activeConnInfo.values(devPath)); break; } case NetworkDevice::Wireless: { WirelessDevice *d = static_cast(dev); d->setActiveConnectionsInfo(activeConnInfo.values(devPath)); d->setActiveHotspotInfo(activeHotspotInfo.value(devPath)); break; } default:; } } Q_EMIT activeConnInfoChanged(m_activeConnInfos); } void NetworkModel::onActiveConnectionsChanged(const QString &conns) { m_activeConns.clear(); // 按照设备分类所有 active 连接 QMap> deviceActiveConnsMap; const QJsonObject activeConns = QJsonDocument::fromJson(conns.toUtf8()).object(); for (auto it(activeConns.constBegin()); it != activeConns.constEnd(); ++it) { const QJsonObject &info = it.value().toObject(); if (info.isEmpty()) continue; m_activeConns << info; int connectionState = info.value("State").toInt(); for (const auto &item : info.value("Devices").toArray()) { const QString &devicePath = item.toString(); if (devicePath.isEmpty()) { continue; } deviceActiveConnsMap[devicePath] << info; NetworkDevice *dev = device(devicePath); if (dev != nullptr) { if (dev->status() != NetworkDevice::DeviceStatus::Activated && connectionState == CONNECTED) { qDebug() << devicePath << "The active connection status does not match the device connection status. It has been changed"; dev->setDeviceStatus(NetworkDevice::DeviceStatus::Activated); } } } } // 将 active 连接分配给具体的设备 for (auto it(deviceActiveConnsMap.constBegin()); it != deviceActiveConnsMap.constEnd(); ++it) { NetworkDevice *dev = device(it.key()); if (dev == nullptr) { continue; } switch (dev->type()) { case NetworkDevice::Wired: { WiredDevice *wdDevice = static_cast(dev); wdDevice->setActiveConnections(it.value()); break; } case NetworkDevice::Wireless: { WirelessDevice *wsDevice = static_cast(dev); wsDevice->setActiveConnections(it.value()); break; } default: break; } } Q_EMIT activeConnectionsChanged(m_activeConns); } void NetworkModel::onConnectionSessionCreated(const QString &device, const QString &sessionPath) { for (const auto dev : m_devices) { if (dev->path() != device) continue; Q_EMIT dev->sessionCreated(sessionPath); return; } Q_EMIT unhandledConnectionSessionCreated(device, sessionPath); } void NetworkModel::onDeviceEnableChanged(const QString &device, const bool enabled) { NetworkDevice *dev = nullptr; for (auto const d : m_devices) { if (d->path() == device) { dev = d; break; } } if (!dev) return; dev->setEnabled(enabled); Q_EMIT deviceEnableChanged(device, enabled); } void NetworkModel::onChainsTypeChanged(const QString &type) { if (type != m_chainsProxy.type) { m_chainsProxy.type = type; Q_EMIT chainsTypeChanged(type); } } void NetworkModel::onChainsAddrChanged(const QString &addr) { if (addr != m_chainsProxy.url) { m_chainsProxy.url = addr; Q_EMIT chainsAddrChanged(addr); } } void NetworkModel::onChainsPortChanged(const uint port) { if (port != m_chainsProxy.port) { m_chainsProxy.port = port; Q_EMIT chainsPortChanged(port); } } void NetworkModel::onChainsUserChanged(const QString &user) { if (user != m_chainsProxy.username) { m_chainsProxy.username = user; Q_EMIT chainsUsernameChanged(user); } } void NetworkModel::onChainsPasswdChanged(const QString &passwd) { if (passwd != m_chainsProxy.password) { m_chainsProxy.password = passwd; Q_EMIT chainsPasswdChanged(passwd); } } void NetworkModel::onNeedSecrets(const QString &info) { /* * TODO: there is a bug in daemon about var 'info', the value of key "DevicePath" is wrong. * here should be EMIT the needSecrets signal of specific device after the bug above fixed */ //const QJsonObject &infoObject = QJsonDocument::fromJson(info.toUtf8()).object(); //m_lastSecretDevice = device(infoObject.value("DevicePath").toString()); /* TODO: check this signal(NeedSecrets) of daemon is only for wireless device */ //if (m_lastSecretDevice != nullptr && m_lastSecretDevice->type() == NetworkDevice::Wireless) { //Q_EMIT static_cast(m_lastSecretDevice)->needSecrets(info); //} else { //m_lastSecretDevice = nullptr; //} Q_EMIT needSecrets(info); } void NetworkModel::onNeedSecretsFinished(const QString &info0, const QString &info1) { /* TODO: same as above */ //if (m_lastSecretDevice != nullptr) { //Q_EMIT static_cast(m_lastSecretDevice)->needSecretsFinished(info0, info1); //} Q_EMIT needSecretsFinished(info0, info1); } void NetworkModel::onConnectivityChanged(int connectivity) { Connectivity conn = static_cast(connectivity); if (m_Connectivity == conn) { return; } m_Connectivity = conn; // if the new connectivity state from NetworkManager is not Full, // check it again use our urls // if (m_Connectivity != Full) { // if (!m_connectivityCheckThread->isRunning()) { // m_connectivityCheckThread->start(); // } // Q_EMIT needCheckConnectivitySecondary(); // } Q_EMIT connectivityChanged(m_Connectivity); } void NetworkModel::onConnectivitySecondaryCheckFinished(bool connectivity) { m_Connectivity = connectivity ? Full : NoConnectivity; Q_EMIT connectivityChanged(m_Connectivity); } bool NetworkModel::containsDevice(const QString &devPath) const { return device(devPath) != nullptr; } NetworkDevice *NetworkModel::device(const QString &devPath) const { for (auto const d : m_devices) if (d->path() == devPath) return d; return nullptr; } void NetworkModel::onAppProxyExistChanged(bool appProxyExist) { if (m_appProxyExist == appProxyExist) { return; } m_appProxyExist = appProxyExist; Q_EMIT appProxyExistChanged(appProxyExist); } void NetworkModel::onWirelessAccessPointsChanged(const QString &WirelessList) { //当数据非json的时候,则这个里面的项为0,则下面的for不会被执行 QJsonObject WirelessData = QJsonDocument::fromJson(WirelessList.toUtf8()).object(); for (QString Device : WirelessData.keys()) { for (auto const dev : m_devices) { //当类型不为无线网,path不为当前需要的device则进入下一个循环 if (dev->type() != NetworkDevice::Wireless || dev->path() != Device) continue; dynamic_cast(dev)->setAPList(WirelessData.value(Device)); } } return; } dde-network-utils-5.4.13/dde-network-utils/networkmodel.h000066400000000000000000000173351411407032700234410ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef NETWORKMODEL_H #define NETWORKMODEL_H #include "networkdevice.h" #include "connectivitychecker.h" #include #include #include #include namespace dde { namespace network { struct ProxyConfig { uint port; QString type; QString url; QString username; QString password; }; enum Connectivity { UnknownConnectivity = 0, NoConnectivity = 1, Portal = 2, Limited = 3, Full = 4 }; enum InterfaceFlags { NM_DEVICE_INTERFACE_FLAG_NONE = 0, //an alias for numeric zero, no flags set. NM_DEVICE_INTERFACE_FLAG_UP = 0x1, //the interface is enabled from the administrative point of view. Corresponds to kernel IFF_UP. NM_DEVICE_INTERFACE_FLAG_LOWER_UP = 0x2, //the physical link is up. Corresponds to kernel IFF_LOWER_UP. NM_DEVICE_INTERFACE_FLAG_CARRIER = 0x10000, //the interface has carrier. In most cases this is equal to the value of @NM_DEVICE_INTERFACE_FLAG_LOWER_UP }; class NetworkDevice; class NetworkWorker; class WirelessDevice; class NetworkModel : public QObject { Q_OBJECT friend class NetworkWorker; public: explicit NetworkModel(QObject *parent = nullptr); ~NetworkModel(); ProxyConfig getChainsProxy() { return m_chainsProxy;} bool vpnEnabled() const { return m_vpnEnabled; } bool appProxyExist() const { return m_appProxyExist; } static Connectivity connectivity() { return m_Connectivity; } const ProxyConfig proxy(const QString &type) const { return m_proxies[type]; } const QString autoProxy() const { return m_autoProxy; } const QString proxyMethod() const { return m_proxyMethod; } const QString ignoreHosts() const { return m_proxyIgnoreHosts; } const QList devices() const { return m_devices; } const QList vpns() const { return m_connections.value("vpn"); } const QList wireds() const { return m_connections.value("wired"); } const QList wireless() const { return m_connections.value("wireless"); } const QList pppoes() const { return m_connections.value("pppoe"); } const QList hotspots() const { return m_connections.value("wireless-hotspot"); } const QList activeConnInfos() const { return m_activeConnInfos; } const QList activeConns() const { return m_activeConns; } const QString connectionUuidByPath(const QString &connPath) const; const QString connectionNameByPath(const QString &connPath) const; const QString connectionUuidByApInfo(const QJsonObject &apInfo) const; const QString activeConnUuidByInfo(const QString &devPath, const QString &id) const; const QJsonObject connectionByUuid(const QString &uuid) const; const QJsonObject connectionByPath(const QString &connPath) const; const QJsonObject activeConnObjectByUuid(const QString &uuid) const; const QStringList deviceInterface() const { return m_deviceInterface; } Q_SIGNALS: void connectionListChanged() const; void deviceEnableChanged(const QString &device, const bool enabled) const; void autoProxyChanged(const QString &proxy) const; void proxyChanged(const QString &type, const ProxyConfig &config) const; void proxyMethodChanged(const QString &proxyMethod) const; void proxyIgnoreHostsChanged(const QString &hosts) const; void requestDeviceStatus(const QString &devPath) const; void activeConnectionsChanged(const QList &conns) const; void activeConnInfoChanged(const QList &infos) const; void vpnEnabledChanged(const bool enabled) const; void deviceListChanged(const QList devices) const; void unhandledConnectionSessionCreated(const QString &device, const QString &sessionPath) const; void chainsTypeChanged(const QString &type) const; void chainsAddrChanged(const QString &addr) const; void chainsPortChanged(const uint port) const; void chainsUsernameChanged(const QString &username) const; void chainsPasswdChanged(const QString &passwd) const; void appProxyExistChanged(const bool appProxyExist) const; void needSecrets(const QString &info); void needSecretsFinished(const QString &info0, const QString &info1); void connectivityChanged(const Connectivity connectivity) const; // Private Signals // Need ensure the checker thread is running // before emit this signal void needCheckConnectivitySecondary() const; private Q_SLOTS: void onActivateAccessPointDone(const QString &devPath, const QString &apPath, const QString &uuid, const QDBusObjectPath path); void onVPNEnabledChanged(const bool enabled); void onAppProxyExistChanged(bool appProxyExist); void onProxiesChanged(const QString &type, const QString &url, const uint port); void onAutoProxyChanged(const QString &proxy); void onProxyMethodChanged(const QString &proxyMethod); void onProxyIgnoreHostsChanged(const QString &hosts); void onDevicesChanged(const QString &devices); void onConnectionListChanged(const QString &conns); void onActiveConnInfoChanged(const QString &conns); void onActiveConnectionsChanged(const QString &conns); void onConnectionSessionCreated(const QString &device, const QString &sessionPath); void onDeviceEnableChanged(const QString &device, const bool enabled); void onChainsTypeChanged(const QString &type); void onChainsAddrChanged(const QString &addr); void onChainsPortChanged(const uint port); void onChainsUserChanged(const QString &user); void onChainsPasswdChanged(const QString &passwd); void onNeedSecrets(const QString &info); void onNeedSecretsFinished(const QString &info0, const QString &info1); void onConnectivityChanged(int connectivity); void onConnectivitySecondaryCheckFinished(bool connectivity); /** * @def onWirelessAccessPointsChanged * @brief 后端数据入口处,属性的修改会调用该函数 * @param WirelessList */ void onWirelessAccessPointsChanged(const QString &WirelessList); private: bool containsDevice(const QString &devPath) const; NetworkDevice *device(const QString &devPath) const; void updateWiredConnInfo(); private: NetworkDevice *m_lastSecretDevice; ConnectivityChecker *m_connectivityChecker; QThread *m_connectivityCheckThread; bool m_vpnEnabled; bool m_appProxyExist; QString m_proxyMethod; QString m_proxyIgnoreHosts; QString m_autoProxy; ProxyConfig m_chainsProxy; QList m_devices; QList m_activeConnInfos; QList m_activeConns; QMap m_proxies; QMap> m_connections; static QStringList m_deviceInterface; static Connectivity m_Connectivity; }; } // namespace network } // namespace dde #endif // NETWORKMODEL_H dde-network-utils-5.4.13/dde-network-utils/networkworker.cpp000066400000000000000000000365231411407032700242050ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "networkworker.h" #include using namespace dde::network; const QString networkService = "com.deepin.daemon.Network"; const QString networkPath = "/com/deepin/daemon/Network"; NetworkWorker::NetworkWorker(NetworkModel *model, QObject *parent, bool sync) : QObject(parent), m_networkInter(networkService, networkPath, QDBusConnection::sessionBus(), this), m_chainsInter(new ProxyChains(networkService, "/com/deepin/daemon/Network/ProxyChains", QDBusConnection::sessionBus(), this)), m_networkModel(model) { // 网络服务加载很慢时,需监听 服务启动后,刷新网络设备信息 auto req = QDBusConnection::sessionBus().interface()->isServiceRegistered(networkService); if (!req.value()) { qInfo() << networkService << "is not registered, waiting for registration"; QDBusServiceWatcher *serviceWatcher = new QDBusServiceWatcher(this); serviceWatcher->setConnection(QDBusConnection::sessionBus()); serviceWatcher->addWatchedService(networkService); connect(serviceWatcher, &QDBusServiceWatcher::serviceRegistered, [this] { NetworkInter netInter(networkService, networkPath, QDBusConnection::sessionBus(), this); QString devices = netInter.devices(); qInfo() << networkService << "is registered"; if (!devices.isEmpty()){ m_networkModel->onDevicesChanged(netInter.devices()); } else { qInfo() << "network devices is empty"; } }); } //对网络适配器的监听,当适配器消失及时响应 connect(&m_networkInter, &NetworkInter::ActiveConnectionsChanged, this, &NetworkWorker::queryActiveConnInfo, Qt::QueuedConnection); connect(&m_networkInter, &NetworkInter::ActiveConnectionsChanged, m_networkModel, &NetworkModel::onActiveConnectionsChanged); connect(&m_networkInter, &NetworkInter::DevicesChanged, m_networkModel, &NetworkModel::onDevicesChanged); connect(&m_networkInter, &NetworkInter::ConnectionsChanged, m_networkModel, &NetworkModel::onConnectionListChanged); connect(&m_networkInter, &NetworkInter::DeviceEnabled, m_networkModel, &NetworkModel::onDeviceEnableChanged); connect(&m_networkInter, &NetworkInter::ConnectivityChanged, m_networkModel, &NetworkModel::onConnectivityChanged); connect(&m_networkInter, &NetworkInter::WirelessAccessPointsChanged, m_networkModel, &NetworkModel::onWirelessAccessPointsChanged); connect(&m_networkInter, &NetworkInter::VpnEnabledChanged, m_networkModel, &NetworkModel::onVPNEnabledChanged); connect(&m_networkInter, &NetworkInter::NeedSecrets, m_networkModel, &NetworkModel::onNeedSecrets); connect(&m_networkInter, &NetworkInter::NeedSecretsFinished, m_networkModel, &NetworkModel::onNeedSecretsFinished); connect(m_networkModel, &NetworkModel::requestDeviceStatus, this, &NetworkWorker::queryDeviceStatus, Qt::QueuedConnection); connect(m_networkModel, &NetworkModel::deviceListChanged, this, [=]() { m_networkModel->onConnectionListChanged(m_networkInter.connections()); queryActiveConnInfo(); }, Qt::QueuedConnection); connect(m_chainsInter, &ProxyChains::IPChanged, model, &NetworkModel::onChainsAddrChanged); connect(m_chainsInter, &ProxyChains::PasswordChanged, model, &NetworkModel::onChainsPasswdChanged); connect(m_chainsInter, &ProxyChains::TypeChanged, model, &NetworkModel::onChainsTypeChanged); connect(m_chainsInter, &ProxyChains::UserChanged, model, &NetworkModel::onChainsUserChanged); connect(m_chainsInter, &ProxyChains::PortChanged, model, &NetworkModel::onChainsPortChanged); m_networkInter.setSync(false); m_chainsInter->setSync(false); active(sync); m_networkModel->onWirelessAccessPointsChanged(m_networkInter.wirelessAccessPoints()); } void NetworkWorker::active(bool bSync) { m_networkInter.blockSignals(false); //如果需要立即显示网络模块,则需要在active中使用同步方式获取网络设备数据 if (bSync) { QDBusInterface inter(networkService, networkPath, networkService, QDBusConnection::sessionBus()); QVariant req = inter.property("Devices"); m_networkModel->onDevicesChanged(req.toString()); qDebug() << Q_FUNC_INFO << "network active ,get devices size :" << m_networkModel->devices().size(); } else { m_networkModel->onDevicesChanged(m_networkInter.devices()); } m_networkModel->onConnectionListChanged(m_networkInter.connections()); m_networkModel->onVPNEnabledChanged(m_networkInter.vpnEnabled()); m_networkModel->onActiveConnectionsChanged(m_networkInter.activeConnections()); m_networkModel->onConnectivityChanged(static_cast(m_networkInter.connectivity())); queryActiveConnInfo(); const bool isAppProxyVaild = QProcess::execute("which", QStringList() << "/usr/bin/proxychains4") == 0; m_networkModel->onAppProxyExistChanged(isAppProxyVaild); } void NetworkWorker::deactive() { m_networkInter.blockSignals(true); } void NetworkWorker::setVpnEnable(const bool enable) { m_networkInter.setVpnEnabled(enable); } void NetworkWorker::setDeviceEnable(const QString &devPath, const bool enable) { m_networkInter.EnableDevice(QDBusObjectPath(devPath), enable); } void NetworkWorker::setProxyMethod(const QString &proxyMethod) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.SetProxyMethod(proxyMethod), this); // requery result connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryProxyMethod); connect(w, &QDBusPendingCallWatcher::finished, w, &QDBusPendingCallWatcher::deleteLater); } void NetworkWorker::setProxyIgnoreHosts(const QString &hosts) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.SetProxyIgnoreHosts(hosts), this); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryProxyIgnoreHosts); connect(w, &QDBusPendingCallWatcher::finished, w, &QDBusPendingCallWatcher::deleteLater); } void NetworkWorker::setAutoProxy(const QString &proxy) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.SetAutoProxy(proxy), this); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryAutoProxy); connect(w, &QDBusPendingCallWatcher::finished, w, &QDBusPendingCallWatcher::deleteLater); } void NetworkWorker::setProxy(const QString &type, const QString &addr, const QString &port) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.SetProxy(type, addr, port), this); connect(w, &QDBusPendingCallWatcher::finished, [=] { queryProxy(type); }); connect(w, &QDBusPendingCallWatcher::finished, w, &QDBusPendingCallWatcher::deleteLater); } void NetworkWorker::setChainsProxy(const ProxyConfig &config) { m_chainsInter->Set(config.type, config.url, config.port, config.username, config.password); } void NetworkWorker::onChainsTypeChanged(const QString &type) { m_networkModel->onChainsTypeChanged(type); } void NetworkWorker::feedSecret(const QString &connectionPath, const QString &settingName, const QString &password, const bool autoConnect) { m_networkInter.FeedSecret(connectionPath, settingName, password, autoConnect); } void NetworkWorker::cancelSecret(const QString &connectionPath, const QString &settingName) { m_networkInter.CancelSecret(connectionPath, settingName); } void NetworkWorker::initWirelessHotspot(const QString &devPath) { m_networkInter.EnableWirelessHotspotMode(QDBusObjectPath(devPath)); } void NetworkWorker::queryProxy(const QString &type) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.asyncCall(QStringLiteral("GetProxy"), type), this); w->setProperty("proxyType", type); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryProxyCB); } void NetworkWorker::requestWirelessScan() { m_networkInter.RequestWirelessScan(); } void NetworkWorker::queryChains() { m_networkModel->onChainsTypeChanged(m_chainsInter->type()); m_networkModel->onChainsAddrChanged(m_chainsInter->iP()); m_networkModel->onChainsPortChanged(m_chainsInter->port()); m_networkModel->onChainsUserChanged(m_chainsInter->user()); m_networkModel->onChainsPasswdChanged(m_chainsInter->password()); } void NetworkWorker::queryAutoProxy() { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.GetAutoProxy(), this); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryAutoProxyCB); } void NetworkWorker::queryProxyData() { queryProxy("http"); queryProxy("https"); queryProxy("ftp"); queryProxy("socks"); queryAutoProxy(); queryProxyMethod(); queryProxyIgnoreHosts(); } void NetworkWorker::queryProxyMethod() { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.GetProxyMethod(), this); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryProxyMethodCB); } void NetworkWorker::queryProxyIgnoreHosts() { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.GetProxyIgnoreHosts(), this); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryProxyIgnoreHostsCB); } void NetworkWorker::queryActiveConnInfo() { //需要及时更新网络连接状态 m_networkModel->onConnectivityChanged(static_cast(m_networkInter.connectivity())); QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.GetActiveConnectionInfo(), this); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryActiveConnInfoCB); } void NetworkWorker::queryAccessPoints(const QString &devPath) { Q_UNUSED(devPath) return; } void NetworkWorker::queryConnectionSession(const QString &devPath, const QString &uuid) { Q_ASSERT_X(!uuid.isEmpty(), Q_FUNC_INFO, "uuid is empty"); QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.EditConnection(uuid, QDBusObjectPath(devPath)), this); w->setProperty("devPath", devPath); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryConnectionSessionCB); } void NetworkWorker::queryDeviceStatus(const QString &devPath) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.IsDeviceEnabled(QDBusObjectPath(devPath)), this); w->setProperty("devPath", devPath); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryDeviceStatusCB); } void NetworkWorker::remanageDevice(const QString &devPath) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.SetDeviceManaged(devPath, false)); connect(w, &QDBusPendingCallWatcher::finished, this, [=] { m_networkInter.SetDeviceManaged(devPath, true); }); connect(w, &QDBusPendingCallWatcher::finished, w, &QDBusPendingCallWatcher::deleteLater); } void NetworkWorker::deleteConnection(const QString &uuid) { m_networkInter.DeleteConnection(uuid); } void NetworkWorker::deactiveConnection(const QString &uuid) { m_networkInter.DeactivateConnection(uuid); } void NetworkWorker::disconnectDevice(const QString &devPath) { m_networkInter.DisconnectDevice(QDBusObjectPath(devPath)); } void NetworkWorker::createApConfig(const QString &devPath, const QString &apPath) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.CreateConnectionForAccessPoint(QDBusObjectPath(apPath), QDBusObjectPath(devPath))); w->setProperty("devPath", devPath); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryConnectionSessionCB); } void NetworkWorker::createConnection(const QString &type, const QString &devPath) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.CreateConnection(type, QDBusObjectPath(devPath))); w->setProperty("devPath", devPath); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::queryConnectionSessionCB); } void NetworkWorker::activateConnection(const QString &devPath, const QString &uuid) { m_networkInter.ActivateConnection(uuid, QDBusObjectPath(devPath)); } void NetworkWorker::activateAccessPoint(const QString &devPath, const QString &apPath, const QString &uuid) { QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(m_networkInter.ActivateAccessPoint(uuid, QDBusObjectPath(apPath), QDBusObjectPath(devPath))); w->setProperty("devPath", devPath); w->setProperty("apPath", apPath); w->setProperty("uuid", uuid); connect(w, &QDBusPendingCallWatcher::finished, this, &NetworkWorker::activateAccessPointCB); } void NetworkWorker::activateAccessPointCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onActivateAccessPointDone(w->property("devPath").toString(), w->property("apPath").toString(), w->property("uuid").toString(), reply.value()); w->deleteLater(); } void NetworkWorker::queryAutoProxyCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onAutoProxyChanged(reply.value()); w->deleteLater(); } void NetworkWorker::queryProxyCB(QDBusPendingCallWatcher *w) { QDBusMessage reply = w->reply(); const QString &type = w->property("proxyType").toString(); const QString &addr = reply.arguments()[0].toString(); const uint port = reply.arguments()[1].toUInt(); m_networkModel->onProxiesChanged(type, addr, port); w->deleteLater(); } void NetworkWorker::queryProxyMethodCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onProxyMethodChanged(reply.value()); w->deleteLater(); } void NetworkWorker::queryProxyIgnoreHostsCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onProxyIgnoreHostsChanged(reply.value()); w->deleteLater(); } void NetworkWorker::queryConnectionSessionCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onConnectionSessionCreated(w->property("devPath").toString(), reply.value().path()); w->deleteLater(); } void NetworkWorker::queryDeviceStatusCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onDeviceEnableChanged(w->property("devPath").toString(), reply.value()); w->deleteLater(); } void NetworkWorker::queryActiveConnInfoCB(QDBusPendingCallWatcher *w) { QDBusPendingReply reply = *w; m_networkModel->onActiveConnInfoChanged(reply.value()); w->deleteLater(); } dde-network-utils-5.4.13/dde-network-utils/networkworker.h000066400000000000000000000074321411407032700236470ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef NETWORKWORKER_H #define NETWORKWORKER_H #include "networkmodel.h" #include #include #include namespace dde { namespace network { using NetworkInter = com::deepin::daemon::Network; using ProxyChains = com::deepin::daemon::network::ProxyChains; class NetworkWorker : public QObject { Q_OBJECT public: explicit NetworkWorker(NetworkModel *model, QObject *parent = nullptr, bool sync = false); void active(bool bSync = false); void deactive(); public Q_SLOTS: void activateConnection(const QString &devPath, const QString &uuid); void activateAccessPoint(const QString &devPath, const QString &apPath, const QString &uuid); void createApConfig(const QString &devPath, const QString &apPath); void createConnection(const QString &type, const QString &devPath); void deleteConnection(const QString &uuid); void deactiveConnection(const QString &uuid); void disconnectDevice(const QString &devPath); void initWirelessHotspot(const QString &devPath); void requestWirelessScan(); void queryChains(); void queryAutoProxy(); void queryProxyData(); void queryProxyMethod(); void queryProxyIgnoreHosts(); void queryActiveConnInfo(); void queryProxy(const QString &type); Q_DECL_DEPRECATED void queryAccessPoints(const QString &devPath); void queryConnectionSession(const QString &devPath, const QString &uuid); void queryDeviceStatus(const QString &devPath); void remanageDevice(const QString &devPath); void setVpnEnable(const bool enable); void setDeviceEnable(const QString &devPath, const bool enable); void setProxyMethod(const QString &proxyMethod); void setProxyIgnoreHosts(const QString &hosts); void setAutoProxy(const QString &proxy); void setProxy(const QString &type, const QString &addr, const QString &port); void setChainsProxy(const ProxyConfig &config); void onChainsTypeChanged(const QString &type); void feedSecret(const QString &connectionPath, const QString &settingName, const QString &password, const bool autoConnect); void cancelSecret(const QString &connectionPath, const QString &settingName); private Q_SLOTS: void activateAccessPointCB(QDBusPendingCallWatcher *w); void queryAutoProxyCB(QDBusPendingCallWatcher *w); void queryProxyCB(QDBusPendingCallWatcher *w); void queryProxyMethodCB(QDBusPendingCallWatcher *w); void queryProxyIgnoreHostsCB(QDBusPendingCallWatcher *w); void queryConnectionSessionCB(QDBusPendingCallWatcher *w); void queryDeviceStatusCB(QDBusPendingCallWatcher *w); void queryActiveConnInfoCB(QDBusPendingCallWatcher *w); private: NetworkInter m_networkInter; ProxyChains *m_chainsInter; NetworkModel *m_networkModel; }; } // namespace network } // namespace dde #endif // NETWORKWORKER_H dde-network-utils-5.4.13/dde-network-utils/src.pri000066400000000000000000000006651411407032700220570ustar00rootroot00000000000000SOURCES += $$PWD/connectivitychecker.cpp \ $$PWD/networkdevice.cpp \ $$PWD/networkmodel.cpp \ $$PWD/networkworker.cpp \ $$PWD/wireddevice.cpp \ $$PWD/wirelessdevice.cpp HEADERS += $$PWD/connectivitychecker.h \ $$PWD/networkdevice.h \ $$PWD/networkmodel.h \ $$PWD/networkworker.h \ $$PWD/wireddevice.h \ $$PWD/wirelessdevice.h dde-network-utils-5.4.13/dde-network-utils/wireddevice.cpp000066400000000000000000000066331411407032700235530ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "wireddevice.h" #include using namespace dde::network; WiredDevice::WiredDevice(const QJsonObject &info, QObject *parent) : NetworkDevice(NetworkDevice::Wired, info, parent) { } const QList WiredDevice::connections() const { return m_connections; } void WiredDevice::setConnections(const QList &connections) { m_connections = connections; Q_EMIT connectionsChanged(m_connections); } const QList WiredDevice::activeConnections() const { return m_activeConnections; } const QList WiredDevice::activeConnectionsInfo() const { return m_activeConnectionsInfo; } void WiredDevice::setActiveConnections(const QList &activeConns) { m_activeConnections = activeConns; Q_EMIT activeConnectionsChanged(m_activeConnections); } void WiredDevice::setActiveConnectionsInfo(const QList &activeConnInfoList) { m_activeConnectionsInfo = activeConnInfoList; Q_EMIT activeWiredConnectionInfoChanged(activeWiredConnectionInfo()); Q_EMIT activeConnectionsInfoChanged(m_activeConnectionsInfo); } const QList WiredDevice::activeVpnConnectionsInfo() const { QList activeVpns; for (const QJsonObject &activeConn : m_activeConnectionsInfo) { if (activeConn.value("ConnectionType").toString().startsWith("vpn-")) { activeVpns.append(activeConn); } } return activeVpns; } const QJsonObject WiredDevice::activeWiredConnectionInfo() const { QJsonObject activeWired; for (const QJsonObject &activeConn : m_activeConnectionsInfo) { // 当开启DSL连接时,类型为 pppoe if (activeConn.value("ConnectionType").toString() == "wired" || activeConn.value("ConnectionType").toString() == "pppoe") { activeWired = activeConn; break; } } return activeWired; } const QString WiredDevice::activeWiredConnName() const { const QJsonObject &conn = activeWiredConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("ConnectionName").toString(); } const QString WiredDevice::activeWiredConnUuid() const { const QJsonObject &conn = activeWiredConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("ConnectionUuid").toString(); } const QString WiredDevice::activeWiredConnSettingPath() const { const QJsonObject &conn = activeWiredConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("SettingPath").toString(); } dde-network-utils-5.4.13/dde-network-utils/wireddevice.h000066400000000000000000000045571411407032700232230ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef WIREDDEVICE_H #define WIREDDEVICE_H #include "networkdevice.h" #include #include namespace dde { namespace network { class WiredDevice : public NetworkDevice { Q_OBJECT public: explicit WiredDevice(const QJsonObject &info, QObject *parent = nullptr); const QList connections() const; void setConnections(const QList &connections); const QList activeConnections() const; const QList activeConnectionsInfo() const; void setActiveConnections(const QList &activeConns); void setActiveConnectionsInfo(const QList &activeConnInfoList); const QList activeVpnConnectionsInfo() const; const QJsonObject activeWiredConnectionInfo() const; const QString activeWiredConnName() const; const QString activeWiredConnUuid() const; const QString activeWiredConnSettingPath() const; Q_SIGNALS: void connectionsChanged(const QList &connections) const; void activeWiredConnectionInfoChanged(const QJsonObject &connInfo) const; void activeConnectionsChanged(const QList &activeConns) const; void activeConnectionsInfoChanged(const QList &activeConnInfoList) const; private: QList m_activeConnections; QList m_activeConnectionsInfo; QList m_connections; }; } } #endif // WIREDDEVICE_H dde-network-utils-5.4.13/dde-network-utils/wirelessdevice.cpp000066400000000000000000000160501411407032700242700ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "wirelessdevice.h" using namespace dde::network; #include #include #include #include #include #include #define WIRELESS_PATH "Path" #define WIRELESS_STRENGTH "Strength" WirelessDevice::WirelessDevice(const QJsonObject &info, QObject *parent) : NetworkDevice(NetworkDevice::Wireless, info, parent) , m_networkInter("com.deepin.daemon.Network", "/com/deepin/daemon/Network", QDBusConnection::sessionBus(), this) { } bool WirelessDevice::supportHotspot() const { return info()["SupportHotspot"].toBool(); } const QString WirelessDevice::activeHotspotUuid() const { Q_ASSERT(hotspotEnabled()); return m_activeHotspotInfo.value("ConnectionUuid").toString(); } const QList WirelessDevice::activeConnections() const { return m_activeConnections; } const QList WirelessDevice::activeConnectionsInfo() const { return m_activeConnectionsInfo; } const QList WirelessDevice::activeVpnConnectionsInfo() const { QList activeVpns; for (const QJsonObject &activeConn : m_activeConnectionsInfo) { if (activeConn.value("ConnectionType").toString().startsWith("vpn-")) { activeVpns.append(activeConn); } } return activeVpns; } const QJsonObject WirelessDevice::activeWirelessConnectionInfo() const { QJsonObject activeWireless; for (const QJsonObject &activeConn : m_activeConnectionsInfo) { if (activeConn.value("ConnectionType").toString() == "wireless") { activeWireless = activeConn; break; } } return activeWireless; } const QString WirelessDevice::activeWirelessConnName() const { const QJsonObject &conn = activeWirelessConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("ConnectionName").toString(); } const QString WirelessDevice::activeWirelessConnUuid() const { const QJsonObject &conn = activeWirelessConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("ConnectionUuid").toString(); } const QString WirelessDevice::activeWirelessConnSettingPath() const { const QJsonObject &conn = activeWirelessConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("SettingPath").toString(); } const QString WirelessDevice::activeWirelessConnSpecificObject() const { const QJsonObject &conn = activeWirelessConnectionInfo(); return conn.isEmpty() ? QString() : conn.value("SpecificObject").toString(); } const QJsonArray WirelessDevice::apList() const { QJsonArray apArray; for (auto ap : m_apsMap.values()) { apArray.append(ap); } return apArray; } void WirelessDevice::updateWirlessAp() { m_networkInter.RequestWirelessScan(); } void WirelessDevice::setAPList(const QJsonValue &wirelessList) { QMap apsMapOld = m_apsMap; m_apsMap.clear(); const QJsonArray &apArray = wirelessList.toArray(); for (auto item : apArray) { const QJsonObject &ap = item.toObject(); const QString &path = ap.value(WIRELESS_PATH).toString(); if (!path.isEmpty()) { if (!apsMapOld.contains(path)) { Q_EMIT apAdded(ap); } else { if (apsMapOld.value(path) != ap) { Q_EMIT apInfoChanged(ap); } } m_apsMap.insert(path, ap); } } for (auto path : apsMapOld.keys()) { if (!m_apsMap.contains(path)) { Q_EMIT apRemoved(apsMapOld.value(path)); } } setActiveApByPath(activeWirelessConnSpecificObject()); } void WirelessDevice::updateAPInfo(const QString &apInfo) { const auto &ap = QJsonDocument::fromJson(apInfo.toUtf8()).object(); const auto &path = ap.value(WIRELESS_PATH).toString(); if (!path.isEmpty()) { if (ap.value("Path").toString() == activeApPath()) { m_activeApInfo = ap; Q_EMIT activeApInfoChanged(m_activeApInfo); } if (m_apsMap.contains(path)) { Q_EMIT apInfoChanged(ap); } else { Q_EMIT apAdded(ap); } // QMap will replace existing key-value m_apsMap.insert(path, ap); } } void WirelessDevice::deleteAP(const QString &apInfo) { const auto &ap = QJsonDocument::fromJson(apInfo.toUtf8()).object(); const auto &path = ap.value(WIRELESS_PATH).toString(); if (!path.isEmpty()) { if (m_apsMap.contains(path)) { m_apsMap.remove(path); Q_EMIT apRemoved(ap); } } } void WirelessDevice::setActiveConnections(const QList &activeConns) { m_activeConnections = activeConns; Q_EMIT activeConnectionsChanged(m_activeConnections); } void WirelessDevice::setActiveConnectionsInfo(const QList &activeConnsInfo) { m_activeConnectionsInfo = activeConnsInfo; if (activeWirelessConnectionInfo().isEmpty()) { m_activeApInfo = QJsonObject(); Q_EMIT activeApInfoChanged(m_activeApInfo); } else { setActiveApByPath(activeWirelessConnSpecificObject()); } Q_EMIT activeWirelessConnectionInfoChanged(activeWirelessConnectionInfo()); Q_EMIT activeConnectionsInfoChanged(m_activeConnectionsInfo); } void WirelessDevice::setActiveHotspotInfo(const QJsonObject &hotspotInfo) { const bool changed = m_activeHotspotInfo.isEmpty() != hotspotInfo.isEmpty(); m_activeHotspotInfo = hotspotInfo; if (changed) Q_EMIT hotspotEnabledChanged(hotspotEnabled()); } void WirelessDevice::setActiveApByPath(const QString &path) { if (path == "") { m_activeApInfo = QJsonObject(); } else { auto it = m_apsMap.find(path); if (it == m_apsMap.end()) return; m_activeApInfo = it.value(); } Q_EMIT activeApInfoChanged(m_activeApInfo); } void WirelessDevice::setConnections(const QList &connections) { m_connections = connections; Q_EMIT connectionsChanged(m_connections); } void WirelessDevice::setHotspotConnections(const QList &hotspotConnections) { m_hotspotConnections = hotspotConnections; Q_EMIT hostspotConnectionsChanged(m_hotspotConnections); } dde-network-utils-5.4.13/dde-network-utils/wirelessdevice.h000066400000000000000000000106121411407032700237330ustar00rootroot00000000000000/* * Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. * * Author: sbw * kirigaya * Hualet * * Maintainer: sbw * kirigaya * Hualet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef WIRELESSDEVICE_H #define WIRELESSDEVICE_H #include "networkdevice.h" #include #include #include using NetworkInter = com::deepin::daemon::Network; namespace dde { namespace network { class WirelessDevice : public NetworkDevice { Q_OBJECT public: explicit WirelessDevice(const QJsonObject &info, QObject *parent = nullptr); bool supportHotspot() const; inline bool hotspotEnabled() const { return !m_activeHotspotInfo.isEmpty(); } inline QJsonObject activeHotspotInfo() const { return m_activeHotspotInfo; } const QString activeHotspotUuid() const; const QList activeConnections() const; const QList activeConnectionsInfo() const; const QList activeVpnConnectionsInfo() const; const QJsonObject activeWirelessConnectionInfo() const; const QString activeWirelessConnName() const; const QString activeWirelessConnUuid() const; const QString activeWirelessConnSettingPath() const; const QString activeWirelessConnSpecificObject() const; const QList connections() const { return m_connections; } const QList hotspotConnections() const { return m_hotspotConnections; } const QJsonArray apList() const; inline const QJsonObject activeApInfo() const { return m_activeApInfo; } inline const QString activeApSsid() const { return m_activeApInfo.value("Ssid").toString(); } inline const QString activeApPath() const { return m_activeApInfo.value("Path").toString(); } inline int activeApStrength() const { return m_activeApInfo.value("Strength").toInt(); } void updateWirlessAp(); Q_SIGNALS: void apAdded(const QJsonObject &apInfo) const; void apInfoChanged(const QJsonObject &apInfo) const; void apRemoved(const QJsonObject &apInfo) const; void activeApInfoChanged(const QJsonObject &activeApInfo) const; void activeWirelessConnectionInfoChanged(const QJsonObject &connInfo) const; void activeConnectionsChanged(const QList &activeConns) const; void activeConnectionsInfoChanged(const QList &activeConnInfoList) const; void hotspotEnabledChanged(const bool enabled) const; void needSecrets(const QString &info); void needSecretsFinished(const QString &info0, const QString &info1); void activateAccessPointFailed(const QString &apPath, const QString &uuid); void connectionsChanged(const QList &connections) const; void hostspotConnectionsChanged(const QList &connections) const; public Q_SLOTS: void setAPList(const QJsonValue &wirelessList); void updateAPInfo(const QString &apInfo); void deleteAP(const QString &apInfo); void setActiveConnections(const QList &activeConns); void setActiveConnectionsInfo(const QList &activeConnsInfo); void setActiveHotspotInfo(const QJsonObject &hotspotInfo); void setConnections(const QList &connections); void setHotspotConnections(const QList &hotspotConnections); private: void setActiveApByPath(const QString &pathyy); private: QList m_activeConnections; QList m_activeConnectionsInfo; QJsonObject m_activeApInfo; QJsonObject m_activeHotspotInfo; QMap m_apsMap; QList m_connections; QList m_hotspotConnections; NetworkInter m_networkInter; }; } } #endif // WIRELESSDEVICE_H dde-network-utils-5.4.13/debian/000077500000000000000000000000001411407032700164065ustar00rootroot00000000000000dde-network-utils-5.4.13/debian/changelog000066400000000000000000000005251411407032700202620ustar00rootroot00000000000000dde-network-utils (5.3.0.5+r1+g5a0f0a4) UNRELEASED; urgency=medium * u -- unknown Mon, 09 Nov 2020 09:34:31 +0800 dde-network-utils (1.0-1) unstable; urgency=medium * Initial release (Closes: #nnnn) -- unknown Thu, 14 Jun 2018 10:22:30 +0800 dde-network-utils-5.4.13/debian/control000066400000000000000000000013241411407032700200110ustar00rootroot00000000000000Source: dde-network-utils Section: libs Priority: optional Maintainer: listenerri Build-Depends: debhelper-compat (= 11), libdframeworkdbus-dev (>= 1.0.2), libgsettings-qt-dev, pkg-config, qtbase5-dev, qt5-qmake, qttools5-dev-tools, libgsettings-qt-dev, libgtest-dev Standards-Version: 3.9.8 Homepage: https://github.com/linuxdeepin/dde-network-utils Package: libdde-network-utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, Description: dde network utils dde network utils module. Package: libdde-network-utils-dev Architecture: any Section: libdevel Depends: libdde-network-utils, ${misc:Depends}, Description: dde network utils dev dde network utils dev module. dde-network-utils-5.4.13/debian/copyright000066400000000000000000000017741411407032700203520ustar00rootroot00000000000000Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dde-network-utils Source: https://github.com/linuxdeepin/dde-network-utils Files: * Copyright: 2018-2018 Deepin Technology Co., Ltd. License: GPL-3+ License: GPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". dde-network-utils-5.4.13/debian/libdde-network-utils-dev.install000066400000000000000000000000671411407032700246250ustar00rootroot00000000000000/usr/include/* /usr/lib/pkgconfig/dde-network-utils.pc dde-network-utils-5.4.13/debian/libdde-network-utils.install000066400000000000000000000000551411407032700240460ustar00rootroot00000000000000/usr/lib/libdde-network-utils.so* /usr/share dde-network-utils-5.4.13/debian/rules000077500000000000000000000001461411407032700174670ustar00rootroot00000000000000#!/usr/bin/make -f include /usr/share/dpkg/default.mk export QT_SELECT = qt5 %: dh $@ --parallel dde-network-utils-5.4.13/debian/source/000077500000000000000000000000001411407032700177065ustar00rootroot00000000000000dde-network-utils-5.4.13/debian/source/format000066400000000000000000000000141411407032700211140ustar00rootroot000000000000003.0 (quilt) dde-network-utils-5.4.13/rpm/000077500000000000000000000000001411407032700157625ustar00rootroot00000000000000dde-network-utils-5.4.13/rpm/dde-network-utils.spec000066400000000000000000000024251411407032700222220ustar00rootroot00000000000000Name: dde-network-utils Version: 5.4.4 Release: 1 Summary: Deepin desktop-environment - network utils License: GPLv3 URL: https://github.com/linuxdeepin/dde-network-utils Source0: %{name}_%{version}.orig.tar.xz BuildRequires: gcc-c++ #BuildRequires: pkgconfig(dframeworkdbus) >= 2.0 BuildRequires: dde-qt-dbus-factory-devel BuildRequires: pkgconfig(Qt5Core) BuildRequires: qt5-linguist BuildRequires: pkgconfig(gsettings-qt) BuildRequires: gtest-devel %description Deepin desktop-environment - network utils. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header files and libraries for %{name}. %prep %setup -q -n %{name}-%{version} sed -i 's|lrelease|lrelease-qt5|' translate_generation.sh sed -i 's|/lib$|/%{_lib}|' dde-network-utils/dde-network-utils.pro %build %qmake_qt5 PREFIX=%{_prefix} %make_build %install %make_install INSTALL_ROOT=%{buildroot} %files %doc README.md %{_libdir}/libdde-network-utils.so.1* %{_datadir}/%{name}/ %files devel %{_includedir}/libddenetworkutils/ %{_libdir}/pkgconfig/*.pc %{_libdir}/libdde-network-utils.so %changelog * Thu Mar 11 2021 uniontech - 5.4.4-1 - Update to 5.4.4 dde-network-utils-5.4.13/tests/000077500000000000000000000000001411407032700163265ustar00rootroot00000000000000dde-network-utils-5.4.13/tests/dde-network-utils/000077500000000000000000000000001411407032700217075ustar00rootroot00000000000000dde-network-utils-5.4.13/tests/dde-network-utils/main.cpp000066400000000000000000000006731411407032700233450ustar00rootroot00000000000000#include #include #include #define private public int main(int argc, char *argv[]) { qputenv("QT_QPA_PLATFORM", "offscreen"); QCoreApplication app(argc,argv); qDebug() << "start dde-network-utils test cases .............."; ::testing::InitGoogleTest(&argc, argv); int ret = RUN_ALL_TESTS(); qDebug() << "end dde-network-utils test cases .............."; return ret; } dde-network-utils-5.4.13/tests/dde-network-utils/tst_connecttivitychecker.cpp000066400000000000000000000007001411407032700275310ustar00rootroot00000000000000#include #include "connectivitychecker.h" #include using namespace dde::network; class TstConnectivityChecker : public testing::Test { public: void SetUp() override { // obj = new ConnectivityChecker(); } void TearDown() override { // delete obj; // obj = nullptr; } public: ConnectivityChecker *obj = nullptr; }; TEST_F(TstConnectivityChecker, coverageTest) { } dde-network-utils-5.4.13/tests/dde-network-utils/tst_dde-network-utils.pro000066400000000000000000000013361411407032700267070ustar00rootroot00000000000000QT += dbus network TARGET = tst_dde-network-utils TEMPLATE = app # 执行 make check 会运行 tests CONFIG += testcase no_testcase_installs # 生成统计信息 QMAKE_CXXFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0 QMAKE_LFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0 PKGCONFIG += dframeworkdbus gsettings-qt CONFIG += c++11 link_pkgconfig CONFIG -= app_bundle LIBS += -lgtest DEFINES += QT_DEPRECATED_WARNINGS include(../../dde-network-utils/src.pri) SOURCES += \ main.cpp \ tst_connecttivitychecker.cpp \ tst_networkdevice.cpp \ tst_networkmodel.cpp \ tst_networkworker.cpp \ tst_wireddevice.cpp \ tst_wirelessdevice.cpp INCLUDEPATH += ../../dde-network-utils RESOURCES += dde-network-utils-5.4.13/tests/dde-network-utils/tst_networkdevice.cpp000066400000000000000000000006421411407032700261600ustar00rootroot00000000000000#include #include "networkdevice.h" #include using namespace dde::network; class TstNetworkDevice : public testing::Test { public: void SetUp() override { // obj = new NetworkDevice(); } void TearDown() override { // delete obj; // obj = nullptr; } public: NetworkDevice *obj = nullptr; }; TEST_F(TstNetworkDevice, coverageTest) { } dde-network-utils-5.4.13/tests/dde-network-utils/tst_networkmodel.cpp000066400000000000000000000006351411407032700260230ustar00rootroot00000000000000#include #include "networkmodel.h" #include using namespace dde::network; class TstNetworkModel : public testing::Test { public: void SetUp() override { // obj = new NetworkModel(); } void TearDown() override { // delete obj; // obj = nullptr; } public: NetworkModel *obj = nullptr; }; TEST_F(TstNetworkModel, coverageTest) { } dde-network-utils-5.4.13/tests/dde-network-utils/tst_networkworker.cpp000066400000000000000000000006421411407032700262320ustar00rootroot00000000000000#include #include "networkworker.h" #include using namespace dde::network; class TstNetworkWorker : public testing::Test { public: void SetUp() override { // obj = new NetworkWorker(); } void TearDown() override { // delete obj; // obj = nullptr; } public: NetworkWorker *obj = nullptr; }; TEST_F(TstNetworkWorker, coverageTest) { } dde-network-utils-5.4.13/tests/dde-network-utils/tst_wireddevice.cpp000066400000000000000000000006301411407032700255760ustar00rootroot00000000000000#include #include "wireddevice.h" #include using namespace dde::network; class TstWiredDevice : public testing::Test { public: void SetUp() override { // obj = new WiredDevice(); } void TearDown() override { // delete obj; // obj = nullptr; } public: WiredDevice *obj = nullptr; }; TEST_F(TstWiredDevice, coverageTest) { } dde-network-utils-5.4.13/tests/dde-network-utils/tst_wirelessdevice.cpp000066400000000000000000000006471411407032700263310ustar00rootroot00000000000000#include #include "wirelessdevice.h" #include using namespace dde::network; class TstWirelessDevice : public testing::Test { public: void SetUp() override { // obj = new WirelessDevice(); } void TearDown() override { // delete obj; // obj = nullptr; } public: WirelessDevice *obj = nullptr; }; TEST_F(TstWirelessDevice, coverageTest) { } dde-network-utils-5.4.13/tests/test-recoverage.sh000077500000000000000000000012051411407032700217620ustar00rootroot00000000000000#!/bin/bash BUILD_DIR=build REPORT_DIR=report #EXTRACT_ARGS="src" cd ../ rm -rf $BUILD_DIR mkdir $BUILD_DIR cd $BUILD_DIR qmake ../dde-network-utils/ make cd ../tests/ rm -rf $BUILD_DIR mkdir $BUILD_DIR cd $BUILD_DIR qmake ../dde-network-utils/ TESTARGS="--gtest_output=xml:dde_test_report_network_utils.xml" make check -j$(nproc) lcov -d ./ -c -o coverage_all.info #lcov --extract coverage_all.info $EXTRACT_ARGS --output-file coverage.info lcov --remove coverage_all.info "*/tests/*" "*/usr/include*" "*build/src*" --output-file coverage.info cd .. genhtml -o $REPORT_DIR $BUILD_DIR/coverage.info #rm -rf $BUILD_DIR #rm -rf ../$BUILD_DIR dde-network-utils-5.4.13/translate_generation.sh000077500000000000000000000003501411407032700217310ustar00rootroot00000000000000#!/bin/bash # this file is used to auto-generate .qm file from .ts file. # author: shibowen at linuxdeepin.com ts_list=(`ls translations/*.ts`) for ts in "${ts_list[@]}" do printf "\nprocess ${ts}\n" lrelease "${ts}" done dde-network-utils-5.4.13/translations/000077500000000000000000000000001411407032700177055ustar00rootroot00000000000000dde-network-utils-5.4.13/translations/dde-network-utils.ts000066400000000000000000000055721411407032700236470ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Disconnected Connecting Connecting Authenticating Authenticating Obtaining Address Obtaining Address Connected Connected Failed Failed Device disabled Device disabled Connected but no Internet access Connected but no Internet access Network cable unplugged Network cable unplugged Not connected Not connected Obtaining IP address Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_af.ts000066400000000000000000000047061411407032700243130ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Ontkoppel Connecting Authenticating Obtaining Address Connected Verbind Failed Gefaal Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_am_ET.ts000066400000000000000000000050711411407032700247060ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected ተቋርጧል Connecting በ መገናኘት ላይ Authenticating በ ማረጋገጥ ላይ Obtaining Address አድራሻ በ ማግኘት ላይ Connected ተገናኝቷል Failed ወድቋል Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected አልተገናኘም Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_ar.ts000066400000000000000000000057221411407032700243260ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected غير متصل Connecting التوصيل Authenticating المصادقة Obtaining Address الحصول على عنوان Connected متصل Failed فشل Device disabled جهاز ملغى Connected but no Internet access متصل لكن لا يوجد اتصال بالإنترنت Network cable unplugged سلك الشبكة غير موصول Not connected غير متصل Obtaining IP address جاري الحصول على عنوان IP dde-network-utils-5.4.13/translations/dde-network-utils_ast.ts000066400000000000000000000056111411407032700245100ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconeutáu Connecting Coneutando Authenticating Autenticando Obtaining Address Consiguiendo direición Connected Coneutáu Failed Fallu Device disabled Inhabilitóse'l preséu Connected but no Internet access Network cable unplugged Desconeutóse'l cable de la rede Not connected Nun se coneutó Obtaining IP address Consiguiendo la direición IP dde-network-utils-5.4.13/translations/dde-network-utils_az.ts000066400000000000000000000056421411407032700243370ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Ayrılıb Connecting Bağlanılır Authenticating Kimlik doğrulaması Obtaining Address Ünvanın alınması Connected Qoşuldu Failed Uğursuz Device disabled Cihaz söndürülüb Connected but no Internet access Qoşulub, lakin internetə giriş yoxdur Network cable unplugged Şəbəkə kabeli çıxarılıb Not connected Qoşulmayıb Obtaining IP address İP ünvanlarının alınması dde-network-utils-5.4.13/translations/dde-network-utils_bg.ts000066400000000000000000000060521411407032700243110ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Прекъснат Connecting Свързване Authenticating Удостоверяване Obtaining Address Получаване на адрес Connected Свързано Failed Неуспешно Device disabled Устройството е изключено Connected but no Internet access Свързан но няма Интернет връзка Network cable unplugged Изключен е мрежовият кабел Not connected Няма връзка Obtaining IP address Получаване на IP адрес dde-network-utils-5.4.13/translations/dde-network-utils_bn.ts000066400000000000000000000063421411407032700243220ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected অসংযুক্ত Connecting সংযুক্ত হচ্ছে Authenticating প্রমাণীকরণ হচ্ছে Obtaining Address ঠিকানা সংগ্রহ করছে Connected সংযুক্ত Failed ব্যর্থ হয়েছে Device disabled ডিভাইস নিষ্ক্রিয় Connected but no Internet access সংযুক্ত কিন্তু কোনো ইন্টারনেট এক্সেস নেই Network cable unplugged নেটওয়ার্ক তার তোলা হয়েছে Not connected সংযুক্ত নয় Obtaining IP address আইপি ঠিকানা নেওয়া হচ্ছে dde-network-utils-5.4.13/translations/dde-network-utils_bo.ts000066400000000000000000000064531411407032700243260ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected ཆད་པ། Connecting སྦྲེལ་བཞིན་པ། Authenticating ར་སྤྲོད་བྱེད་བཞིན་པ། Obtaining Address གནས་ཡུལ་འཚོལ་བཞིན་པ། Connected སྦྲེལ་ཟིན། Failed ཕམ་པ། Device disabled སྒྲིག་ཆས་སྤྱོད་མི་ཆོག Connected but no Internet access དྲ་རྒྱ་དང་འབྲེལ་ཟིན་ཡང་མཉམ་སྦྲེལ་དྲ་རྒྱར་འཛུལ་མི་ཐུབ། Network cable unplugged དྲ་སྐུད་མཐུད་མི་འདུག Not connected སྦྲེལ་མེད་པ། Obtaining IP address IP གནས་ཡུལ་འཚོལ་བཞིན་པ། dde-network-utils-5.4.13/translations/dde-network-utils_ca.ts000066400000000000000000000056571411407032700243160ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconnectat Connecting Es connecta Authenticating S'autentica Obtaining Address S'obté l'adreça Connected Connectat Failed Ha fallat Device disabled Dispositiu inhabilitat Connected but no Internet access Connectat però sense accés a Internet Network cable unplugged El cable de xarxa està desconnectat. Not connected No connectat Obtaining IP address S'obté l'adreça IP dde-network-utils-5.4.13/translations/dde-network-utils_cs.ts000066400000000000000000000056271411407032700243350ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Odpojeno Connecting Připojuje se Authenticating Ověřování Obtaining Address Získávání adresy Connected Připojeno Failed Nepodařilo se Device disabled Zařízení zakázáno Connected but no Internet access Připojeno, ale bez přístupu k Internetu Network cable unplugged Síťový kabel odpojen Not connected Nepřipojeno Obtaining IP address Získávání IP adresy dde-network-utils-5.4.13/translations/dde-network-utils_da.ts000066400000000000000000000056171411407032700243130ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Afbrudt Connecting Opretter forbindelse Authenticating Autentificering Obtaining Address Henter adresse Connected Tilsluttet Failed Mislykkedet Device disabled Enhed deaktiveret Connected but no Internet access Tilsluttet men ingen internetadgang Network cable unplugged Netværkskablet er frakoblet Not connected Ikke tilsluttet Obtaining IP address Indhenter IP-adresse dde-network-utils-5.4.13/translations/dde-network-utils_de.ts000066400000000000000000000056321411407032700243140ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Getrennt Connecting Wird verbunden Authenticating Wird authentifiziert Obtaining Address Adresse wird abgerufen Connected Verbunden Failed Fehlgeschlagen Device disabled Gerät deaktiviert Connected but no Internet access Verbunden, aber kein Internetzugang Network cable unplugged Netzwerkkabel abgezogen Not connected Nicht verbunden Obtaining IP address IP-Adresse wird abgerufen dde-network-utils-5.4.13/translations/dde-network-utils_el.ts000066400000000000000000000061131411407032700243170ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Αποσυνδέθηκε Connecting Σύνδεση Authenticating Πιστοποίηση Obtaining Address Απόκτηση Διεύθηνσης Connected Συνδέθηκε Failed Αποτυχία Device disabled Συσκευή Αποσυνδέθηκε Connected but no Internet access Συνδεδεμένο αλλά χωρίς πρόσβαση στο διαδίκτυο Network cable unplugged Το καλώδιο δικτύου, αποσυνδέθηκε Not connected Δεν Συνδέθηκε Obtaining IP address Απόκτηση Διεύθηνσης IP dde-network-utils-5.4.13/translations/dde-network-utils_en_AU.ts000066400000000000000000000055751411407032700247210ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Disconnected Connecting Connecting Authenticating Authenticating Obtaining Address Obtaining Address Connected Connected Failed Failed Device disabled Device disabled Connected but no Internet access Connected but no Internet access Network cable unplugged Network cable unplugged Not connected Not connected Obtaining IP address Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_eo.ts000066400000000000000000000047261411407032700243320ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Malkonektita Connecting Authenticating Obtaining Address Connected Konektita Failed Malsukceso Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Ne konektita Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_es.ts000066400000000000000000000056141411407032700243330ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconectado Connecting Conectando Authenticating Verificando Obtaining Address Obteniendo dirección Connected Conectado Failed Falló Device disabled Dispositivo desactivado Connected but no Internet access Conectado pero sin acceso a internet Network cable unplugged Cable de red desconectado Not connected No conectado Obtaining IP address Obteniendo dirección IP dde-network-utils-5.4.13/translations/dde-network-utils_es_419.ts000066400000000000000000000047621411407032700247330ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconectado Connecting Conectando Authenticating Autenticando Obtaining Address Obteniendo dirección Connected Conectado Failed Falló Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected No conectado Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_et.ts000066400000000000000000000056431411407032700243360ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Lahtu ühendatud Connecting Ühendamine Authenticating Autentimine Obtaining Address Aadressi hankimine Connected Ühendatud Failed Ebaõnnestunud Device disabled Seade on keelatud Connected but no Internet access Ühendatud, aga juurdepääs internetile puudub Network cable unplugged Võrgukaabel on lahti ühendatud Not connected Pole ühendatud Obtaining IP address IP aadressi hankimine dde-network-utils-5.4.13/translations/dde-network-utils_fa.ts000066400000000000000000000060411411407032700243050ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected قطع اتصال Connecting در حال اتصال Authenticating تأیید اعتبار Obtaining Address در حال بدست آوری مسیر Connected متصل شده Failed عدم اعمال Device disabled دستگاه غیرفعال است Connected but no Internet access متصل است اما دسترسی به اینترنت ندارد Network cable unplugged کابل شبکه وصل نشده است Not connected متصل نیست Obtaining IP address در حال به دست آوردن نشانی IP dde-network-utils-5.4.13/translations/dde-network-utils_fi.ts000066400000000000000000000056001411407032700243150ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Katkaistu Connecting Yhdistetään Authenticating Todennus Obtaining Address Osoitteen haku Connected Yhdistetty Failed Epäonnistui Device disabled Laite suljettu Connected but no Internet access Yhdistetty, mutta ei internet osoitetta Network cable unplugged Verkkokaapeli ei kytkettynä Not connected Ei yhteyttä Obtaining IP address Hakee IP osoitetta dde-network-utils-5.4.13/translations/dde-network-utils_fr.ts000066400000000000000000000056631411407032700243370ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Déconnecté Connecting Connexion en cours Authenticating Authentification Obtaining Address Obtention d'adresse IP Connected Connecté Failed Échoué Device disabled Périphérique désactivé Connected but no Internet access Connecté mais pas d’accès internet Network cable unplugged Le câble réseau est débranché Not connected Non connecté Obtaining IP address Obtention d'adresse IP dde-network-utils-5.4.13/translations/dde-network-utils_gl.ts000066400000000000000000000022271411407032700243230ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconectado Connecting Conectando Authenticating Obtaining Address Connected Conectado Failed Con erros dde-network-utils-5.4.13/translations/dde-network-utils_gl_ES.ts000066400000000000000000000056141411407032700247150ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconectado Connecting Conectando Authenticating Autenticando Obtaining Address Obtendo enderezo Connected Conectado Failed Con erros Device disabled Dispositivo desactivado Connected but no Internet access Conectado pero sen acceso a internet Network cable unplugged Cabo de rede desconectado Not connected Sen conexión Obtaining IP address Obtendo o enderezo IP dde-network-utils-5.4.13/translations/dde-network-utils_he.ts000066400000000000000000000047301411407032700243160ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected מנותק Connecting מתחבר Authenticating Obtaining Address Connected חיבור פעיל Failed כשל Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_hi_IN.ts000066400000000000000000000064571411407032700247200ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected डिस्कनेक्ट है Connecting कनेक्ट हो रहा है Authenticating प्रमाणीकृत किया जा रहा है Obtaining Address नेटवर्क पता प्राप्त किया जा रहा है Connected कनेक्ट है Failed विफल रहा Device disabled डिवाइस डिसेबल्ड Connected but no Internet access कनेक्टेड लेकिन इंटरनेट आक्सेस नही है Network cable unplugged नेटवर्क केबल अनप्लग है Not connected कनेक्ट नहीं है Obtaining IP address IP अड्रेस प्राप्त किया जा रहा है dde-network-utils-5.4.13/translations/dde-network-utils_hr.ts000066400000000000000000000056031411407032700243330ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Odspojeno Connecting Povezujem se Authenticating Autentifikacija Obtaining Address Dobivanje adrese Connected Spojeno Failed Neuspjelo Device disabled Uređaj je onemogućen Connected but no Internet access Spojen ali nema pristupa internetu Network cable unplugged Mrežni kabel je isključen Not connected Nije spojeno Obtaining IP address Dobivam IP adresu dde-network-utils-5.4.13/translations/dde-network-utils_hu.ts000066400000000000000000000056261411407032700243430ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Lecsatlakozva Connecting Csatlakozás Authenticating Hitelesítés Obtaining Address Cím megszerzése Connected Csatlakozva Failed Sikertelen Device disabled Eszköz letiltva Connected but no Internet access Csatlakozva, de nincs internet hozzáférés Network cable unplugged A hálózati kábel kihúzva Not connected Nincs csatlakozva Obtaining IP address IP cím lekérése dde-network-utils-5.4.13/translations/dde-network-utils_hy.ts000066400000000000000000000047151411407032700243450ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Connecting Միացվում է Authenticating Obtaining Address Connected Failed Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_id.ts000066400000000000000000000056141411407032700243200ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Terputus Connecting Menyambung Authenticating Autentikasi Obtaining Address Mendapatkan Alamat Connected Tersambung Failed Gagal Device disabled Perangkat non aktif Connected but no Internet access Terhubung tetapi tidak ada akses Internet Network cable unplugged Kabel jaringan tidak terhubung Not connected Tidak tersambung Obtaining IP address Mendapatkan alamat IP dde-network-utils-5.4.13/translations/dde-network-utils_it.ts000066400000000000000000000056561411407032700243460ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Disconnesso Connecting Connessione in corso Authenticating Autentificazione in corso Obtaining Address Ottenimento indirizzo IP Connected Connesso Failed Connessione fallita Device disabled Dispositivo disattivato Connected but no Internet access Connesso senza accesso ad internet Network cable unplugged Cavo di rete scollegato Not connected Non connesso Obtaining IP address Ottenimento indirizzo IP dde-network-utils-5.4.13/translations/dde-network-utils_ja.ts000066400000000000000000000056631411407032700243220ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected 切断 Connecting 接続試行中 Authenticating 認証中 Obtaining Address アドレスを取得中 Connected 接続済み Failed 失敗 Device disabled デバイスは無効です Connected but no Internet access 接続済み、インターネットアクセスなし Network cable unplugged ネットワークケーブル未接続 Not connected 未接続 Obtaining IP address IP アドレスを取得中 dde-network-utils-5.4.13/translations/dde-network-utils_kab.ts000066400000000000000000000055441411407032700244630ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Yeffeɣ seg tuqqna Connecting Tuqqna Authenticating Asesteb Obtaining Address Awway n tansa Connected Yeqqen Failed Ur yeddi ara Device disabled Ibenk yensan Connected but no Internet access Yeqqen maca ulac anekcum ɣer Internet Network cable unplugged Not connected Ur yeqqin ara Obtaining IP address Awway n tansa n IP dde-network-utils-5.4.13/translations/dde-network-utils_km_KH.ts000066400000000000000000000062401411407032700247110ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected បានដាច់ Connecting កំពុងភ្ជាប់ Authenticating ផ្ទៀងផ្ទាត់ Obtaining Address ទទួលអាសយដ្ឋាន Connected បានភ្ជាប់ Failed បរាជ័យ Device disabled ឧបករណ៍បានបិទ Connected but no Internet access បានភ្ជាប់ប៉ុន្តែមិនមានអ៊ីនធឺណិតទេ Network cable unplugged ខ្សែបណ្តាញមិនបានដោត Not connected មិនបាន​តភ្ជាប់ Obtaining IP address កំពុងទទួលអាសយដ្ឋាន IP dde-network-utils-5.4.13/translations/dde-network-utils_ko.ts000066400000000000000000000056311411407032700243340ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected 연결 끊김 Connecting 연결 중 Authenticating 인증중 Obtaining Address 주소 불러오는 중 Connected 연결됨 Failed 실패 Device disabled 디바이스 사용해제됨 Connected but no Internet access 연결됨, 인터넷 없음 Network cable unplugged 네트워크 케이블 제거됨 Not connected 연결되지 않음 Obtaining IP address IP 주소 가져오는 중 dde-network-utils-5.4.13/translations/dde-network-utils_lt.ts000066400000000000000000000056211411407032700243410ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Atsijungta Connecting Jungiamasi Authenticating Nustatoma tapatybė Obtaining Address Gaunamas adresas Connected Prisijungta Failed Nepavyko Device disabled Įrenginys išjungtas Connected but no Internet access Prisijungta, bet nėra prieigos prie interneto Network cable unplugged Atjungtas tinklo laidas Not connected Neprijungta Obtaining IP address Gaunamas IP adresas dde-network-utils-5.4.13/translations/dde-network-utils_ml.ts000066400000000000000000000047631411407032700243400ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Connecting Authenticating Obtaining Address Connected ബന്ധിച്ചിരിക്കുന്നു Failed Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_mn.ts000066400000000000000000000061651411407032700243400ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Холболт тасарсан Connecting Холбогдож байна Authenticating Баталгаажуулж байна Obtaining Address Хаягыг авч байна Connected Холбогдсон Failed Амжилтгүй болсон Device disabled Төхөөрөмж идэвхгүй болсон Connected but no Internet access Холбогдсон боловч интернетэд холбогдоогүй байна Network cable unplugged Сүлжээний кабель салгагдсан Not connected Холбогдоогүй Obtaining IP address Хаягыг авч байна dde-network-utils-5.4.13/translations/dde-network-utils_ms.ts000066400000000000000000000056151411407032700243440ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Terputus Connecting Menyambung Authenticating Mengesahihkan Obtaining Address Mendapatkan Alamat Connected Bersambung Failed Gagal Device disabled Peranti dilumpuhkan Connected but no Internet access Bersambung tetapi tiada capaian Internet Network cable unplugged Kabel rangkaian telah tercabut Not connected Tidak bersambung Obtaining IP address Mendapatkan alamat IP dde-network-utils-5.4.13/translations/dde-network-utils_nb.ts000066400000000000000000000056021411407032700243200ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Avkoblet Connecting Kobler til Authenticating Autentiserer Obtaining Address Henter adresse Connected Tilkoblet Failed Mislyktes Device disabled Enhet deaktivert Connected but no Internet access Tilkoblet men ingen tilgang til internett Network cable unplugged Nettverkskabel er ikke plugget inn Not connected Frakoblet Obtaining IP address Henter IP adresse dde-network-utils-5.4.13/translations/dde-network-utils_ne.ts000066400000000000000000000047511411407032700243270ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Connecting Authenticating Obtaining Address Connected जोडिएको Failed Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected जोडिएको छैन Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_nl.ts000066400000000000000000000056371411407032700243420ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Ontkoppeld Connecting Bezig met verbinden Authenticating Aan het authenticeren Obtaining Address Adres Verkrijgen Connected Verbonden Failed Mislukt Device disabled Apparaat uitgeschakeld Connected but no Internet access Verbonden maar geen internet verbinding Network cable unplugged Netwerkkabel is niet aangesloten Not connected Niet verbonden Obtaining IP address Verkrijgen IP adres dde-network-utils-5.4.13/translations/dde-network-utils_pam.ts000066400000000000000000000047061411407032700245020ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Connecting Authenticating Obtaining Address Connected Failed Eya milyari Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_pl.ts000066400000000000000000000056521411407032700243410ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Rozłączono Connecting Łączenie Authenticating Uwierzytelnianie Obtaining Address Uzyskaj adres Connected Połączono Failed Wystąpił błąd Device disabled Urządzenie jest wyłączone Connected but no Internet access Połączono, ale brak dostępu do Internetu Network cable unplugged Kabel sieciowy jest odłączony Not connected Brak połączenia Obtaining IP address Uzyskiwanie adresu IP dde-network-utils-5.4.13/translations/dde-network-utils_pt.ts000066400000000000000000000055721411407032700243520ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desligado Connecting A ligar Authenticating A autenticar Obtaining Address A obter endereço Connected Ligado Failed Falhou Device disabled Dispositivo desativado Connected but no Internet access Ligado, mas sem acesso à Internet Network cable unplugged Cabo de rede desligado Not connected Sem ligação Obtaining IP address A obter endereço de IP dde-network-utils-5.4.13/translations/dde-network-utils_pt_BR.ts000066400000000000000000000056041411407032700247310ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Desconectado Connecting Conectando Authenticating Autenticando Obtaining Address Obtendo endereço IP Connected Conectado Failed Falhou Device disabled Dispositivo desativado Connected but no Internet access Conectado, sem Internet Network cable unplugged Cabo de rede desconectado Not connected Não conectado Obtaining IP address Obtendo o endereço IP... dde-network-utils-5.4.13/translations/dde-network-utils_ro.ts000066400000000000000000000055711411407032700243460ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Deconectat Connecting Conectare Authenticating Autentificare Obtaining Address Obţinere Adresă Connected Conectat Failed Eșuat Device disabled Dispozitiv Dezactivat Connected but no Internet access Conectat dar fară acces Internet Network cable unplugged Cablu Reţea Deconectat Not connected Neconectat Obtaining IP address Obţinere Adresă IP dde-network-utils-5.4.13/translations/dde-network-utils_ru.ts000066400000000000000000000060341411407032700243470ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Отключено Connecting Соединение Authenticating Аутентификация Obtaining Address Получение Адреса Connected Подключено Failed Ошибка Device disabled Устройство отключено Connected but no Internet access Подключено без доступа к Интернет Network cable unplugged Сетевой кабель отключен Not connected Не подключено Obtaining IP address Получение IP адреса dde-network-utils-5.4.13/translations/dde-network-utils_si.ts000066400000000000000000000063431411407032700243370ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected විසන්ධි වි ඇත Connecting සම්බන්ධ වෙමින් පවතී Authenticating සත්‍යාපනය කිරීම Obtaining Address ලිපිනය ලබා ගැනීම Connected සම්බන්ධයි Failed අසමත් විය Device disabled උපාංගය අක්‍රීය කර ඇත Connected but no Internet access ජාලගතව ඇතත් අන්තර්ජාල ප්‍රවේශය නොමැත Network cable unplugged ජාල කේබලය විසන්ධි කර ඇත Not connected සම්බන්ධතා නොමැත Obtaining IP address IP ලිපිනය ලබා ගැනීම dde-network-utils-5.4.13/translations/dde-network-utils_sk.ts000066400000000000000000000056101411407032700243350ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Odpojené Connecting Pripájanie Authenticating Overujem Obtaining Address Získavanie adresy Connected Pripojené Failed Zlyhanie Device disabled Zariadenie zakázané Connected but no Internet access Pripojené, ale bez prístupu na internet Network cable unplugged Sieťový kábel odpojený Not connected Nepripojené Obtaining IP address Získavanie IP adresy dde-network-utils-5.4.13/translations/dde-network-utils_sl.ts000066400000000000000000000056241411407032700243430ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Povezava prekinjena Connecting Povezovanje Authenticating Overjanje Obtaining Address Pridobivanje naslova Connected Povezano Failed Ni uspelo Device disabled Naprava je onemogočena Connected but no Internet access Povezano, a brez spletnega dostopa Network cable unplugged Omrežni kabel je izklopljen Not connected Brez povezave Obtaining IP address Pridobivanje IP naslova dde-network-utils-5.4.13/translations/dde-network-utils_sq.ts000066400000000000000000000056331411407032700243500ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Po shkëputet Connecting Po bëhet lidhja Authenticating Po bëhet mirëfilltësim Obtaining Address Po merre Adresë Connected U lidh Failed U dështua Device disabled Pajisje e çaktivizuar Connected but no Internet access I lidhur, por pa hyrje Internet Network cable unplugged Kablloja e rrjetit është e hequr Not connected Jo e lidhur Obtaining IP address Po merret adresë IP dde-network-utils-5.4.13/translations/dde-network-utils_sr.ts000066400000000000000000000060571411407032700243520ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Нисте поевзани Connecting Повезивање Authenticating Идентификовање Obtaining Address Добављање адресе Connected Повезани сте Failed Неуспешно Device disabled Уређај је онемогућен Connected but no Internet access Повезани сте, али нема интернета Network cable unplugged Мрежни кабл је ископчан Not connected Нисте повезани Obtaining IP address Прибављање ИП адресе dde-network-utils-5.4.13/translations/dde-network-utils_sv.ts000066400000000000000000000056021411407032700243510ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Frånkopplad Connecting Ansluter Authenticating Autentiserar Obtaining Address Erhåller adress Connected Ansluten Failed Misslyckades Device disabled Enhet inaktiverad Connected but no Internet access Uppkopplad men ingen internet åtkomst Network cable unplugged Nätverkskabel urkopplad Not connected Inte ansluten Obtaining IP address Erhåller IP adress dde-network-utils-5.4.13/translations/dde-network-utils_sw.ts000066400000000000000000000056331411407032700243560ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Imetenganishwa Connecting Inamuungana Authenticating Inathibitisha Obtaining Address Anwani Inapatwa Connected Imemuunganwa Failed Haiwezekana Device disabled Kifaa haifanyi kazi Connected but no Internet access Imebandikiwa, lakini haiko muunganisho wa wavuti Network cable unplugged Kebo ya mtandao haibandikiwa Not connected Haimuunganwa Obtaining IP address Anwani ya IP inapatwa dde-network-utils-5.4.13/translations/dde-network-utils_ta.ts000066400000000000000000000051011411407032700243170ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected இணைப்பு துண்டிக்கப்பட்டது Connecting Authenticating Obtaining Address Connected இணைக்கப்பட்டுள்ளது Failed தோல்வி Device disabled Connected but no Internet access Failed to obtain IP address Network cable unplugged Not connected Obtaining IP address dde-network-utils-5.4.13/translations/dde-network-utils_tr.ts000066400000000000000000000056351411407032700243540ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Bağlantı kesildi Connecting Bağlanıyor Authenticating Kimlik doğrulanıyor Obtaining Address Adres Alınıyor Connected Bağlandı Failed Başarısız Device disabled Aygıt devre dışı Connected but no Internet access Bağlı ancak İnternet erişimi yok Network cable unplugged Ağ kablosu takılı değil Not connected Bağlı değil Obtaining IP address IP adresi alınıyor dde-network-utils-5.4.13/translations/dde-network-utils_ug.ts000066400000000000000000000060451411407032700243360ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected ئۇلانمىدى Connecting ئۇلىنىۋاتىدۇ Authenticating دەلىللەۋاتىدۇ Obtaining Address ئادرېسىغا ئېرىشىۋاتىدۇ Connected ئۇلاندى Failed ئوڭۇشلۇق بولمىدى Device disabled ئۈسكىنە چەكلەش Connected but no Internet access ئۇلاندى ، لېكىن تورغا چىققىلى بولمايدۇ Network cable unplugged تور سىمى ئۇلانمىغان Not connected ئۇلانمىدى Obtaining IP address ئادرېسى ئېرىشىش IP dde-network-utils-5.4.13/translations/dde-network-utils_uk.ts000066400000000000000000000060471411407032700243440ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Від’єднано Connecting З'єднання Authenticating Автентифікація Obtaining Address Отримання Адреси Connected З'єднано Failed Збій Device disabled Пристрій вимкнено Connected but no Internet access З'єднано, але доступу до інтернету немає Network cable unplugged Вийнято інтернет-кабель Not connected Не з'єднано Obtaining IP address Отримуємо IP-адресу dde-network-utils-5.4.13/translations/dde-network-utils_vi.ts000066400000000000000000000057401411407032700243420ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected Đã ngắt kết nối Connecting Đang kết nối Authenticating Đang xác nhận Obtaining Address Đang lấy Địa chỉ Connected Đã kết nối Failed Thất bại Device disabled Thiết bị bị vô hiệu hóa Connected but no Internet access Đã kết nối nhưng không có truy cập Internet Network cable unplugged Mạng dây đã ngắt Not connected Không được kết nối Obtaining IP address Đang lấy địa chỉ IP dde-network-utils-5.4.13/translations/dde-network-utils_zh_CN.ts000066400000000000000000000055601411407032700247250ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected 已断开 Connecting 正在连接 Authenticating 认证中 Obtaining Address 获取地址中 Connected 已连接 Failed 失败 Device disabled 设备已禁用 Connected but no Internet access 已连接网络但无法访问互联网 Network cable unplugged 未插入网线 Not connected 未连接 Obtaining IP address 正在获取IP地址 dde-network-utils-5.4.13/translations/dde-network-utils_zh_HK.ts000066400000000000000000000055551411407032700247330ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected 已切斷連接 Connecting 連接中 Authenticating 認證中 Obtaining Address 獲取地址中 Connected 已連接 Failed 失敗 Device disabled 設備已禁用 Connected but no Internet access 已連接網絡但無法訪問互聯網 Network cable unplugged 未插入網線 Not connected 未連接 Obtaining IP address 獲取IP位址 dde-network-utils-5.4.13/translations/dde-network-utils_zh_TW.ts000066400000000000000000000055771411407032700247670ustar00rootroot00000000000000 dde::network::NetworkDevice Disconnected 連線中斷 Connecting 正在連線 Authenticating 正在驗證 Obtaining Address 正在取得 IP 位址 Connected 已連線 Failed 連線失敗 Device disabled 已停用裝置 Connected but no Internet access 已連線但不能存取網路 Network cable unplugged 已拔除網路線 Not connected 未連線 Obtaining IP address 取得 IP 位址中…