~ubuntu-branches/ubuntu/karmic/knetworkmanager/karmic

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-09-26 12:40:26 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926124026-t5fr920l4lf2l6hz
Tags: 1:0.7svn864988-0ubuntu1
New upstream snapshot, now works with current NM API, 
closes LP: #259278

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_HALDEVICEPROXY_H
27
 
#define KNETWORKMANAGER_HALDEVICEPROXY_H
28
 
 
29
 
// KNM includes
30
 
#include "knetworkmanager.h"
31
 
 
32
 
// HAL includes
33
 
#include <hal/libhal.h>
34
 
 
35
 
// std includes
36
 
#include <stdint.h>
37
 
 
38
 
class KNetworkManager;
39
 
 
40
 
enum bustype {
41
 
        BUS_PCI         = 0,
42
 
        BUS_USB         = 1,
43
 
        BUS_PCMCIA      = 2,
44
 
        BUS_UNKNOWN     = 15 
45
 
};
46
 
 
47
 
class HalDeviceProxyPrivate;
48
 
 
49
 
class HalDeviceProxy : public QObject
50
 
{
51
 
        Q_OBJECT
52
 
        public:
53
 
          HalDeviceProxy (const QString & udi);
54
 
          ~HalDeviceProxy ();
55
 
 
56
 
          bustype      getBustype          (void) const;
57
 
          QString      getProduct          (void) const;
58
 
          QString      getVendor           (void) const;
59
 
 
60
 
        private:
61
 
          HalDeviceProxyPrivate * d;
62
 
};
63
 
 
64
 
#endif /* KNETWORKMANAGER_HALDEVICEPROXY_H */