• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

networkipv4config.h

Go to the documentation of this file.
00001 /*
00002 * Copyright 2008 Will Stephenson <wstephenson@kde.org>
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License as
00006 published by the Free Software Foundation; either version 2 of
00007 the License or (at your option) version 3 or any later version
00008 accepted by the membership of KDE e.V. (or its successor approved
00009 by the membership of KDE e.V.), which shall act as a proxy 
00010 defined in Section 14 of version 3 of the license.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 
00020 */
00021 
00022 #ifndef SOLID_CONTROL_NETWORKIPV4CONFIG_H
00023 #define SOLID_CONTROL_NETWORKIPV4CONFIG_H
00024 
00025 #include <QtCore/QStringList>
00026 
00027 #include "solid_control_export.h"
00028 
00029 namespace Solid
00030 {
00031 namespace Control
00032 {
00033 
00034 class SOLIDCONTROL_EXPORT IPv4Address
00035 {
00036 public:
00037     IPv4Address(quint32 address, quint32 netMask, quint32 gateway);
00038     IPv4Address();
00039     ~IPv4Address();
00040     IPv4Address(const IPv4Address&);
00041     quint32 address() const;
00042     quint32 netMask() const;
00043     quint32 gateway() const;
00044     IPv4Address &operator=(const IPv4Address&);
00045     bool isValid() const;
00046 private:
00047     class Private;
00048     Private * d;
00049 };
00050 
00051 class SOLIDCONTROL_EXPORT IPv4Config
00052 {
00053 public:
00054     IPv4Config(const QList<IPv4Address> &addresses,
00055         quint32 broadcast, const QString &hostname, const QList<quint32> &nameservers,
00056         const QStringList &domains, const QString &nisDomain, const QList<quint32> &nisServers);
00057     IPv4Config();
00058     ~IPv4Config();
00059     IPv4Config(const IPv4Config&);
00063     QList<IPv4Address> addresses() const;
00065     quint32 broadcast() const;
00066     QString hostname() const;
00067     QList<quint32> nameservers() const;
00068     QStringList domains() const;
00069     QString nisDomain() const;
00070     QList<quint32> nisServers() const;
00071     IPv4Config &operator=(const IPv4Config&);
00072     bool isValid() const;
00073 private:
00074     class Private;
00075     Private * d;
00076 };
00077 
00078 } // namespace Control
00079 } // namespace Solid
00080 
00081 #endif // NETWORKIPV4CONFIG_H

libsolidcontrol

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal