/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Authors:
* Antti Kaijanmäki
*/
#pragma once
#include
#include
#include
namespace nmofono {
namespace wwan {
#ifndef CONNECTIVITY_CPP_EXPORT
#define CONNECTIVITY_CPP_EXPORT __attribute ((visibility ("default")))
#endif
class CONNECTIVITY_CPP_EXPORT
WwanLink : public Link
{
public:
typedef std::shared_ptr Ptr;
enum class WwanType {
GSM,
CDMA,
BLUETOOTH_DUN,
BLUETOOTH_PAN
};
struct Compare
{
bool operator()(int lhs, int rhs) const
{
if (lhs == -1 && rhs == -1)
return false;
if (lhs == -1)
return false;
if (rhs == -1)
return true;
return lhs < rhs;
}
};
virtual ~WwanLink() {}
// virtual State state() const = 0;
virtual WwanType wwanType() const = 0;
};
}
}