add more spacing
[personal-kdebase.git] / workspace / solid / networking / kded / network.cpp
blobbca683fbdd3c6b890b437b2cb8a12013f73392cc
1 /* This file is part of kdebase/workspace/solid
2 Copyright (C) 2005,2007 Will Stephenson <wstephenson@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library 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 GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library. If not, write to the Free Software
15 Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
18 As a special exception, permission is given to link this library
19 with any edition of Qt, and distribute the resulting executable,
20 without including the source code for Qt in the source distribution.
23 #include "network.h"
25 #include <KDebug>
27 Network::Network( const QString & name, int status, const QString & serviceName )
28 : m_name( name ), m_status( (Solid::Networking::Status)status ), m_service( serviceName )
32 void Network::setStatus( Solid::Networking::Status status )
34 m_status = status;
37 Solid::Networking::Status Network::status() const
39 return m_status;
42 void Network::setName( const QString& name )
44 m_name = name;
47 QString Network::name() const
49 return m_name;
52 QString Network::service() const
54 return m_service;
57 void Network::setService( const QString& service )
59 m_service = service;
62 // vim: sw=4 ts=4