~ubuntu-branches/ubuntu/oneiric/knetworkmanager/oneiric

« back to all changes in this revision

Viewing changes to knetworkmanager/src/knetworkmanager-wireless_device.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-07-14 14:05:44 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080714140544-yjhxgrdwartk3kx7
Tags: 1:0.7svn830754-0ubuntu1
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *
 
3
 * knetworkmanager-device.h - A NetworkManager frontend for KDE 
 
4
 *
 
5
 * Copyright (C) 2005, 2006 Novell, Inc.
 
6
 *
 
7
 * Author: Timo Hoenig     <thoenig@suse.de>, <thoenig@nouse.net>
 
8
 *         Will Stephenson <wstephenson@suse.de>, <wstephenson@kde.org>
 
9
 *
 
10
 * This program is free software; you can redistribute it and/or modify
 
11
 * it under the terms of the GNU General Public License as published by
 
12
 * the Free Software Foundation; either version 2 of the License, or
 
13
 * (at your option) any later version.
 
14
 *
 
15
 * This program is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 * GNU General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU General Public License
 
21
 * along with this program; if not, write to the Free Software
 
22
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
23
 *
 
24
 **************************************************************************/
 
25
 
 
26
#ifndef KNETWORKMANAGER_WIRELESS_DEVICE_H
 
27
#define KNETWORKMANAGER_WIRELESS_DEVICE_H
 
28
 
 
29
#include "knetworkmanager.h"
 
30
#include "knetworkmanager-device.h"
 
31
 
 
32
#include <stdint.h>
 
33
 
 
34
#include <dbus/qdbusvariant.h>
 
35
 
 
36
class KNetworkManager;
 
37
class AccessPoint;
 
38
class WirelessDevicePrivate;
 
39
 
 
40
class WirelessDevice : public Device
 
41
{
 
42
        Q_OBJECT
 
43
        public:
 
44
                WirelessDevice (const QString & obj_path );
 
45
                ~WirelessDevice ();
 
46
 
 
47
                Q_UINT32 getWirelessCapabilities() const;
 
48
                QValueList<AccessPoint*> accessPointsForEssid(QByteArray essid = QByteArray());
 
49
                QValueList<AccessPoint*> accessPoints();
 
50
                AccessPoint * getActiveAccessPoint();
 
51
                Q_UINT32 getBitrate() const;
 
52
 
 
53
        public slots:
 
54
                void slotPropertiesChanged(const QMap<QString, QDBusVariant>& properties);
 
55
                void slotAccessPointAdded(const QDBusObjectPath&);
 
56
                void slotAccessPointRemoved(const QDBusObjectPath&);
 
57
 
 
58
        signals:
 
59
                void propertiesChanged();
 
60
                void accessPointAdded(AccessPoint *);
 
61
                void accessPointRemoved(const QString &);
 
62
 
 
63
        private:
 
64
                void updateAPList();
 
65
 
 
66
                WirelessDevicePrivate * d;
 
67
};
 
68
 
 
69
#endif /* KNETWORKMANAGER_WIRELESS_DEVICE_H */