summaryrefslogtreecommitdiff
path: root/noncore/net/opiestumbler/stumblerstation.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opiestumbler/stumblerstation.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opiestumbler/stumblerstation.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/net/opiestumbler/stumblerstation.cpp b/noncore/net/opiestumbler/stumblerstation.cpp
new file mode 100644
index 0000000..36bd669
--- a/dev/null
+++ b/noncore/net/opiestumbler/stumblerstation.cpp
@@ -0,0 +1,21 @@
+#include "stumblerstation.h"
+#include <opie2/odebug.h>
+
+StumblerStation::StumblerStation(Opie::Net::OStation *station, const QDateTime &tm)
+ : st(station), lastTimeSeen(tm)
+{
+ /*odebug << "RHS: " << station->macAddress.toString() << oendl;
+ odebug << "THIS: " << st->macAddress.toString() << oendl; */
+}
+
+StumblerStation::~StumblerStation()
+{
+ if (st)
+ delete st;
+}
+
+bool StumblerStation::operator<(const StumblerStation &rhs)
+{
+ return rhs.lastTimeSeen < lastTimeSeen;
+}
+