blob: 8393d42a0fc293c40db87a2a0c8f4f0897109444 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_NO_OUT_OF_CREDITS_DETECTOR_H_
#define SHILL_NO_OUT_OF_CREDITS_DETECTOR_H_
#include <base/macros.h>
#include "shill/out_of_credits_detector.h"
namespace shill {
// This object performs no out-of-credits detection.
class NoOutOfCreditsDetector : public OutOfCreditsDetector {
public:
NoOutOfCreditsDetector(EventDispatcher *dispatcher,
Manager *manager,
Metrics *metrics,
CellularService *service)
: OutOfCreditsDetector(dispatcher, manager, metrics, service) {}
~NoOutOfCreditsDetector() override {}
// Resets the detector state.
void ResetDetector() override {}
// Returns |true| if this object is busy detecting out-of-credits.
bool IsDetecting() const override { return false; }
// Notifies this object of a service state change.
void NotifyServiceStateChanged(
Service::ConnectState old_state,
Service::ConnectState new_state) override {}
// Notifies this object when the subscription state has changed.
void NotifySubscriptionStateChanged(uint32_t subscription_state) override {}
private:
DISALLOW_COPY_AND_ASSIGN(NoOutOfCreditsDetector);
};
} // namespace shill
#endif // SHILL_NO_OUT_OF_CREDITS_DETECTOR_H_