~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to solid/wicd/wirednetworkinterface.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  This file is part of the KDE project
 
2
    Copyright (C) 2008 Dario Freddi <drf54321@gmail.com>
 
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; see the file COPYING.LIB.  If not, write to
 
15
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
16
    Boston, MA 02110-1301, USA.
 
17
 
 
18
*/
 
19
 
 
20
#ifndef WICD_WIREDNETWORKINTERFACE_H
 
21
#define WICD_WIREDNETWORKINTERFACE_H
 
22
 
 
23
#include <solid/control/ifaces/wirednetworkinterface.h>
 
24
#include <solid/control/wirednetworkinterface.h>
 
25
 
 
26
#include "networkinterface.h"
 
27
 
 
28
class WicdWiredNetworkInterface : public WicdNetworkInterface, virtual public Solid::Control::Ifaces::WiredNetworkInterface
 
29
{
 
30
    Q_OBJECT
 
31
    Q_INTERFACES(Solid::Control::Ifaces::WiredNetworkInterface)
 
32
 
 
33
public:
 
34
    WicdWiredNetworkInterface(const QString  & objectPath);
 
35
    virtual ~WicdWiredNetworkInterface();
 
36
 
 
37
    Solid::Control::NetworkInterface::Type type() const;
 
38
    Solid::Control::NetworkInterface::ConnectionState connectionState() const;
 
39
    bool isActive() const;
 
40
    Solid::Control::NetworkInterface::Capabilities capabilities() const;
 
41
    QString driver() const;
 
42
    QString hardwareAddress() const;
 
43
    int bitRate() const;
 
44
    bool carrier() const;
 
45
 
 
46
    /* reimp */ bool activateConnection(const QString & connectionUni, const QVariantMap & connectionParameters);
 
47
    /* reimp */ bool deactivateConnection();
 
48
 
 
49
private Q_SLOTS:
 
50
    void recacheInformation();
 
51
Q_SIGNALS:
 
52
    void bitRateChanged(int bitRate);
 
53
    void carrierChanged(bool plugged);
 
54
private:
 
55
    class Private;
 
56
    Private *d;
 
57
};
 
58
 
 
59
#endif // WICD_WIRELESSNETWORKINTERFACE_H
 
60