• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
  • tdehw
tdenetworkdevice.h
1 /* This file is part of the TDE libraries
2  Copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
3  (C) 2013 Golubev Alexander <fatzer2@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef _TDENETWORKDEVICE_H
21 #define _TDENETWORKDEVICE_H
22 
23 #include "tdegenericdevice.h"
24 
25 class TDENetworkConnectionManager;
26 
27 class TDECORE_EXPORT TDENetworkDevice : public TDEGenericDevice
28 {
29  public:
34  TDENetworkDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
35 
39  ~TDENetworkDevice();
40 
44  TQString macAddress();
45 
49  TQString state();
50 
54  bool carrierPresent();
55 
59  bool dormant();
60 
64  TQString ipV4Address();
65 
69  TQString ipV6Address();
70 
74  TQString ipV4Netmask();
75 
79  TQString ipV6Netmask();
80 
84  TQString ipV4Broadcast();
85 
89  TQString ipV6Broadcast();
90 
94  TQString ipV4Destination();
95 
99  TQString ipV6Destination();
100 
104  double rxBytes();
105 
109  double txBytes();
110 
114  double rxPackets();
115 
119  double txPackets();
120 
124  TDENetworkConnectionManager* connectionManager();
125 
126  protected:
131  void internalSetMacAddress(TQString ma);
132 
137  void internalSetState(TQString st);
138 
143  void internalSetCarrierPresent(bool cp);
144 
149  void internalSetDormant(bool dm);
150 
155  void internalSetIpV4Address(TQString ad);
156 
161  void internalSetIpV6Address(TQString ad);
162 
167  void internalSetIpV4Netmask(TQString nm);
168 
173  void internalSetIpV6Netmask(TQString nm);
174 
179  void internalSetIpV4Broadcast(TQString br);
180 
185  void internalSetIpV6Broadcast(TQString br);
186 
191  void internalSetIpV4Destination(TQString ds);
192 
197  void internalSetIpV6Destination(TQString ds);
198 
203  void internalSetRxBytes(double rx);
204 
209  void internalSetTxBytes(double tx);
210 
215  void internalSetRxPackets(double rx);
216 
221  void internalSetTxPackets(double tx);
222 
226  void internalSetConnectionManager(TDENetworkConnectionManager* mgr);
227 
228  private:
229  TQString m_macAddress;
230  TQString m_state;
231  bool m_carrier;
232  bool m_dormant;
233  TQString m_ipV4Address;
234  TQString m_ipV6Address;
235  TQString m_ipV4Netmask;
236  TQString m_ipV6Netmask;
237  TQString m_ipV4Broadcast;
238  TQString m_ipV6Broadcast;
239  TQString m_ipV4Destination;
240  TQString m_ipV6Destination;
241  double m_rxbytes;
242  double m_txbytes;
243  double m_rxpackets;
244  double m_txpackets;
245  TDENetworkConnectionManager* m_connectionManager;
246 
247  friend class TDEHardwareDevices;
248 };
249 
250 #endif // _TDENETWORKDEVICE_H

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.