author | zecke <zecke> | 2002-05-30 21:32:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-30 21:32:24 (UTC) |
commit | 7eff37a7c8744fd0eee7bb93b42913fc9e213827 (patch) (side-by-side diff) | |
tree | 87181fd64a3b0222e0781f4f8e55b168f1f4992c | |
parent | 52e5ef5261c6b098f28f1ad8793a2743ce9c5daa (diff) | |
download | opie-7eff37a7c8744fd0eee7bb93b42913fc9e213827.zip opie-7eff37a7c8744fd0eee7bb93b42913fc9e213827.tar.gz opie-7eff37a7c8744fd0eee7bb93b42913fc9e213827.tar.bz2 |
first bits of a impl
-rw-r--r-- | noncore/net/opietooth/lib/device.cc | 24 | ||||
-rw-r--r-- | noncore/net/opietooth/lib/device.h | 2 | ||||
-rw-r--r-- | noncore/net/opietooth/lib/lib.pro | 4 |
3 files changed, 27 insertions, 3 deletions
diff --git a/noncore/net/opietooth/lib/device.cc b/noncore/net/opietooth/lib/device.cc new file mode 100644 index 0000000..b567e2b --- a/dev/null +++ b/noncore/net/opietooth/lib/device.cc @@ -0,0 +1,24 @@ + +#include "device.h" + +using namespace OpieTooth; + +Device::Device(const QString &device, const QString &mode ) + : QObject(0, "device" ){ + +} +Device::~Device(){ + +} +void Device::attach(){ + +} +void Device::detach(){ + +} +bool Device::isLoaded()const{ + return false; +} +QString Device::devName()const { + return QString::fromLatin1("hci0"); +}; diff --git a/noncore/net/opietooth/lib/device.h b/noncore/net/opietooth/lib/device.h index d6cf049..d23f24c 100644 --- a/noncore/net/opietooth/lib/device.h +++ b/noncore/net/opietooth/lib/device.h @@ -59,9 +59,9 @@ namespace OpieTooth { * Signals devicename and up status * @return &device QString, Devicename * @return up bool, if the device is up or not. */ - device(const QString& device, bool up ); + void device(const QString& device, bool up ); }; }; #endif diff --git a/noncore/net/opietooth/lib/lib.pro b/noncore/net/opietooth/lib/lib.pro index 99274a7..7cededf 100644 --- a/noncore/net/opietooth/lib/lib.pro +++ b/noncore/net/opietooth/lib/lib.pro @@ -1,8 +1,8 @@ TEMPLATE = lib CONFIG += qte warn_on release -HEADERS = kprocctrl.h kprocess.h -SOURCES = kprocctrl.cpp kprocess.cpp +HEADERS = kprocctrl.h kprocess.h device.h +SOURCES = kprocctrl.cpp kprocess.cpp device.cc TARGET = opietooth INCLUDEPATH += $(OPIEDIR)/include DESTDIR = $(QTDIR)/lib$(PROJMAK) #VERSION = 0.0.0 |