~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to solid/networking/kded/network.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  This file is part of kdepim.
 
2
    Copyright (C) 2005,2007 Will Stephenson <wstephenson@kde.org>
 
3
 
 
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.
 
7
 
 
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.
 
12
 
 
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.
 
17
 
 
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.
 
21
*/
 
22
 
 
23
#ifndef NETWORKSTATUS_NETWORK_H
 
24
#define NETWORKSTATUS_NETWORK_H
 
25
 
 
26
#include <solid/networking.h>
 
27
 
 
28
class Network
 
29
{
 
30
public:
 
31
//      Network( const QString name );
 
32
        Network( const QString & name, int status, const QString & serviceName );
 
33
        /**
 
34
         * Update the status of this network
 
35
         */
 
36
        void setStatus( Solid::Networking::Status status );
 
37
        /**
 
38
         * The connection status of this network
 
39
         */
 
40
        Solid::Networking::Status status();
 
41
        /**
 
42
         * The name of this network
 
43
         */
 
44
        QString name();
 
45
        void setName( const QString& name );
 
46
        /**
 
47
         * Returns the service owning this network
 
48
         */
 
49
        QString service();
 
50
        void setService( const QString& service );
 
51
 
 
52
private:
 
53
        Network( const Network & );
 
54
        QString m_name;
 
55
        Solid::Networking::Status m_status;
 
56
        QString m_service;
 
57
};
 
58
 
 
59
#endif
 
60
// vim: sw=4 ts=4