SolidModules
network.h
Go to the documentation of this file.00001 /* This file is part of kdebase/workspace/solid 00002 Copyright (C) 2005,2007 Will Stephenson <wstephenson@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library. If not, write to the Free Software 00015 Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 00018 As a special exception, permission is given to link this library 00019 with any edition of Qt, and distribute the resulting executable, 00020 without including the source code for Qt in the source distribution. 00021 */ 00022 00023 #ifndef NETWORKSTATUS_NETWORK_H 00024 #define NETWORKSTATUS_NETWORK_H 00025 00026 #include <solid/networking.h> 00027 00028 class Network 00029 { 00030 public: 00031 Network( const QString & name, int status, const QString & serviceName ); 00035 void setStatus( Solid::Networking::Status status ); 00039 Solid::Networking::Status status() const; 00043 QString name() const; 00044 void setName( const QString& name ); 00048 QString service() const; 00049 void setService( const QString& service ); 00050 00051 private: 00052 Network( const Network & ); 00053 QString m_name; 00054 Solid::Networking::Status m_status; 00055 QString m_service; 00056 }; 00057 00058 #endif 00059 // vim: sw=4 ts=4