Debian Codegraph @

src/connectivity-api/connectivity-qt/lomiri/connectivity/networking-status.h

raw symbols SCIP
1 /*
2 * Copyright © 2014 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Antti Kaijanmäki <[email protected]>
18 */
19
20 #ifndef CONNECTIVITY_NETWORKING_STATUS_H
21 #define CONNECTIVITY_NETWORKING_STATUS_Hcxx . . $ `src/connectivity-api/connectivity-qt/lomiri/connectivity/networking-status.h:21:9`!
22
23 #include <QObject>
24 #include <QScopedPointer>
25 #include <QVector>
26
27 namespace lomiricxx . . $ lomiri/ {
28 namespace connectivitycxx . . $ lomiri/connectivity/ {
29
30 /**
31 * @brief Overall system networking status.
32 *
33 * NOTE: This class is deprecated, please move to using connectivityqt::Connectivity
34 *
35 * This is the top-level class for accessing networking information.
36 *
37 * * For system networking status, see NetworkingStatus::status.
38 * * For connection limitations, see NetworkingStatus::limitations.
39 *
40 * Examples:
41 * - @ref networking-status "Getting the networking status."
42 */
43 class Q_DECL_DEPRECATEDcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:243:11`! Q_DECL_EXPORTcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:235:13`! NetworkingStatuscxx . . $ lomiri/connectivity/NetworkingStatus# : public QObjectcxx . . $ QObject#
44 {
45 Q_OBJECTcxx . . $ lomiri/connectivity/NetworkingStatus#staticMetaObject.
46 Q_DISABLE_COPYcxx . . $ lomiri/connectivity/NetworkingStatus#(NetworkingStatus)
47
48 Q_ENUMScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:111:9`!(Limitations)
49 Q_ENUMScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:111:9`!(Status)
50
51 /**
52 * limitations of the overall system networking
53 *
54 * @initvalue {}
55 * @accessors limitations()
56 * @notify limitationsChanged()
57 *
58 * \snippet example_networking_status.cpp limitations
59 */
60 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(QVector<Limitations> limitations
61 READ limitations
62 NOTIFY limitationsChanged)
63
64 /**
65 * status of the overall system networking
66 *
67 * @initvalue NetworkingStatus::Online
68 * @accessors status()
69 * @notify statusChanged()
70 *
71 * \snippet example_networking_status.cpp status
72 */
73 Q_PROPERTYcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:104:9`!(lomiri::connectivity::NetworkingStatus::Status status
74 READ status
75 NOTIFY statusChanged)
76
77 public:
78 explicit NetworkingStatuscxx . . $ lomiri/connectivity/NetworkingStatus#NetworkingStatus(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = 0);
79 virtual ~cxx . . $ lomiri/connectivity/NetworkingStatus#`~NetworkingStatus`(ced63f7c635d850d).NetworkingStatuscxx . . $ lomiri/connectivity/NetworkingStatus#();
80
81 /**
82 * @brief enum for networking limitations
83 *
84 * Networking limitations may be accessed through the NetworkingStatus::limitations property.
85 */
86 enum Limitationscxx . . $ lomiri/connectivity/NetworkingStatus#Limitations# {
87 /**
88 * indicates that the bandwidth of the Internet connection has limitations.
89 * Applications should minimize their bandwidth usage if possible.
90 */
91 Bandwidthcxx . . $ lomiri/connectivity/NetworkingStatus#Bandwidth.
92 };
93
94 /**
95 * @brief enum for networking status
96 *
97 * Networking status may be accessed through the NetworkingStatus::status property.
98 */
99 enum Statuscxx . . $ lomiri/connectivity/NetworkingStatus#Status# {
100 Offlinecxx . . $ lomiri/connectivity/NetworkingStatus#Offline., /**< No Internet connection available. */
101 Connectingcxx . . $ lomiri/connectivity/NetworkingStatus#Connecting., /**< System is actively establising a connection. */
102 Onlinecxx . . $ lomiri/connectivity/NetworkingStatus#Online. /**< System is connected to the Internet. */
103 };
104
105
106 /** @see NetworkingStatus::limitations */
107 Q_DECL_DEPRECATEDcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:243:11`!
108 QVectorcxx . . $ QVector#<Limitationscxx . . $ lomiri/connectivity/NetworkingStatus#Limitations#> limitationscxx . . $ lomiri/connectivity/NetworkingStatus#limitations(d069b78d61f7a0bf).() const;
109
110 /** @see NetworkingStatus::status */
111 Q_DECL_DEPRECATEDcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:243:11`!
112 Statuscxx . . $ lomiri/connectivity/NetworkingStatus#Status# statuscxx . . $ lomiri/connectivity/NetworkingStatus#status(7c702b43515dca37).() const;
113
114 Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!:
115 /** @see NetworkingStatus::limitations */
116 Q_DECL_DEPRECATEDcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:243:11`!
117 void limitationsChangedcxx . . $ lomiri/connectivity/NetworkingStatus#limitationsChanged(49f6e7a06ebc5aa8).();
118
119 /** @see NetworkingStatus::status */
120 Q_DECL_DEPRECATEDcxx . . $ `<external>/4507883856836070869/qcompilerdetection.h:243:11`!
121 void statusChangedcxx . . $ lomiri/connectivity/NetworkingStatus#statusChanged(6b3e9fd2958ad329).(Statuscxx . . $ lomiri/connectivity/NetworkingStatus#Status# value);
122
123 private:
124 class Privatecxx . . $ lomiri/connectivity/NetworkingStatus#Private#;
125 QScopedPointercxx . . $ QScopedPointer#<Privatecxx . . $ lomiri/connectivity/NetworkingStatus#Private#> dcxx . . $ lomiri/connectivity/NetworkingStatus#d.;
126 };
127
128 }
129 }
130
131 Q_DECLARE_METATYPEcxx . . $ QMetaTypeId#(lomiri::connectivity::NetworkingStatus::Limitations)
132 Q_DECLARE_METATYPEcxx . . $ `<external>/17491093664533580526/qmetatype.h:2056:9`!(QVector<lomiri::connectivity::NetworkingStatus::Limitations>)
133 Q_DECLARE_METATYPEcxx . . $ QMetaTypeId#(lomiri::connectivity::NetworkingStatus::Status)
134
135 #endif // CONNECTIVITY_NETWORKING_STATUS_H